/home/anket/public_html/framework/web/CHttpRequest.php(119)
107 parent::init(); 108 $this->normalizeRequest(); 109 } 110 111 /** 112 * Normalizes the request data. 113 * This method strips off slashes in request data if get_magic_quotes_gpc() returns true. 114 * It also performs CSRF validation if {@link enableCsrfValidation} is true. 115 */ 116 protected function normalizeRequest() 117 { 118 // normalize request 119 if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) 120 { 121 if(isset($_GET)) 122 $_GET=$this->stripSlashes($_GET); 123 if(isset($_POST)) 124 $_POST=$this->stripSlashes($_POST); 125 if(isset($_REQUEST)) 126 $_REQUEST=$this->stripSlashes($_REQUEST); 127 if(isset($_COOKIE)) 128 $_COOKIE=$this->stripSlashes($_COOKIE); 129 } 130 131 if($this->enableCsrfValidation)
#0 |
+
–
/home/anket/public_html/application/core/LSHttpRequest.php(38): CHttpRequest->normalizeRequest() 33 */ 34 class LSHttpRequest extends CHttpRequest { 35 public $noCsrfValidationRoutes = array(); 36 37 protected function normalizeRequest(){ 38 parent::normalizeRequest(); 39 40 if($_SERVER['REQUEST_METHOD'] != 'POST') return; 41 42 $route = Yii::app()->getUrlManager()->parseUrl($this); 43 if($this->enableCsrfValidation){ |
#1 |
+
–
/home/anket/public_html/framework/web/CHttpRequest.php(108): LSHttpRequest->normalizeRequest() 103 * the user request data. 104 */ 105 public function init() 106 { 107 parent::init(); 108 $this->normalizeRequest(); 109 } 110 111 /** 112 * Normalizes the request data. 113 * This method strips off slashes in request data if get_magic_quotes_gpc() returns true. |
#2 |
+
–
/home/anket/public_html/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 |
#3 |
+
–
/home/anket/public_html/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 |
#4 |
+
–
/home/anket/public_html/framework/web/CWebApplication.php(535): CApplication->getRequest() 530 */ 531 protected function init() 532 { 533 parent::init(); 534 // preload 'request' so that it has chance to respond to onBeginRequest event. 535 $this->getRequest(); 536 } 537 } |
#5 |
+
–
/home/anket/public_html/framework/base/CApplication.php(148): CWebApplication->init() 143 144 $this->configure($config); 145 $this->attachBehaviors($this->behaviors); 146 $this->preloadComponents(); 147 148 $this->init(); 149 } 150 151 152 /** 153 * Runs the application. |
#6 |
+
–
/home/anket/public_html/application/core/LSYii_Application.php(107): CApplication->__construct(array("runtimePath" => "/home/anket/public_html/tmp/runtime", "name" => "LimeSurvey", "defaultController" => "survey", "import" => array("application.core.*", "application.models.*", "application.controllers.*", "application.modules.*"), ...)) 102 'cookieParams' => array( 103 'httponly' => true, 104 ), 105 )); 106 107 parent::__construct($config); 108 // Load the default and environmental settings from different files into self. 109 $ls_config = require(APPPATH . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config-defaults.php'); 110 $email_config = require(APPPATH . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'email.php'); 111 $version_config = require(APPPATH . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'version.php'); 112 $settings = array_merge($ls_config, $version_config, $email_config); |
#7 |
+
–
/home/anket/public_html/framework/YiiBase.php(127): LSYii_Application->__construct(array("basePath" => "/home/anket/public_html/application", "runtimePath" => "/home/anket/public_html/tmp/runtime", "name" => "LimeSurvey", "defaultController" => "survey", ...)) 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. |
#8 |
+
–
/home/anket/public_html/index.php(177): YiiBase::createApplication("LSYii_Application", "/home/anket/public_html/application/config/config.php") 172 * 173 */ 174 require_once BASEPATH . 'yii' . EXT; 175 require_once APPPATH . 'core/LSYii_Application' . EXT; 176 177 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run(); 178 179 /* End of file index.php */ 180 /* Location: ./index.php */ |