public function __construct() { parent::__construct(); $this->M = String::htmlspecialchars(S('common/link')); $this->db = Loader::model('link_model'); $this->db2 = Loader::model('type_model'); }
public function __construct() { $admin_username = cookie('admin_username'); $userid = $_SESSION['userid']; $this->db = Loader::model('badword_model'); parent::__construct(); }
public function __construct() { parent::__construct(); $this->tablename = ''; $this->M = S('common/formguide'); $this->db = Loader::model('model_model'); }
public function __construct() { parent::__construct(); $this->db = Loader::model('type_model'); $this->model = S('common/model'); $this->category_db = Loader::model('category_model'); }
public function __construct() { parent::__construct(); $this->s_db = Loader::model('poster_space_model'); $this->db = Loader::model('poster_model'); $this->M = String::htmlspecialchars(S('common/poster')); }
public function __construct() { parent::__construct(); $this->db = Loader::model('special_content_model'); $this->data_db = Loader::model('special_c_data_model'); $this->type_db = Loader::model('type_model'); }
public function __construct() { parent::__construct(); $this->db = Loader::model('admin_role_model'); $this->priv_db = Loader::model('admin_role_priv_model'); $this->op = Loader::lib('admin:role_op'); }
public function __construct() { parent::__construct(); $this->M = S('common/vote'); $this->db = Loader::model('vote_subject_model'); $this->db2 = Loader::model('vote_option_model'); }
public function __construct() { parent::__construct(); $this->db = Loader::model('admin_login_log_model'); $this->admin_username = cookie('admin_username'); // 管理员COOKIE }
public function __construct() { parent::__construct(); $this->db = Loader::model('position_model'); $this->db_data = Loader::model('position_data_model'); $this->db_content = Loader::model('content_model'); }
public function __construct() { parent::__construct(); $this->db = Loader::model('search_model'); $this->application_db = Loader::model('application_model'); $this->type_db = Loader::model('type_model'); }
public function __construct() { $this->db = Loader::model('block_model'); $this->priv_db = Loader::model('block_priv_model'); $this->history_db = Loader::model('block_history_model'); $this->roleid = $_SESSION['roleid']; parent::__construct(); }
public function __construct() { parent::__construct(); Loader::helper('admin:admin'); $this->db = Loader::model('admin_model'); $this->role_db = Loader::model('admin_role_model'); $this->op = Loader::lib('admin:admin_op'); }
public function __construct() { parent::__construct(); $this->db = Loader::model('content_model'); $this->categorys = S('common/category_content'); foreach ($_GET as $k => $v) { $_POST[$k] = $v; } }
public function __construct() { parent::__construct(); $application = isset($_GET['application']) && !empty($_GET['application']) ? $_GET['application'] : 'admin'; if (in_array($application, array('admin', 'special', 'content'))) { $this->push = PushFactory::get_instance()->get_api($application); } else { showmessage(L('not_exists_push'), 'blank'); } }
public function __construct() { parent::__construct(); Loader::helper('attachment:global'); $this->upload_url = C('attachment', 'upload_url'); $this->upload_path = C('attachment', 'upload_path'); $this->imgext = array('jpg', 'gif', 'png', 'bmp', 'jpeg'); $this->db = Loader::model('attachment_model'); $this->attachment = Loader::lib('Attachment'); $this->admin_username = cookie('admin_username'); }
public function __construct() { parent::__construct(); $this->db = Loader::model('message_model'); $this->group_db = Loader::model('message_group_model'); $this->_username = cookie('admin_username'); $this->_userid = cookie('userid'); foreach (L('select') as $key => $value) { $trade_status[$key] = $value; } $this->trade_status = $trade_status; }
public function __construct() { parent::__construct(); $this->db = Loader::model('model_field_model'); $this->f_db = Loader::model('model_model'); if (isset($_GET['formid']) && !empty($_GET['formid'])) { $formid = intval($_GET['formid']); $f_info = $this->f_db->where(array('modelid' => $formid))->field('tablename')->find(); $this->tablename = 'form_' . $f_info['tablename']; $this->db->change_table($this->tablename); } }
public function __construct() { parent::__construct(); $this->header = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\t<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">"; $this->charset = "UTF-8"; $this->footer = "\t</urlset>\n"; $this->baidunews_footer = "</document>"; $this->items = array(); $this->baidunew_items = array(); // 生成栏目级别选项 $this->categorys = S('common/category_content'); $this->setting = S('common/googlesitemap'); }
public function __construct() { if (!application_exists(APP)) { showmessage(L('application_not_exists')); } parent::__construct(); $this->db = Loader::model('pay_payment_model'); $this->account_db = Loader::model('pay_account_model'); $this->member_db = Loader::model('member_model'); $this->modules_path = APPS_PATH . 'pay' . DIRECTORY_SEPARATOR . 'module' . DIRECTORY_SEPARATOR; Loader::lib('pay:pay_method', false); $this->method = new pay_method($this->modules_path); }
public function __construct() { parent::__construct(); $this->style = isset($_GET['style']) && trim($_GET['style']) ? str_replace(array('..\\', '../', './', '.\\', '/', '\\'), '', trim($_GET['style'])) : showmessage(L('illegal_operation')); $this->dir = isset($_GET['dir']) && trim($_GET['dir']) ? trim(urldecode($_GET['dir'])) : showmessage(L('illegal_operation')); $this->dir = safe_replace($this->dir); $this->filename = isset($_GET['filename']) && trim($_GET['filename']) ? trim($_GET['filename']) : showmessage(L('illegal_operation')); if (empty($this->style) || empty($this->dir) || empty($this->filename)) { showmessage(L('illegal_operation'), HTTP_REFERER); } $this->filepath = WEKIT_PATH . 'template' . DIRECTORY_SEPARATOR . $this->style . DIRECTORY_SEPARATOR . $this->dir . DIRECTORY_SEPARATOR . $this->filename; $this->fileid = $this->style . '_' . $this->dir . '_' . $this->filename; $this->db = Loader::model('template_bak_model'); }
public function __construct() { parent::__construct(); $this->db = Loader::model('content_model'); $this->categorys = S('common/category_content'); // 权限判断 if (isset($_GET['catid']) && $_SESSION['roleid'] != 1 && ACTION != 'pass' && strpos(ACTION, 'public_') === false) { $catid = intval($_GET['catid']); $this->priv_db = Loader::model('category_priv_model'); $action = $this->categorys[$catid]['type'] == 0 ? ACTION : 'init'; $priv_datas = $this->priv_db->where(array('catid' => $catid, 'is_admin' => 1, 'action' => $action))->find(); if (!$priv_datas) { showmessage(L('permission_to_operate'), 'blank'); } } }
public function __construct() { $this->style = isset($_GET['style']) && trim($_GET['style']) ? str_replace(array('..\\', '../', './', '.\\', '/', '\\'), '', trim($_GET['style'])) : showmessage(L('illegal_operation'), HTTP_REFERER); if (empty($this->style)) { showmessage(L('illegal_operation'), HTTP_REFERER); } $this->filepath = WEKIT_PATH . 'template' . DIRECTORY_SEPARATOR . $this->style . DIRECTORY_SEPARATOR; if (file_exists($this->filepath . 'config.php')) { $this->style_info = (include $this->filepath . 'config.php'); if (!isset($this->style_info['name'])) { $this->style_info['name'] = $this->style; } } $this->suffix = C('template', 'ext'); $this->tpl_edit = C('template', 'edit'); parent::__construct(); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->username = cookie('admin_username'); $this->db = Loader::model('announce_model'); }
public function __construct() { $this->db = Loader::model('player_model'); parent::__construct(); }
public function __construct() { parent::__construct(); $this->db = Loader::model('admin_menu_model'); }
public function __construct() { parent::__construct(); $this->db = Loader::model('collection_node_model'); $this->url_list_type = array('1' => L('sequence'), '2' => L('multiple_pages'), '3' => L('single_page'), '4' => 'RSS'); }
public function __construct() { $this->filepath = WEKIT_PATH . 'template' . DIRECTORY_SEPARATOR; parent::__construct(); }
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_dialog = $show_header = 1; include $this->view('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] . '</em></a> '; } ?> <?php echo Web_Admin::submenu($_GET['menuid'], $big_menu); ?> <span>|</span><a href="javascript:window.top.art.dialog.open('?app=poster&controller=space&action=setting',{id:'setting',title:'<?php echo L('module_setting'); ?> ', width:'540px', height:'320px',ok: function(iframeWin, topWin){var form = iframeWin.document.getElementById('dosubmit');form.click();return false;},cancel: function(){}});void(0);"><em><?php echo L('module_setting'); ?> </em></a> </div> </div> <div class="pad-lr-10"> <div class="table-list"> <table class="table table-striped"> <thead> <tr> <th width="50" align="center"><?php