public function _initialize() { parent::_initialize(); if (!check_get_key() || I('get.id') == '') { $this->error('发生错误'); } $this->id = I('get.id', 0, 'intval'); $this->page = I('get.page', 1, 'intval'); }
public function _initialize() { parent::_initialize(); if (I('eid')) { $eid = I('eid', 0, 'intval'); $user_id = session('user_id'); $this->row = D('Examadmin')->chkexamprivilege($eid, $user_id, true); if (is_array($this->row)) { self::$isruning = D('Examadmin')->chkruning($this->row['start_time'], $this->row['end_time']); } } }
public function _initialize() { parent::_initialize(); if (isset($_GET['eid'])) { $this->eid = intval($_GET['eid']); $this->assign('eid', $this->eid); } else { if (isset($_POST['eid'])) { $this->eid = intval($_POST['eid']); } else { $this->error('No Such Exam!'); } } }
public function _initialize() { parent::_initialize(); if (isset($_GET['eid']) && isset($_GET['type'])) { $this->eid = intval($_GET['eid']); $type = intval($_GET['type']); $this->assign('eid', $this->eid); $this->assign('type', $type); if (!$this->isowner($this->eid)) { $this->error('You have no privilege of this exam~'); } } else { if (isset($_POST['eid'])) { $this->eid = intval($_POST['eid']); } else { $this->error('No Such Exam!'); } } }
public function _initialize() { $this->isNeedFilterSql = true; parent::_initialize(); }
public function _initialize() { $this->isNeedLogin = false; parent::_initialize(); }