Ejemplo n.º 1
0
 public function _initialize()
 {
     parent::_initialize();
     if (IS_GET) {
         $this->ZaddChapters();
     }
 }
Ejemplo n.º 2
0
 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 (!$this->isSuperAdmin()) {
         if (!strcmp($this->action, "getparentpointbychapterid") || !strcmp($this->action, "getchildrenpointbyparentid")) {
             // omit
         } else {
             $this->echoError("only admin can do this!");
         }
     }
 }
Ejemplo n.º 4
0
 public function _initialize()
 {
     parent::_initialize();
     if (isset($_GET['eid'])) {
         $this->eid = intval($_GET['eid']);
         $this->zadd('eid', $this->eid);
     } else {
         if (isset($_POST['eid'])) {
             $this->eid = intval($_POST['eid']);
         } else {
             $this->error('No Such Exam!');
         }
     }
 }
Ejemplo n.º 5
0
 public function _initialize()
 {
     parent::_initialize();
     if (isset($_GET['eid']) && isset($_GET['type'])) {
         $this->eid = intval($_GET['eid']);
         $type = intval($_GET['type']);
         $this->zadd('eid', $this->eid);
         $this->zadd('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!');
         }
     }
 }
Ejemplo n.º 6
0
 public function _initialize()
 {
     parent::_initialize();
 }