public function __construct($re) { if (!is_file(Wind::getRealPath('DATA:install.lock', true))) { Wind::getComponent('response')->sendRedirect("install.php"); } parent::__construct($re); }
function utilisateursController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // Controle d'acces � la rubrique $this->users->checkAccess('configuration'); // Activation du menu $this->menu_admin = 'configuration'; }
function statsController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // Controle d'acces ŕ la rubrique $this->users->checkAccess('stats'); // Activation du menu $this->menu_admin = 'stats'; }
function thickboxController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // On masque les Head, header et footer originaux plus le debug $this->autoFireHeader = false; $this->autoFireHead = false; $this->autoFireFooter = false; $this->autoFireDebug = false; }
function settingsController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; if (isset($_SESSION['user']['role'])) { if ($_SESSION['user']['role'] == 'tresorier' || $_SESSION['user']['role'] == '') { header("Location: " . $this->url . '/home'); } } }
/** * 构造函数 */ public function __construct($re) { if (!is_file(Wind::getRealPath('DATA:install.lock', true))) { Wind::getComponent('response')->sendRedirect("install.php"); } parent::__construct($re); //云应用监听sql执行 WindFactory::_getInstance()->loadClassDefinitions(array('sqlStatement' => array('proxy' => 'WIND:filter.proxy.WindEnhancedClassProxy', 'listeners' => array('LIB:compile.acloud.PwAcloudDbListener')))); $this->charset = Wind::getComponent('response')->getCharset(); }
function protectedController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->autoFireHeader = false; $this->autoFireHead = false; $this->autoFireView = false; $this->autoFireFooter = false; $this->autoFireDebug = false; $this->catchAll = true; }
function ajaxController(&$command, $config, $app) { parent::__construct($command, $config, $app); // On place le redirect sur la home $_SESSION['request_url'] = $this->lurl; $this->autoFireHeader = false; $this->autoFireDebug = false; $this->autoFireHead = false; $this->autoFireFooter = false; }
function menusController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // Controle d'acces à la rubrique $this->users->checkAccess('edition'); // Activation du menu $this->menu_admin = 'edition'; // Definition des types d'éléments $this->typesElements = array('L' => 'Lien Interne', 'LX' => 'Lien Externe'); }
function thickboxController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // On masque les Head, header et footer originaux plus le debug $this->autoFireHeader = false; $this->autoFireHead = false; $this->autoFireFooter = false; $this->autoFireDebug = false; // On place le redirect sur la home $_SESSION['request_url'] = $this->url; }
function cronController(&$command, $config) { parent::__construct($command, $config, 'default'); $this->autoFireHeader = false; $this->autoFireHead = false; $this->autoFireFooter = false; $this->autoFireView = false; $this->autoFireDebug = false; // Securisation des acces if (isset($_SERVER['REMOTE_ADDR']) && !in_array($_SERVER['REMOTE_ADDR'], $this->Config['ip_admin'][$this->Config['env']])) { die; } }
function traductionsController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // Controle d'acces ŕ la rubrique $this->users->checkAccess('configuration'); // Activation du menu $this->menu_admin = 'configuration'; if (isset($_SESSION['user']['role'])) { if ($_SESSION['user']['role'] == 'tresorier' || $_SESSION['user']['role'] == '') { header("Location: " . $this->url . '/home'); } } }
function fdpController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // Check de la plateforme if ($this->cms == 'iZinoa') { // Renvoi sur la page de gestion de l'arbo header('Location:' . $this->lurl . '/tree'); die; } // Controle d'acces à la rubrique $this->users->checkAccess('boutique'); // Activation du menu $this->menu_admin = 'boutique'; }
function clientsController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // // Check de la plateforme // if($this->cms == 'iZinoa') // { // // Renvoi sur la page de gestion de l'arbo // header('Location:'.$this->lurl.'/home'); // die; // } // Controle d'acces � la rubrique $this->users->checkAccess('clients'); // Activation du menu $this->menu_admin = 'clients'; }
function temproduitsController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // Check de la plateforme if ($this->cms == 'iZinoa') { // Renvoi sur la page de gestion de l'arbo header('Location:' . $this->lurl . '/tree'); die; } // Controle d'acces ŕ la rubrique $this->users->checkAccess('boutique'); // Activation du menu $this->menu_admin = 'boutique'; // Declaration des datas $this->produits_elements = $this->loadData('produits_elements'); $this->produits = $this->loadData('produits', array('url' => $this->lurl, 'surl' => $this->surl, 'produits_elements' => $this->produits_elements, 'upload' => $this->upload, 'spath' => $this->spath, 'path' => $this->path)); }
function mailsController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; // Controle d'acces à la rubrique $this->users->checkAccess('configuration'); // Activation du menu $this->menu_admin = 'configuration'; // Init NMP $this->nmpEMV = false; // SI NMP ACTIF if ($this->key_api != '' && $this->login_api != '' && $this->pwd_api != '' && $this->serveur_api != '') { // Connection au serveur NMP $this->location_nmpsoap = 'https://' . $this->serveur_api . '/apitransactional/services/TransactionalService?wsdl'; $this->nmpsoap = new SoapClient($this->location_nmpsoap); // Connexion à l'API NMP $result = $this->nmpsoap->openApiConnection(array('login' => $this->login_api, 'pwd' => $this->pwd_api, 'key' => $this->key_api)); // Recuperation du token de session $this->token_soap = $result->return; // Youpi $this->nmpEMV = true; } }
function redirectionsController(&$command, $config, $app) { parent::__construct($command, $config, $app); $this->catchAll = true; }
function etudesController($command, $config, $app) { parent::__construct($command, $config, $app); $this->users->checkAccess('etudes'); $this->menu_admin = 'etudes'; }