Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     plug_config('labels');
     plug_helper('view');
     plug_library('db');
     plug_model('meta');
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     plug_helper('view');
     plug_library('db');
     plug_library('input');
     plug_model('meta');
     plug_model('auth');
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 4
0
<?php

session_start();
plug_config('auth_actors');
plug_helper('view');
if (in_array($this->segments['actor'], $this->config['auth_actors']) && $this->segments['target'] !== 'auth' && !isset($_SESSION['auth'][$this->segments['actor']])) {
    redirect('auth');
}
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     plug_helper('view');
 }