public function __construct($pathinfo, $controller) { parent::__construct($pathinfo, $controller); if ($this->userid != 2 && $this->userid != 46 && $this->userid != 20949) { header('HTTP/1.1 301 Moved Permanently'); header('location: /home/'); } }
/** * Constructeur */ public function __construct() { parent::__construct(); $this->view = 'Utilisateurs/user'; if (isset($this->_session->user)) { $this->_session->user->refresh(); } }
/** * Contructeur */ public function __construct() { parent::__construct(); $this->view = 'login'; if ($this->_session->is_logged()) { Router::redirect("/Users", "refresh"); } }
public function __construct(array $extra = null) { parent::__construct($extra); $eventId = val($_GET, 'eventId'); $id = val($_GET, 'id'); if (!empty($eventId) && !empty($id)) { $_SESSION['material'][$id] = $eventId; } if (!empty($_SESSION['material'][$id])) { env('event', entry_sql('SELECT * FROM event WHERE eventId=:eventId', array('eventId' => $_SESSION['material'][$id]))); } }
public function __construct($registry) { parent::__construct($registry); if ($_SESSION['user']) { $this->user = $_SESSION['user']; $this->registry->template->assign("logged", TRUE); $this->registry->template->assign("username", $_SESSION['user']['name']); } else { $this->registry->template->assign("logged", FALSE); } $this->registry->template->assign("base_url", $this->registry->config['Site']['url']); }
public function __construct($registry) { parent::__construct($registry); if (!isset($_POST['uni'])) { $_POST['uni '] = ''; } if (!isset($_POST['fullName'])) { $_POST['fullName'] = ''; } if (!isset($_POST['securityLevel'])) { $_POST['securityLevel'] = ''; } if (!isset($_POST['departmentCode'])) { $_POST['departmentCode'] = ''; } $this->fullName = $_POST['fullName']; $this->secuityLevel = $_POST['securityLevel']; $this->departmentCode = $_POST['departmentCode']; }
/** * Constructeur */ public function __construct() { parent::__construct(); $this->view = 'Utilisateurs/admin'; $this->authorization(); }
public function __construct($pathinfo, $controller) { parent::__construct($pathinfo, $controller); $this->_view->assign("active", "search"); }
public function __construct() { parent::__construct('web'); $this->init(); }
function __construct($params) { // 这个需要考虑view,model-----依照最简单的去写 parent::__construct($params); $this->model = new dataModel(); }
public function __construct() { parent::__construct(); $this->user = new Usuarios(); }
public function __construct() { parent::__construct(); }
function __construct($params) { // 这个需要考虑view,model-----依照最简单的去写 parent::__construct($params); }
public function __construct() { parent::__construct(); Session::init(); }
/** * Constructeur */ public function __construct() { parent::__construct(); $this->view = 'test'; $this->message = array(); }
public function __construct($pathinfo, $controller) { parent::__construct($pathinfo, $controller); $this->size = 4500; }
public function __construct() { parent::__construct(); $this->oauthDataStore = new PartuzaOAuthDataStore(); }
function __construct() { parent::__construct(); $this->user = new sevenUserModel(); $this->list = new sevenListModel(); }
public function __construct($registry) { parent::__construct($registry); }
public function __construct() { parent::__construct(); $this->openid = $this->model('openid'); }
public function __construct() { parent::__construct(); $this->user = $this->load->model('user'); }
function __construct() { parent::__construct(); $this->model = new adminModel(); }