Example #1
0
 public function before()
 {
     parent::before();
     $this->page = Security::xss_clean((int) $this->request->param('page', 0));
     if (empty($this->page)) {
         $this->page = 1;
     }
 }
Example #2
0
 public function before()
 {
     parent::before();
     $input = $this->user->has('roles', ORM::factory('role', array('name' => 'redactor')));
     if (!$input) {
         $this->redirect('manage/materials');
     }
 }
Example #3
0
 public function before()
 {
     parent::before();
     $this->page = Security::xss_clean((int) $this->request->param('page', 0));
     if (empty($this->page)) {
         $this->page = 1;
     }
     $this->sort = Security::xss_clean(Arr::get($_GET, 'sort', 'noreply'));
 }
Example #4
0
 public function before()
 {
     parent::before();
     $input = $this->user->has('roles', ORM::factory('role', array('name' => 'admin')));
     if (!$input) {
         $this->redirect('manage');
     }
     $this->page = Security::xss_clean((int) $this->request->param('page', 0));
     if (empty($this->page)) {
         $this->page = 1;
     }
 }