function preProcess() { if ($this->getAttribute('action') == 'set') { $value = is_null($this->getAttribute('value')) ? $this->getContent() : $this->getAttribute('value'); org_glizy_Config::set($this->getAttribute('key'), $value); } }
/** * @return bool */ static function isStarted() { $prefix = org_glizy_Config::get('SESSION_PREFIX'); if (isset($_GET['draft']) && $_GET['draft'] != '' && isset($_GET['sespre']) && $_GET['sespre'] != '') { $prefix = $_GET['sespre']; org_glizy_Config::set('SESSION_PREFIX', $prefix); } if (!isset($_SESSION) || !isset($_SESSION[$prefix . 'sessionStarted']) || $_SESSION[$prefix . 'sessionStarted'] !== true) { return false; } else { return true; } }
function _init() { // inizializzazione delle classi // classe statica per la gestione dei path org_glizy_Paths::init($this->_pathApplication, $this->_pathCore); // legge i parametri di configurazione org_glizy_Config::init($this->_configHost); $sessionPrefix = org_glizy_Config::get('SESSION_PREFIX'); if (empty($sessionPrefix)) { // se non è stato specificato un prefisso per la sessione // viene usato il nome dell'applicazione org_glizy_Config::set('SESSION_PREFIX', str_replace(array('.', ' ', '/'), '', $this->_pathApplication) . '_'); } // inizializzazione della sessione __Session::start(); if (org_glizy_config::get('LOG_FILE') != '') { if (org_glizy_config::get('LOG_FILE') != "firebug") { $this->_logObj = org_glizy_log_LogFactory::create('File', org_glizy_Paths::get('APPLICATION') . '/' . org_glizy_config::get('LOG_FILE'), array(), org_glizy_config::get('LOG_LEVEL')); } else { $this->_logObj = org_glizy_log_LogFactory::create('FireBug', array(), org_glizy_config::get('LOG_LEVEL')); } $this->log("Start application", GLZ_LOG_SYSTEM); } if (__Config::get('glizy.exception.log.format') == 'elasticsearch') { org_glizy_log_LogFactory::create('ElasticSearch', array(), 0); // Questo serve per poter istanziare la classe in Exception.php (gruppo 0 non logga nulla) } $this->login(); $this->_initLanguage(); }