code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'int'; //字段数据库类型 $field_basic_table = 1; //是否允许作为主表字段 $field_allow_index = 1; //是否允许建立索引 $field_minlength = ''; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 1; //作为搜索条件 $field_allow_fulltext = 0; //作为...
PHP
<table cellpadding="2" cellspacing="1" bgcolor="#ffffff"> <tr> <td><strong>时间格式:</strong></td> <td> <input type="radio" name="setting[fieldtype]" value="date" checked>日期(<?php echo date('Y-m-d');?>)<br /> <input type="radio" name="setting[fieldtype]" value="datetime">日期+时间(<?php echo date('Y-m-...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.');?> <table cellpadding="2" cellspacing="1" bgcolor="#ffffff"> <tr> <td><strong>时间格式:</strong></td> <td> <input type="radio" name="setting[fieldtype]" value="date" <?php if($setting['fieldtype']=='date') echo 'checked';?>>日期(<?=date('Y-m...
PHP
function datetime($field, $value) { $setting = string2array($this->fields[$field]['setting']); extract($setting); if($fieldtype=='date' || $fieldtype=='datetime') { return $value; } else { $format_txt = $format; } if(strlen($format_txt)<6) { $isdatetime = 0; } else { $isdatetime = ...
PHP
function datetime($field, $value) { $setting = string2array($this->fields[$field]['setting']); if($setting['fieldtype']=='int') { $value = strtotime($value); } return $value; }
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $field_type = 'int'; //字段数据库类型 $field_basic_table = 1; //是否允许作为主表字段 $field_allow_index = 1; //是否允许建立索引 $field_minlength = 1; //字符长度默认最小值 $field_maxlength = ''; //字符长度默认最大值 $field_allow_search = 0; //作为搜索条件 $field_allow_fulltext = 0; //作为全...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.');?>
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); class readpoint { public $userid,$username; function __construct() { $this->userid = param::get_cookie('_userid'); if(!$this->userid) { header("Location: index.php?m=member&c=index&a=login&forward=".urlencode(get_url())); exit; } ...
PHP
<?php /** * eddy * 会员中心 产品管理 */ defined('IN_PHPCMS') or exit('No permission resources.'); class product { private $db; public $memberinfo; function __construct() { $this->db = pc_base::load_model('content_model'); $this->db->set_model(13); $this->_userid = param::get_cookie('_userid'); $this->_username...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); //模型缓存路径 define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR); pc_base::load_app_func('util','content'); class MY_tag { private $db; function __construct() { $this->db = pc_base::load_mode...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); //模型缓存路径 define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR); pc_base::load_app_func('util','content'); class MY_search { private $db; function __construct() { $this->db = pc_base::load_m...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); //模型缓存路径 define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR); pc_base::load_app_func('util','content'); class tag { private $db; function __construct() { $this->db = pc_base::load_model('...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); //模型缓存路径 define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR); //定义在单独操作内容的时候,同时更新相关栏目页面 define('RELATION_HTML',true); pc_base::load_app_class('admin','admin',0); pc_base::load_sys_class('form'...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); //模型缓存路径 define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR); //定义在单独操作内容的时候,同时更新相关栏目页面 define('RELATION_HTML',true); pc_base::load_app_class('admin','admin',0); pc_base::load_sys_class('form'...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin','admin',0); pc_base::load_sys_class('push_factory', '', 0); //权限判断,根据栏目里面的权限设置检查 if((isset($_GET['catid']) || isset($_POST['catid'])) && $_SESSION['roleid'] != 1) { $catid = isset($_GET['catid']) ? intval($_GET['ca...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); //模型缓存路径 define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR); class down { private $db; function __construct() { $this->db = pc_base::load_model('content_model'); } public function ini...
PHP
<?php /** * 分页函数 * * @param $num 信息总数 * @param $curr_page 当前分页 * @param $pageurls 链接地址 * @return 分页 */ function content_pages($num, $curr_page,$pageurls) { $multipage = ''; $page = 11; $offset = 4; $pages = $num; $from = $curr_page - $offset; $to = $curr_page + $offset; $more = 0; if($p...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); class rss { private $db; function __construct() { $this->db = pc_base::load_model('content_model'); pc_base::load_app_class('rssbuilder','','','0'); $this->siteid = $_GET['siteid'] ? intval($_GET['siteid']) : '1'; $this->rssid = intval(...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin', 'admin', 0); class block_admin extends admin { private $db, $siteid, $priv_db, $history_db, $roleid; public function __construct() { $this->db = pc_base::load_model('block_model'); $this->priv_db = pc_base::lo...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <div class="pad_10"> <div class="table-list"> <table width="100%" cellspacing="0"> <thead> <tr> <th><?php echo L('name')?></th> <th width="80"><?php echo L('type')?></th> <th><...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <script type="text/javascript"> <!-- $(function(){ $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); $authkey = upload_key('1,jpg|jpeg|gif|bmp|png,1,200,200'); ?> <?php if ($data['type'] == 2) :?> <style> .arrowhead,.arrowhead-b{background: url(<?php echo IMG_PATH?>icon/arrowhead.png) no-repeat; height:15...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <div class="pad_10"> <form action="?" method="get"> <input type="hidden" name="m" value="block"> <input type="hidden" name="c" value="block_admin"> <input type="hidden" name="a" value="public_search_co...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); class block_tag { private $db; public function __construct() { $this->db = pc_base::load_model('block_model'); } /** * PC标签中调用数据 * @param array $data 配置数据 */ public function pc_tag($data) { $siteid = isset($data['sitei...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); return array('link'); ?>
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); $type_db = pc_base::load_model('type_model'); $typeid = $type_db->delete(array('module'=>'link')); if(!$typeid) return FALSE; ?>
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin','admin',0); class link extends admin { function __construct() { parent::__construct(); $this->M = new_html_special_chars(getcache('link', 'commons')); $this->db = pc_base::load_model('link_model'); $this->db...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin'); ?> <script type="text/javascript"> <!-- $(function(){ $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_dialog = 1; include $this->admin_tpl('header', 'admin'); ?> <div class="pad-lr-10"> <form name="myform" action="?m=link&c=link&a=delete_type" method="post" onsubmit="checkuid();return false;"> <div class="table-list"> <table width="100%" cells...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_dialog = 1; include $this->admin_tpl('header', 'admin'); ?> <div class="pad-lr-10"> <form name="myform" id="myform" action="?m=link&c=link&a=check_register" method="post" onsubmit="checkuid();return false;"> <div class="table-list"> <table wid...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_dialog = 1; include $this->admin_tpl('header', 'admin'); ?> <div class="pad-lr-10"> <table width="100%" cellspacing="0" class="search-form"> <tbody> <tr> <td><div class="explain-col"> <?php echo L('all_linktype')?>: &nbsp;&nbsp; <...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin'); ?> <script type="text/javascript"> <!-- $(function(){ $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50...
PHP
<?php include $this->admin_tpl('header','admin'); ?> <script type="text/javascript"> <!-- $(function(){ $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}}); $("...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin'); ?> <script type="text/javascript"> <!-- $(function(){ $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <form method="post" action="?m=link&c=link&a=setting"> <table width="100%" cellpadding="0" cellspacing="1" class="table_form"> <tr> <th width="20%"><?php echo L('application_or_not')?>:</th> ...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); class index { function __construct() { pc_base::load_app_func('global'); $siteid = isset($_GET['siteid']) ? intval($_GET['siteid']) : get_siteid(); define("SITEID",$siteid); } public function init() { $siteid = SITEID; $setting...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); class link_tag { private $link_db,$type_db; public function __construct() { $this->link_db = pc_base::load_model('link_model'); $this->type_db = pc_base::load_model('type_model'); } /** * 取出该分类的详细 信息 * @param $typeid 分类ID ...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); return array('link'); ?>
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $parentid = $menu_db->insert(array('name'=>'link', 'parentid'=>29, 'm'=>'link', 'c'=>'link', 'a'=>'init', 'data'=>'', 'listorder'=>0, 'display'=>'1'), true); $menu_db->insert(array('name'=>'add_link', 'parentid'=>$pare...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $module = 'link'; $modulename = '友情链接'; $introduce = '友情链接模块'; $author = 'phpcms Team'; $authorsite = 'http://www.phpcms.cn'; $authoremail = ''; ?>
PHP
<?php $LANG['link'] = '友情链接'; $LANG['link_add'] = '添加友情链接'; $LANG['link_name'] = '网站名称'; $LANG['logo'] = '图片LOGO'; $LANG['url'] = '网站网址'; $LANG['link_type'] = '链接类型'; $LANG['typeid'] = '所属分类'; $LANG['status'] = '状 态'; $LANG['type_id'] = '分类ID'; ...
PHP
<?php ?>
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin'); ?><style type="text/css"> <!-- *{ padding:0; margin:0; font-size:12px} a:link,a:visited{text-decoration:none;color:#0068a6} a:hover,a:active{color:#ff6600;text-decoration: underline} .showMsg{border: 1px ...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin'); ?> <div class="pad-10"> <div class="common-form"> <form name="myform" action="?m=scan&c=index&a=public_update_config" method="post" id="myform" onsubmit="return check_form()"> <table width="100%" class=...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <div class="pad-10" style="padding-bottom:0px;"> <table width="100%" height="400" class="table_form"> <?php if (isset($func)) :?> <tr> <td><?php echo L('characteristic_function')?>:<?php if ...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.');?> <?php include $this->admin_tpl('header', 'admin');?> <div class="pad-lr-10"> <div class="table-list"> <table width="100%" cellspacing="0"> <thead> <tr> <th align="left"><?php echo L('file_address')?></th> <th align="left"><?php echo L('fu...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin', 'admin', 0); class index extends admin { protected $safe = array ('file_type' => 'php|js','code' => '','func' => 'com|system|exec|eval|escapeshell|cmd|passthru|base64_decode|gzuncompress','dir' => '', 'md5_file'=>''...
PHP
<?php /** * 文件扫描 * @param $filepath 目录 * @param $subdir 是否搜索子目录 * @param $ex 搜索扩展 * @param $isdir 是否只搜索目录 * @param $md5 是否生成MD5验证码 * @param $enforcement 强制更新缓存 */ function scan_file_lists($filepath, $subdir = 1, $ex = '', $isdir = 0, $md5 = 0, $enforcement = 0) { static...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); return array('mood'); ?>
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); ?>
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.');?> <?php include $this->admin_tpl('header', 'admin');?> <div class="pad-lr-10"> <form name="searchform" action="" method="get" > <input type="hidden" value="mood" name="m"> <input type="hidden" value="mood_admin" name="c"> <input type="hidden" value="i...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.');?> <?php include $this->admin_tpl('header', 'admin');?> <div class="pad-lr-10"> <form name="myform" action="?m=mood&c=mood_admin&a=setting" method="post"> <div class="table-list"> <table width="100%" cellspacing="0"> <thead> <tr> <th align="...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); class index { private $setting, $catid, $contentid, $siteid, $mood_id; public function __construct() { $this->setting = getcache('mood_program', 'commons'); $this->mood_id = isset($_GET['id']) ? $_GET['id'] : ''; if (empty($this->moo...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin', 'admin', 0); class mood_admin extends admin { public function __construct() { parent::__construct(); } //排行榜查看 public function init() { $mood_program = getcache('mood_program', 'commons'); $mood_pr...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); return array('mood'); ?>
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); return array ( 'index.html' => '新闻心情', ); ?>
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $parentid = $menu_db->insert(array('name'=>'mood', 'parentid'=>'29', 'm'=>'mood', 'c'=>'mood_admin', 'a'=>'init', 'data'=>'', 'listorder'=>0, 'display'=>'1'), true); $menu_db->insert(array('name'=>'mood_setting', 'pare...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $module = 'mood'; $modulename = '新闻心情'; $introduce = '新闻心情模块'; $author = 'phpcms team'; $authorsite = 'http://www.phpcms.cn'; $authoremail = ''; ?>
PHP
<?php $LANG['id_cannot_be_empty'] = 'ID不能为空'; $LANG['total'] = '总数'; $LANG['expressed'] = '你已经表达过心情了,保持平常心有益身体健康!'; $LANG['category'] = '栏目'; $LANG['time'] = '时间'; $LANG['sort'] = '排序'; $LANG['today'] = '今天'; $LANG['yesterday'] = '昨天'; $LANG['this_week'] = '本周'; $LANG['this_month'] = '本月'; $LANG['all'] = '所有...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); return array('poster', 'poster_space'); ?>
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); $poster_stat = pc_base::load_model('poster_stat_model'); $diff1 = date('Y', SYS_TIME); //当前年份 $diff2 = date('m', SYS_TIME); //当前月份 $diff = ($diff1-2010)*12+$diff2; for($y=$diff;$y>0;$y--) { $value = date('Y...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin','admin',0); pc_base::load_app_func('global', 'poster'); class poster extends admin { private $db, $s_db; function __construct() { parent::__construct(); $this->s_db = pc_base::load_model('poster_space_model'...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin'); ?> <div class="subnav"> <h2 class="title-1 line-x f14 fb blue lh28"><?php echo L('ads_module')?></h2> <div class="content-menu ib-a blue line-x"> <a class="add fb" href="?m=poster&c=poster&a=init&space...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_header = $show_validator = $show_scroll = 1; include $this->admin_tpl('header', 'admin'); $authkey = upload_key('1,'.$this->M['ext'].',1'); ?> <form method="post" action="?m=poster&c=poster&a=add" id="myform"> <table class="table_form" width=...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_header = 1; include $this->admin_tpl('header', 'admin'); ?> <form method="post" action="?m=poster&c=space&a=public_tempate_setting" name="myform" id="myform"> <table class="table_form" width="100%" cellspacing="0"> <tbody> <tr> <th width=...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <form method="post" action="?m=poster&c=space&a=add" name="myform" id="myform"> <table class="table_form" width="100%" cellspacing="0"> <tbody> <tr> <th width="80"><strong><?php echo L('boardtype')...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <div class="subnav"> <h2 class="title-1 line-x f14 fb blue lh28"><?php echo L('ad_list')?></h2> <div class="content-menu ib-a blue line-x">   <?php if(isset($big_menu)) echo '<a class="add fb" href=...
PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo L('preview')?></title> </head> <body> <table wi...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_header = $show_validator = $show_scroll = 1; include $this->admin_tpl('header', 'admin'); ?> <div class="pad-10"> <h2 class="title-1 f14 lh28">(<?php echo $r['name'];?>)<?php echo L('get_code_space')?></h2> <div class="bk10"></div> <div clas...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_dialog = $show_header = 1; include $this->admin_tpl('header', 'admin'); ?> <div class="subnav"> <div class="content-menu ib-a blue line-x"> <?php if(isset($big_menu)) echo '<a class="add fb" href="'.$big_menu[0].'"><em>'.$big_menu[1]....
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <form method="post" action="?m=poster&c=space&a=edit&spaceid=<?php echo $_GET['spaceid']?>" name="myform" id="myform"> <table class="table_form" width="100%" cellspacing="0"> <tbody> <tr> <th width...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_header = $show_validator = $show_scroll = 1; include $this->admin_tpl('header', 'admin'); $authkey = upload_key('1,'.$this->M['ext'].',1'); ?> <form method="post" action="?m=poster&c=poster&a=edit&id=<?php echo $_GET['id']?>&spaceid=<?php echo...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_header = 1; include $this->admin_tpl('header', 'admin'); ?> <form method="post" action="?m=poster&c=space&a=setting" id="myform" name="myform"> <table width="100%" cellpadding="0" cellspacing="1" class="table_form"> <tr> <th width="130"><?...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_dialog = $show_header = 1; include $this->admin_tpl('header', 'admin'); ?> <div class="subnav"> <div class="content-menu ib-a blue line-x"> <?php if(isset($big_menu)) echo '<a class="add fb" href="'.$big_menu[0].'"><em>'.$big_menu[1]....
PHP
<?php return array ( 'banner' => array ( 'name' => '矩形横幅', 'select' => '0', 'padding' => '0', 'size' => '1', 'option' => '0', 'num' => '1', 'iscore' => '1', 'type' => array ( 'images' => '图片', 'flash' => '动画', ), ), 'fixure' => array ( 'name' => '固定位置...
PHP
<?php return array ( 'banner' => array ( 'name' => '矩形横幅', 'select' => '0', 'padding' => '0', 'size' => '1', 'option' => '0', 'num' => '1', 'iscore' => '1', 'type' => array ( 'images' => '图片', 'flash' => '动画', ), ), 'fixure' => array ( 'name' => '固定位置...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); class index { function __construct() { $this->db = pc_base::load_model('poster_model'); $this->s_db = pc_base::load_model('poster_stat_model'); } public function init() { } /** * 统计广告点击次数 * */ public function poster...
PHP
<?php /** * * @param 广告生成js类 */ defined('IN_PHPCMS') or exit('No permission resources.'); class html { private $db, $s_db, $queue; public function __construct() { $this->s_db = pc_base::load_model('poster_space_model'); $this->db = pc_base::load_model('poster_model'); $this->queue = pc_bas...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin','admin',0); pc_base::load_sys_class('form', '', 0); class space extends admin { private $M, $db; function __construct() { parent::__construct(); $setting = new_html_special_chars(getcache('poster', 'commons'...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); return array('poster', 'poster_space'); ?>
PHP
<?php error_reporting(E_ALL); defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $parentid = $menu_db->insert(array('name'=>'poster', 'parentid'=>29, 'm'=>'poster', 'c'=>'space', 'a'=>'init', 'data'=>'', 'listorder'=>0, 'display'=>'1'), true); $menu_db->insert(array('name...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $module = 'poster'; $modulename = '广告模块'; $introduce = '独立模块'; $author = 'phpcms Team'; $authorsite = 'http://www.phpcms.cn'; $authoremail = ''; ?>
PHP
<?php /*Language Format: Add a new file(.lang.php) with your module name at /phpcms/languages/ translation save at the array:$LANG */ $LANG['poster'] = '广告'; $LANG['setting_updates_successful'] = '配置更新完成!'; $LANG['name_plates_not_empty'] = '版位名称不能为空'; $LANG['plate_width_not_empty'] = '版位的宽度不能为空'; ...
PHP
<?php /** * 广告模板配置函数 */ function get_types() { $poster_template = getcache('poster_template_'.get_siteid(), 'commons'); $TYPES = array(); if (is_array($poster_template) && !empty($poster_template)){ foreach ($poster_template as $k => $template) { $TYPES[$k] = $template['name']; } } else { $TY...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); return array('tag'); ?>
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); ?>
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <script type="text/javascript"> <!-- $(function(){ $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <script type="text/javascript"> <!-- $(function(){ $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <div class="pad_10"> <div class="table-list"> <form action="" method="get"> <input type="hidden" name="m" value="tag" /> <input type="hidden" name="c" value="tag" /> <input type="hidden" name="a" valu...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <div class="pad_10"> <div class="table-list"> <form action="" method="get"> <input type="hidden" name="m" value="tag" /> <input type="hidden" name="c" value="tag" /> <input type="hidden" name="a" valu...
PHP
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header', 'admin'); ?> <div style="padding: 200px 0px 0px 100px;"><?php echo L('click_copy_code')?>:<textarea ondblclick="copy_text(this)" style="width: 400px;height:30px" /><?php echo htmlspecialchars($tag)?></textarea><div> ...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); return array('tag'); ?>
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $parentid = $menu_db->insert(array('name'=>'tag', 'parentid'=>826, 'm'=>'tag', 'c'=>'tag', 'a'=>'init', 'data'=>'', 'listorder'=>0, 'display'=>'1'), true); $menu_db->insert(array('name'=>'add_tag', 'parentid'=>$paren...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('INSTALL') or exit('Access Denied'); $module = 'tag'; $modulename = '标签向导'; $introduce = '独立模块'; $author = 'phpcms Team'; $authorsite = 'http://www.phpcms.cn'; $authoremail = ''; ?>
PHP
<?php $LANG['enter_the_cache_input_will_not_be_cached'] = '请输入缓存时间,不输入则不进行缓存。'; $LANG['cache_time_can_only_be_positive'] = '缓存时间只能正数。'; $LANG['that_shows_only_positive_numbers'] = '显示条数只能正数。'; $LANG['num'] = '调用数量'; $LANG['name'] = '名称'; $LANG['should'] = '应该'; $LANG['is_greater...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin', 'admin', 0); class tag extends admin { private $db, $dbsource; public function __construct() { $this->db = pc_base::load_model('tag_model'); $this->dbsource = pc_base::load_model('dbsource_model'); parent:...
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); return array('comment', 'comment_check', 'comment_setting', 'comment_table'); ?>
PHP
<?php defined('IN_PHPCMS') or exit('Access Denied'); defined('UNINSTALL') or exit('Access Denied'); $comment_table_db = pc_base::load_model('comment_table_model'); $tablelist = $comment_table_db->select('', 'tableid'); foreach($tablelist as $k=>$v) { $comment_table_db->query("DROP TABLE IF EXISTS `".$commen...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin', 'admin', 0); class check extends admin { //数据库连接 private $comment_check_db,$comment_db,$comment; function __construct() { $this->comment_data_db = pc_base::load_model('comment_data_model'); $this->comment_ch...
PHP
<?php defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_app_class('admin', 'admin', 0); class comment_admin extends admin { private $comment_setting_db,$comment_data_db,$comment_db,$siteid; function __construct() { parent::__construct(); $this->comment_setting_db = pc_base::load_mode...
PHP