public function __construct() { parent::__construct(); $common = new CommonController(); if (!$common->checkStatus()) { $this->redirect('Common/login'); } }
public function __construct() { parent::__construct(); $common = new CommonController(); if (!$common->checkStatus()) { $this->redirect('Common/login'); } if (!$common->checkPrivilege()) { $this->error('你所在的用戶組沒有此權限'); } $this->lang = I('cookie.lang', 'en'); $this->assign('lang', $this->lang); }
public function _initialize() { parent::_initialize(); $this->opname = "会议室"; $this->dbname = 'Meeting'; //var_dump("123212312321321321"); }
public function _initialize() { parent::_initialize(); $this->dbname = 'authrule'; $this->opname = "权限管理"; //123123213123123Test }
function __construct() { parent::__construct(); $this->db = D('Taxonomy'); $this->moduleDb = D('Module'); $this->dbName = 'taxonomy'; }
public function _initialize() { parent::_initialize(); $this->dbname = "user"; $this->opname = "用户"; $this->selname = "uv_gettel"; }
public function _initialize() { parent::_initialize(); $this->opname = "信息类别"; $this->dbname = 'infotype'; //$this->selname = 'uv_infotype'; }
public function _initialize() { $cate = new CategoryApi(); $catelist = $cate->get_catelist(0, 1); $this->assign('clist', $catelist); parent::_initialize(); }
public function __construct() { parent::__construct(); //$this->shop = $this->getShop(); $this->group = $this->getUserGroup(); // dump($this->getUserGroup()); }
public function _initialize() { parent::_initialize(); $this->opname = "会议室权限组"; $this->dbname = 'Meetroomauthgroup'; //var_dump("123212312321321321"); }
/** * 权限控制,默认为查看 view */ public function _initialize() { parent::_initialize(); //权限判断 if (user_info('roleid') != 1 && strpos(ACTION_NAME, 'public_') === false) { $category_priv_db = M('category_priv'); $tmp = explode('_', ACTION_NAME, 1); $action = strtolower($tmp[0]); unset($tmp); $auth = dict('auth', 'Category'); //权限列表 if (!in_array($action, array_keys($auth))) { $action = 'view'; } $catid = I('get.catid', 0, 'intval'); $roleid = user_info('roleid'); $info = $category_priv_db->where(array('catid' => $catid, 'roleid' => $roleid, 'action' => $action))->count(); if (!$info) { //兼容iframe加载 if (IS_GET && strpos(ACTION_NAME, '_iframe') !== false) { exit('<style type="text/css">body{margin:0;padding:0}</style><div style="padding:6px;font-size:12px">您没有权限操作该项</div>'); } //普通返回 if (IS_AJAX && IS_GET) { exit('<div style="padding:6px">您没有权限操作该项</div>'); } else { $this->error('您没有权限操作该项'); } } } }
public function __construct() { parent::__construct(); $this->assign("sidebar_active", array("Course", "index")); $this->_page_location = __APP__ . '?s=Course/index'; $this->assign("classlist", $this->_course_class); }
public function __construct() { parent::__construct(); $this->_page_location = __APP__ . '?s=User/index'; $this->_course_class = CR('Course')->_course_class; $this->assign('courseclass', $this->_course_class); }
function __construct() { parent::__construct(); $this->db = D("Content"); $this->model_db = D("Model"); $this->category_db = D("Category"); }
function __construct() { parent::__construct(); $this->db = D("Model"); $this->fieldDb = D("ModelField"); $this->modelTypes = $this->db->getModelTypes(); }
public function __construct() { parent::__construct(); $this->assign("sidebar_active", array("Testing", "index")); $this->_page_location = __APP__ . '?s=Testing/index'; $this->assign("examtype", $this->_exam_type); }
/** * 对应权限如下: * view 查看 | add 添加 | edit 编辑 | delete 删除 | order 排序 * * TODO 现在时间上来不及完善此功能,暂时先屏蔽 */ public function _initialize() { parent::_initialize(); //权限判断 if (session('roleid') != 1 && ACTION_NAME != 'index' && strpos(ACTION_NAME, 'public_') === false) { $category_priv_db = M('category_priv'); $tmp = explode('_', ACTION_NAME); $action = strtolower($tmp[0]); unset($tmp); if (!in_array($action, array('view', 'add', 'edit', 'delete', 'order', 'export', 'import'))) { $action = 'view'; } $catid = I('get.catid', 0, 'intVal'); $roleid = session('roleid'); $info = $category_priv_db->where(array('catid' => $catid, 'roleid' => $roleid, 'is_admin' => 1, 'action' => $action))->count(); if (!$info) { //兼容iframe加载 if (IS_GET && strpos(ACTION_NAME, '_iframe') !== false) { exit('<style type="text/css">body{margin:0;padding:0}</style><div style="padding:6px;font-size:12px">您没有权限操作该项</div>'); } //普通返回 if (IS_AJAX && IS_GET) { exit('<div style="padding:6px">您没有权限操作该项</div>'); } else { $this->error('您没有权限操作该项'); } } } }
function __construct() { parent::__construct(); $this->db = D("Content"); $this->model_db = D("Model"); $this->category_db = D("Category"); // $this->categorys = D('Category')->where("siteid = %d", $this->siteid)->select(); }
public function _initialize() { parent::_initialize(); $this->opname = "会议室预约管理"; $this->dbname = 'meetingreserv'; // uv_getmeetingreserv $this->selname = 'uv_getmeetingreserv'; }
function __construct() { parent::__construct(); $this->db = D('Position'); $this->dataModel = D('PositionData'); $this->modelModel = D('Model'); $this->modelTypes = $this->modelModel->getModelTypes(); }
public function _initialize() { parent::_initialize(); $this->opname = "信息发布"; $this->dbname = 'infopublish'; $this->selname = 'uv_getinfopublish'; // $this->GetKeys(); }
public function __construct() { parent::__construct(); if (!$this->managerinfo['super']) { $this->pageReturn(1, '账号没有管理权限!', __APP__ . '?s=Index/index'); } $this->_page_location = __APP__ . '?s=Manager/index'; $this->assign("sidebar_active", array("Manager", "index")); }
public function __construct() { parent::__construct(); $this->jg = D('Jg'); }
public function _initialize() { parent::_initialize(); $this->opname = "会议设备"; $this->dbname = 'Meetingdevice'; }
function __construct() { parent::__construct(); $this->db = D("Category"); $this->model_db = D('Model'); }
public function __construct() { parent::__construct(); $this->dbname = 'Cate'; }
function __construct() { parent::__construct(); $this->db = model('Site'); }
public function __construct() { parent::__construct(); $this->dbname = 'Auth_group'; }
public function clearDir() { //清理目录冗余文件 该方法由 系统定时任务自动调用 if ($_SERVER["SERVER_NAME"] == get_client_ip()) { parent::foreachDir("./Public/classroom/face", "deleteDirFace"); //调用父类方法 parent::foreachDir("./Public/classroom/video", "deleteDirVideo"); //调用父类方法 } }
public function _initialize() { parent::_initialize(); $this->opname = "经营方针"; $this->dbname = 'policy'; }