PHP error

Function get_magic_quotes_gpc() is deprecated

/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)

Stack Trace

#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){
#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);
#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 */
2024-03-28 19:02:23 Apache/2.4.37 (centos) OpenSSL/1.1.1g mod_fcgid/2.3.9 Yii Framework/1.1.10