PHP error

Function get_magic_quotes_gpc() is deprecated

/home/vqnxctlu/domains/luyenthidaihoctienganh.com/public_html/thi-truc-tuyen/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

#7
+
 /home/vqnxctlu/domains/luyenthidaihoctienganh.com/public_html/thi-truc-tuyen/index.php(13): YiiBase::createWebApplication("/home/vqnxctlu/domains/luyenthidaihoctienganh.com/public_html/th...")
08 defined ( 'YII_DEBUG' ) or define ( 'YII_DEBUG', true );
09 // specify how many levels of call stack should be shown in each log message
10 defined ( 'YII_TRACE_LEVEL' ) or define ( 'YII_TRACE_LEVEL', 3 );
11 
12 require_once ($yii);
13 $app = Yii::createWebApplication ( $config );
14 
15 $app->run ();
2024-03-29 12:07:25 LiteSpeed Yii Framework/1.1.10