Beispiel #1
0
 public function __construct()
 {
     parent::__construct();
     plug_config('labels');
     plug_helper('view');
     plug_library('db');
     plug_model('meta');
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
     plug_helper('view');
     plug_library('db');
     plug_library('input');
     plug_model('meta');
     plug_model('auth');
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct();
     if (!isset($_SESSION)) {
         session_start();
     }
     plug_config('labels');
     plug_config('order_by');
     plug_helper('view');
     plug_library('db');
     plug_library('input');
     plug_model('meta');
     $this->adjust_segments();
     plug_config('targets');
     if ($this->config['targets']['allow'] !== [] && !in_array($this->segments['target'], $this->config['targets']['allow']) or in_array($this->segments['target'], $this->config['targets']['deny'])) {
         echo 'target not found';
         exit(1);
     }
     plug_config('actions');
     if ($this->config['actions']['allow'] !== [] && !in_array($this->segments['action'], $this->config['actions']['allow']) or in_array($this->segments['action'], $this->config['actions']['deny'])) {
         echo 'action not found';
         exit(1);
     }
 }