/var/www/html/dev/ferrerocit/protected/costanti.php(17)
05 * 20151030 - TICKET:0000635 - antonio.mattis@sophiainformatica.it 06 * aggiunta caricamento label dalla tabella delle costanti in costante_label 07 * 08 * 20141024 - TICKET:0000155 - giacomo.gallo@sohpiainformatica.it 09 * errore nel caricamento costanti corretto 10 * 11 * 20141007 - TICKET:0000155 - giacomo.gallo@sohpiainformatica.it 12 * aggiunta porzione di codice che definisce FRM_IDSOCIETA e FRM_IDSTABILIMENTO per 13 * l'utente loggato 14 */ 15 16 $query_costanti = 'select * from frm_sys_costanti UNION select * from frm_sys_costanti_applicazione'; 17 $res_costanti = Yii::app()->db->createCommand($query_costanti)->queryAll(); 18 foreach ($res_costanti as $costante) { 19 define("".$costante['nome'], $costante['value']); 20 21 //20151030 - TICKET:0000635 22 define("".$costante['nome'].'_label', $costante['label']); 23 } 24 define("VERSION","2.2_55"); 25 26 //20141007 - TICKET:0000155 27 if(defined('FRM_VERSION')){ 28 if(FRM_VERSION!=VERSION){ 29 $q_update = 'UPDATE frm_sys_costanti SET value='.VERSION.' '
#0 |
+
–
/var/www/html/dev/yii/framework/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/var/www/html/dev/yii/framework/db/CDbConnection.php(325): CDbConnection->setActive(true) 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/var/www/html/dev/yii/framework/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/var/www/html/dev/yii/framework/base/CModule.php(103): CModule->getComponent("db") 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** |
#4 |
+
–
/var/www/html/dev/ferrerocit/protected/costanti.php(17): CModule->__get("db") 12 * aggiunta porzione di codice che definisce FRM_IDSOCIETA e FRM_IDSTABILIMENTO per 13 * l'utente loggato 14 */ 15 16 $query_costanti = 'select * from frm_sys_costanti UNION select * from frm_sys_costanti_applicazione'; 17 $res_costanti = Yii::app()->db->createCommand($query_costanti)->queryAll(); 18 foreach ($res_costanti as $costante) { 19 define("".$costante['nome'], $costante['value']); 20 21 //20151030 - TICKET:0000635 22 define("".$costante['nome'].'_label', $costante['label']); |
#5 |
+
–
/var/www/html/dev/ferrerocit/protected/modules/cruge/controllers/UiController.php(53): require_once("/var/www/html/dev/ferrerocit/protected/costanti.php") 48 public $basePath; // usada por CrugeUi::getResource() 49 50 public function init() 51 { 52 //20140915 - TICKET:0000126 aggiunto il caricamento delle costanti 53 require_once(Yii::app()->getbasePath().'/costanti.php');//20140915 - TICKET:0000126 54 $this->registerScripts(); 55 $this->layout = CrugeUtil::config()->generalUserManagementLayout; 56 } 57 58 public function registerScripts() |
#6 |
+
–
/var/www/html/dev/yii/framework/web/CWebApplication.php(281): UiController->init() 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#7 |
+
–
/var/www/html/dev/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#8 |
+
–
/var/www/html/dev/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#9 |
+
–
/var/www/html/dev/ferrerocit/index.php(46): CApplication->run() 41 throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).'); 42 } 43 //PHPExcel_Shared_String::buildCharacterSets(); 44 45 46 $app->run(); |