/var/www/clients/client1/web1/web/survey/framework/db/CDbConnection.php(399)
387 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 388 try 389 { 390 Yii::trace('Opening DB connection','system.db.CDbConnection'); 391 $this->_pdo=$this->createPdoInstance(); 392 $this->initConnection($this->_pdo); 393 $this->_active=true; 394 } 395 catch(PDOException $e) 396 { 397 if(YII_DEBUG) 398 { 399 throw new CDbException('CDbConnection failed to open the DB connection: '. 400 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 401 } 402 else 403 { 404 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 405 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 406 } 407 } 408 } 409 } 410 411 /**
#0 |
+
–
/var/www/clients/client1/web1/web/survey/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/clients/client1/web1/web/survey/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/clients/client1/web1/web/survey/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/clients/client1/web1/web/survey/framework/base/CApplication.php(458): CModule->getComponent("db") 453 * Returns the database connection component. 454 * @return CDbConnection the database connection 455 */ 456 public function getDb() 457 { 458 return $this->getComponent('db'); 459 } 460 461 /** 462 * Returns the error handler component. 463 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/var/www/clients/client1/web1/web/survey/framework/db/ar/CActiveRecord.php(637): CApplication->getDb() 632 { 633 if(self::$db!==null) 634 return self::$db; 635 else 636 { 637 self::$db=Yii::app()->getDb(); 638 if(self::$db instanceof CDbConnection) 639 return self::$db; 640 else 641 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 642 } |
#5 |
+
–
/var/www/clients/client1/web1/web/survey/framework/db/ar/CActiveRecord.php(2384): CActiveRecord->getDbConnection() 2379 public function __construct($model) 2380 { 2381 $this->_modelClassName=get_class($model); 2382 2383 $tableName=$model->tableName(); 2384 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2385 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2386 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2387 2388 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 2389 { |
#6 |
+
–
/var/www/clients/client1/web1/web/survey/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(SettingGlobal) 406 { 407 $className=get_class($this); 408 if(!array_key_exists($className,self::$_md)) 409 { 410 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 411 self::$_md[$className]=new CActiveRecordMetaData($this); 412 } 413 return self::$_md[$className]; 414 } 415 416 /** |
#7 |
+
–
/var/www/clients/client1/web1/web/survey/framework/db/ar/CActiveRecord.php(680): CActiveRecord->getMetaData() 675 * @param string $name attribute name 676 * @return boolean whether this AR has the named attribute (table column). 677 */ 678 public function hasAttribute($name) 679 { 680 return isset($this->getMetaData()->columns[$name]); 681 } 682 683 /** 684 * Returns the named attribute value. 685 * If this is a new record and the attribute is not set before, |
#8 |
+
–
/var/www/clients/client1/web1/web/survey/application/models/LSActiveRecord.php(28): CActiveRecord->hasAttribute("created") 23 * @see PluginEventBehavior 24 * @return array 25 */ 26 public function behaviors(){ 27 $aBehaviors=array(); 28 $sCreateFieldName=($this->hasAttribute('created')?'created':null); 29 $sUpdateFieldName=($this->hasAttribute('modified')?'modified':null); 30 $sDriverName = Yii::app()->db->getDriverName(); 31 if ($sDriverName=='sqlsrv' || $sDriverName=='dblib') 32 { 33 $sTimestampExpression=new CDbExpression('GETDATE()'); |
#9 |
+
–
/var/www/clients/client1/web1/web/survey/framework/db/ar/CActiveRecord.php(396): LSActiveRecord->behaviors() 391 if(isset(self::$_models[$className])) 392 return self::$_models[$className]; 393 else 394 { 395 $model=self::$_models[$className]=new $className(null); 396 $model->attachBehaviors($model->behaviors()); 397 return $model; 398 } 399 } 400 401 /** |
#10 |
+
–
/var/www/clients/client1/web1/web/survey/application/models/SettingGlobal.php(28): CActiveRecord::model("SettingGlobal") 23 * @param string $class 24 * @return CActiveRecord 25 */ 26 public static function model($class = __CLASS__) 27 { 28 return parent::model($class); 29 } 30 31 /** 32 * Returns the setting's table name to be used by the model 33 * |
#11 |
+
–
/var/www/clients/client1/web1/web/survey/application/helpers/globalsettings_helper.php(21): SettingGlobal::model() 16 injectglobalsettings(); 17 18 19 function injectglobalsettings() 20 { 21 $settings = SettingGlobal::model()->findAll(); 22 23 //if ($dbvaluearray!==false) 24 if (count($settings) > 0) 25 { 26 foreach ($settings as $setting) |
#12 |
+
–
/var/www/clients/client1/web1/web/survey/application/helpers/globalsettings_helper.php(16): injectglobalsettings() 11 * See COPYRIGHT.php for copyright notices and details. 12 * 13 */ 14 //Ensure script is not run directly, avoid path disclosure 15 //if (!isset($homedir) || isset($_REQUEST['$homedir'])) {die("Cannot run this script directly");} 16 injectglobalsettings(); 17 18 19 function injectglobalsettings() 20 { 21 $settings = SettingGlobal::model()->findAll(); |
#13 |
+
–
/var/www/clients/client1/web1/web/survey/framework/YiiBase.php(321): require("/var/www/clients/client1/web1/web/survey/application/helpers/glo...") 316 if($isClass) 317 { 318 if($forceInclude) 319 { 320 if(is_file($path.'.php')) 321 require($path.'.php'); 322 else 323 throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.',array('{alias}'=>$alias))); 324 self::$_imports[$alias]=$className; 325 } 326 else |
#14 |
+
–
/var/www/clients/client1/web1/web/survey/application/core/LSYii_Application.php(95): YiiBase::import("application.helpers.globalsettings_helper", true) 090 * @param string $helper 091 * @return void 092 */ 093 public function loadHelper($helper) 094 { 095 Yii::import('application.helpers.' . $helper . '_helper', true); 096 } 097 098 /** 099 * Loads a library 100 * |
#15 |
+
–
/var/www/clients/client1/web1/web/survey/application/core/LSYii_Controller.php(70): LSYii_Application->loadHelper("globalsettings") 65 * @param string $helper 66 * @return void 67 */ 68 public function loadHelper($helper) 69 { 70 Yii::app()->loadHelper($helper); 71 } 72 73 /** 74 * Loads a library 75 * |
#16 |
+
–
/var/www/clients/client1/web1/web/survey/application/core/LSYii_Controller.php(38): LSYii_Controller->loadHelper("globalsettings") 33 $this->_checkInstallation(); 34 35 Yii::app()->session->init(); 36 $this->loadLibrary('LS.LS'); 37 // This will setConfig from database 38 $this->loadHelper('globalsettings'); 39 $this->loadHelper('common'); 40 $this->loadHelper('expressions.em_manager'); 41 $this->loadHelper('replacements'); 42 $this->_init(); 43 } |
#17 |
+
–
/var/www/clients/client1/web1/web/survey/framework/web/CWebApplication.php(359): LSYii_Controller->__construct("survey", null) 354 require($classFile); 355 if(class_exists($className,false) && is_subclass_of($className,'CController')) 356 { 357 $id[0]=strtolower($id[0]); 358 return array( 359 new $className($controllerID.$id,$owner===$this?null:$owner), 360 $this->parseActionParams($route), 361 ); 362 } 363 return null; 364 } |
#18 |
+
–
/var/www/clients/client1/web1/web/survey/framework/web/CWebApplication.php(276): CWebApplication->createController("index/sid/168243/") 271 * @param string $route the route of the current request. See {@link createController} for more details. 272 * @throws CHttpException if the controller could not be created. 273 */ 274 public function runController($route) 275 { 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); |
#19 |
+
–
/var/www/clients/client1/web1/web/survey/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/sid/168243") 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. |
#20 |
+
–
/var/www/clients/client1/web1/web/survey/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#21 |
+
–
/var/www/clients/client1/web1/web/survey/index.php(211): CApplication->run() 206 die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath)); 207 } 208 } 209 210 Yii::$enableIncludePath = false; 211 Yii::createApplication('LSYii_Application', $config)->run(); 212 213 /* End of file index.php */ 214 /* Location: ./index.php */ |