Exemplo n.º 1
0
 public function __construct($re)
 {
     if (!is_file(Wind::getRealPath('DATA:install.lock', true))) {
         Wind::getComponent('response')->sendRedirect("install.php");
     }
     parent::__construct($re);
 }
Exemplo n.º 2
0
 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';
 }
Exemplo n.º 3
0
 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';
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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');
         }
     }
 }
Exemplo n.º 6
0
 /**
  * 构造函数
  */
 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();
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
Arquivo: ajax.php Projeto: bilel99/oge
 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;
 }
Exemplo n.º 9
0
 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');
 }
Exemplo n.º 10
0
 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;
 }
Exemplo n.º 11
0
Arquivo: cron.php Projeto: bilel99/oge
 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;
     }
 }
Exemplo n.º 12
0
 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');
         }
     }
 }
Exemplo n.º 13
0
Arquivo: fdp.php Projeto: bilel99/oge
 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';
 }
Exemplo n.º 14
0
 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';
 }
Exemplo n.º 15
0
 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));
 }
Exemplo n.º 16
0
 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;
     }
 }
Exemplo n.º 17
0
 function redirectionsController(&$command, $config, $app)
 {
     parent::__construct($command, $config, $app);
     $this->catchAll = true;
 }
Exemplo n.º 18
0
 function etudesController($command, $config, $app)
 {
     parent::__construct($command, $config, $app);
     $this->users->checkAccess('etudes');
     $this->menu_admin = 'etudes';
 }