public function _initialize() { parent::_initialize(); if (C('WEIMINGPIAN') == "0") { $this->error("微名片以经关闭"); } }
public function _initialize() { parent::_initialize(); if (C('WEIHUODONG') == "0") { $this->error("微活动以经关闭"); } }
public function _initialize() { parent::_initialize(); if (!parent::checkAdminSession()) { exit; } }
protected function _initialize() { parent::_initialize(); if (!session('?wechattoken')) { $this->error('没有要操作的微信公众号', '', 'IS_AJAX'); } }
public function _initialize() { parent::_initialize(); if (C('WEIDIAOCHA') == "0") { $this->error("微调查以经关闭"); } }
protected function _initialize() { parent::_initialize(); $this->orgid = I('get.orgid', 0); $this->orgparent = I('get.orgparent', 0); $this->assign("orgparent", $this->orgparent); $this->assign("orgid", $this->orgid); }
protected function _initialize() { parent::_initialize(); $this->site_id = session('site_id'); // 获取当前站点相关信息 if ($this->site_id) { $this->_getSiteInfo($this->site_id); } }
protected function _initialize() { parent::_initialize(); /* if(!session('?wechattoken')){ if($res=M('wechat')->where(array('uid'=>UID))->find()){ session('wechattoken',$res['token']); session('wechatname',$res['wechatname']); session('wechatid',$res['wechatid']); session('wechatnick',$res['wechatnick']); } }*/ }
protected function _initialize() { //TODO: 导致session,修改不启作用,沿用上次,导致一级菜单未能存入session,使得当前激活菜单不正确 //FIXME:考虑,将图片上传放到另外一个类中 //解决uploadify上传session问题 session('[pause]'); $session_id = I('get.session_id', ''); if (!empty($session_id)) { session_id($session_id); session('[start]'); } parent::_initialize(); }
protected function _initialize() { parent::_initialize(); $this->parent = I('parent', 0); $result = apiCall("Admin/Datatree/getInfo", array(array('id' => $this->parent))); if (!$result['status']) { $this->error($result['info']); } if (is_array($result['info'])) { $this->preparent = $result['info']['parentid']; } $this->assign('parent', $this->parent); $this->assign('preparent', $this->preparent); }
protected function _initialize() { parent::_initialize(); // if (I('get.pid', 0) != 0) { $result = apiCall("Admin/Menu/getInfo", array(array('id' => I('get.pid')))); if ($result['status']) { $this->assign('parentMenu', $result['info']); } else { LogRecord('INFO:' . $result['info'], '[FILE] ' . __FILE__ . ' [LINE] ' . __LINE__); $this->error(L('UNKNOWN_ERR')); } } }
protected function _initialize() { parent::_initialize(); $this->parent = I('parent', 0); $result = apiCall("Admin/Organization/getInfo", array(array('id' => $this->parent))); if (!$result['status']) { $this->error($result['info']); } if (is_array($result['info'])) { $this->preparent = $result['info']['father']; } $this->assign('parent_orgname', $result['info']['orgname']); $this->assign('parent', $this->parent); $this->assign('preparent', $this->preparent); }
function _initialize() { parent::_initialize(); $this->assign('meta_title', '用户组管理'); }
public function _initialize() { parent::_initialize(); $this->db = M(); }
protected function _initialize() { parent::_initialize(); $vote_id = I('vote_id', 0); $this->assign("vote_id", $vote_id); }
protected function _initialize() { parent::_initialize(); $this->assignTitle('日志管理'); }
protected function _initialize() { parent::_initialize(); $this->position = C('DATATREE.SHOP_INDEX_ADVERT'); }
protected function _initialize() { parent::_initialize(); $this->Model = D('AuthGroup'); }
public function _initialize() { parent::_initialize(); $this->getThisNavMenu($this->navName); }
protected function _initialize() { parent::_initialize(); $this->assignTitle(L('C_CONFIG')); }
/** * 初始化操作 * @access public * @return void */ public function _initialize() { parent::_initialize(); // 获取数据库对象实例 $this->db = \Think\Db::getInstance(); }
public function _initialize() { parent::_initialize(); $this->Youpin = M('youpin'); $this->Ydetail = M('youpinDetail'); }
function _initialize() { parent::_initialize(); set_time_limit(0); $this->remoteBaseURL = 'http://www.weiphp.cn'; // TODO $this->updateURL = $this->remoteBaseURL . '/index.php?s=/home/index/update_json&version=' . intval(C('SYSTEM_UPDATRE_VERSION')); }
function _initialize() { parent::_initialize(); $this->model = $this->getModel('addon_category'); }
public function _initialize() { $this->assign('_extra_menu', array(L('_ALREADY_INSTALLED_IN_THE_BACKGROUND_') => D('Addons')->getAdminList())); parent::_initialize(); }
public function _initialize() { parent::_initialize(); $field_patten = array('email' => L('PATTERN_EMAIL'), 'url' => L('PATTERN_URL'), 'date' => L('PATTERN_DATE'), 'number' => L('PATTERN_NUMBER'), 'digits' => L('PATTERN_DIGITS'), 'creditcard' => L('PATTERN_CREDITCARD'), 'equalto' => L('PATTERN_EQUALTO'), 'ip4' => L('PATTERN_IP4'), 'mobile' => L('PATTERN_MOBILE'), 'tel' => L('PATTERN_TEL'), 'zipcode' => L('PATTERN_ZIPCODE'), 'qq' => L('PATTERN_QQ'), 'idcard' => L('PATTERN_IDCARD'), 'chinese' => L('PATTERN_CHINESE'), 'cn_username' => L('PATTERN_CN_USERNAME'), 'english' => L('PATTERN_ENGLISH'), 'en_num' => L('PATTERN_EN_NUM'), 'regex' => L('PATTERN_REGEX')); $this->assign('field_pattern', $field_patten); }
protected function _initialize() { parent::_initialize(); }
public function _initialize() { parent::_initialize(); $this->Dicts = D('dicts'); }
public function _initialize() { $this->assign('_extra_menu', array('已装插件后台' => D('Addons')->getAdminList())); parent::_initialize(); }
public function _initialize() { parent::_initialize(); }