/data/sites/web/climateinnovationsgroupnl/www/framework/web/CHttpRequest.php(120)
108 parent::init(); 109 $this->normalizeRequest(); 110 } 111 112 /** 113 * Normalizes the request data. 114 * This method strips off slashes in request data if get_magic_quotes_gpc() returns true. 115 * It also performs CSRF validation if {@link enableCsrfValidation} is true. 116 */ 117 protected function normalizeRequest() 118 { 119 // normalize request 120 if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) 121 { 122 if(isset($_GET)) 123 $_GET=$this->stripSlashes($_GET); 124 if(isset($_POST)) 125 $_POST=$this->stripSlashes($_POST); 126 if(isset($_REQUEST)) 127 $_REQUEST=$this->stripSlashes($_REQUEST); 128 if(isset($_COOKIE)) 129 $_COOKIE=$this->stripSlashes($_COOKIE); 130 } 131 132 if($this->enableCsrfValidation)
#0 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/framework/web/CHttpRequest.php(109): CHttpRequest->normalizeRequest() 104 * the user request data. 105 */ 106 public function init() 107 { 108 parent::init(); 109 $this->normalizeRequest(); 110 } 111 112 /** 113 * Normalizes the request data. 114 * This method strips off slashes in request data if get_magic_quotes_gpc() returns true. |
#1 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/framework/base/CModule.php(388): CHttpRequest->init() 383 if(!isset($config['enabled']) || $config['enabled']) 384 { 385 Yii::trace("Loading \"$id\" application component",'system.CModule'); 386 unset($config['enabled']); 387 $component=Yii::createComponent($config); 388 $component->init(); 389 return $this->_components[$id]=$component; 390 } 391 } 392 } 393 |
#2 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/framework/base/CApplication.php(494): CModule->getComponent("request") 489 * Returns the request component. 490 * @return CHttpRequest the request component 491 */ 492 public function getRequest() 493 { 494 return $this->getComponent('request'); 495 } 496 497 /** 498 * Returns the URL manager component. 499 * @return CUrlManager the URL manager component |
#3 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/public_html/protected/extensions/langhandler/ELangHandler.php(13): CApplication->getRequest() 08 array_push($this->languages, Yii::app()->getLanguage()); 09 $this->parseLanguage(); 10 } 11 12 private function parseLanguage() { 13 Yii::app()->urlManager->parseUrl(Yii::app()->getRequest()); 14 // primary set language to lang parameter 15 if(!isset($_GET['lang'])) { 16 // secondary set language to preferred language in browser if set in configuration 17 if(Yii::app()->config->get('general_language_preferred')) { 18 $defaultLang = substr(Yii::app()->getRequest()->getPreferredLanguage(), 0, 2); |
#4 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/public_html/protected/extensions/langhandler/ELangHandler.php(9): ELangHandler->parseLanguage() 04 class ELangHandler extends CApplicationComponent { 05 public $languages = array(); 06 public function init() { 07 $this->languages = CHtml::listData(Language::model()->findAllByAttributes(array('enabled'=>true)), 'id', 'code'); 08 array_push($this->languages, Yii::app()->getLanguage()); 09 $this->parseLanguage(); 10 } 11 12 private function parseLanguage() { 13 Yii::app()->urlManager->parseUrl(Yii::app()->getRequest()); 14 // primary set language to lang parameter |
#5 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/framework/base/CModule.php(388): ELangHandler->init() 383 if(!isset($config['enabled']) || $config['enabled']) 384 { 385 Yii::trace("Loading \"$id\" application component",'system.CModule'); 386 unset($config['enabled']); 387 $component=Yii::createComponent($config); 388 $component->init(); 389 return $this->_components[$id]=$component; 390 } 391 } 392 } 393 |
#6 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/framework/base/CModule.php(493): CModule->getComponent("ELangHandler") 488 * Loads static application components. 489 */ 490 protected function preloadComponents() 491 { 492 foreach($this->preload as $id) 493 $this->getComponent($id); 494 } 495 496 /** 497 * Preinitializes the module. 498 * This method is called at the beginning of the module constructor. |
#7 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/framework/base/CApplication.php(146): CModule->preloadComponents() 141 $this->initSystemHandlers(); 142 $this->registerCoreComponents(); 143 144 $this->configure($config); 145 $this->attachBehaviors($this->behaviors); 146 $this->preloadComponents(); 147 148 $this->init(); 149 } 150 151 |
#8 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/framework/YiiBase.php(127): CApplication->__construct(array("name" => "Inedo", "theme" => "inedo", "defaultController" => "content/category/index", "preload" => array("log", "ELangHandler", "less"), ...)) 122 * to the constructor of the application class. 123 * @return mixed the application instance 124 */ 125 public static function createApplication($class,$config=null) 126 { 127 return new $class($config); 128 } 129 130 /** 131 * Returns the application singleton, null if the singleton has not been created yet. 132 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#9 |
+
–
/data/sites/web/climateinnovationsgroupnl/www/public_html/index.php(21): YiiBase::createApplication("CMyWebApplication", "/data/sites/web/climateinnovationsgroupnl/www/public_html/protec...") 16 17 require_once($yii); 18 require_once(dirname(__FILE__).'/protected/config/CMyWebApplication.php'); 19 20 Yii::beginProfile('app'); 21 Yii::createApplication('CMyWebApplication', $config)->run(); 22 Yii::endProfile('app'); |