Exemplo n.º 1
0
 function __construct(Database $db, \Twig_Environment $twig)
 {
     parent::__construct($db, $twig);
     $this->setMinUserLevelRequired(PSM_USER_ANONYMOUS);
     $this->setActions(array('login', 'forgot', 'reset'), 'login');
     $this->addMenu(false);
 }
Exemplo n.º 2
0
 function __construct(Database $db, \Twig_Environment $twig)
 {
     parent::__construct($db, $twig);
     $this->setMinUserLevelRequired(PSM_USER_ADMIN);
     $this->setCSRFKey('config');
     $this->setActions(array('index', 'save'), 'index');
 }
Exemplo n.º 3
0
 public function run()
 {
     $servers = $this->db->select(PSM_DB_PREFIX . 'servers', null, array('server_id', 'label'), '', "ORDER BY `active` ASC, `status` DESC, `label` ASC");
     // change the indexes to reflect their server ids
     foreach ($servers as $server) {
         $this->servers[$server['server_id']] = $server;
     }
     return parent::run();
 }
 function __construct(Database $db, \Twig_Environment $twig)
 {
     parent::__construct($db, $twig);
     $this->setMinUserLevelRequired(PSM_USER_ANONYMOUS);
     $this->addMenu(false);
     $this->path_config = PSM_PATH_SRC . '../config.php';
     $this->path_config_old = PSM_PATH_SRC . '../config.inc.php';
     $this->setActions(array('index', 'config', 'install'), 'index');
     $this->twig->addGlobal('subtitle', psm_get_lang('system,', 'install'));
 }
Exemplo n.º 5
0
 public function initialize()
 {
     $this->user_validator = new \psm\Util\User\UserValidator($this->user);
     $servers = $this->db->select(PSM_DB_PREFIX . 'servers', null, array('server_id', 'label'), '', "ORDER BY `active` ASC, `status` DESC, `label` ASC");
     // change the indexes to reflect their server ids
     foreach ($servers as $server) {
         $this->servers[$server['server_id']] = $server;
     }
     return parent::initialize();
 }
Exemplo n.º 6
0
 function __construct(Database $db, \Twig_Environment $twig)
 {
     parent::__construct($db, $twig);
     $this->setActions('index', 'index');
 }
 function __construct(Database $db, \Twig_Environment $twig)
 {
     parent::__construct($db, $twig);
     $this->setMinUserLevelRequired(PSM_USER_ANONYMOUS);
     $this->setActions(array('401'), '401');
 }
 function __construct(Database $db, \Twig_Environment $twig)
 {
     parent::__construct($db, $twig);
 }
 function __construct(Database $db, \Twig_Environment $twig)
 {
     parent::__construct($db, $twig);
     $this->setActions(array('index', 'save'), 'index');
     $this->setCSRFKey('profile');
 }