301 Moved Permanently


nginx
Error

Error

Call to undefined function mysql_escape_string()

/home/c/cl14421/sportnrj/public_html/protected/components/Utilities.php(150)

138          $param = trim($param);
139          $param=strip_tags($param);
140          $param=htmlspecialchars($param,ENT_QUOTES);
141          
142          $magic_quotes = get_magic_quotes_gpc()?1:0;
143          
144          if ($magic_quotes)
145          {
146                   $param=stripslashes($param);
147          }
148          else
149          {
150                   $param=mysql_escape_string($param);
151          }
152             
153             
154                 $param = nl2br($param); 
155                 return $param; 
156     }
157     
158     // random pass generate
159     static function passGenerate($passLength = 7) {
160         $length = $passLength;
161         $chars = array_merge(range(0,9), range('a','z'), range('A','Z'));
162         shuffle($chars);

Stack Trace

#0
+
 /home/c/cl14421/sportnrj/public_html/themes/sport/views/site/blocks/_header.php(70): Utilities::sanitize("")
65     ?>
66     </ul>
67  </div>
68   </div>
69 <form action="/site/category" class="search">
70   <input type="text" name="search_text" value="<?=Utilities::sanitize($_GET["search_text"]);?>" tabindex="1">
71   <input type="submit" value="Найти" tabindex="3">
72   <br>
73   <?php
74   
75   if(Yii::app()->controller->action->id == 'category' && is_numeric(Yii::app()->request->getParam('id')) || isset($_GET['cat_id'])) 
#4
+
 /home/c/cl14421/sportnrj/public_html/themes/sport/views/layouts/main.php(34): CController->renderPartial("/site/blocks/_header")
29 </head>
30 
31 <body>
32 <div class="wrapper">
33 <!-- header -->
34             <?php echo $this->renderPartial('/site/blocks/_header'); ?> 
35 <!--/ header -->    
36 
37 <!-- topmenu -->
38             <?php echo $this->renderPartial('/site/blocks/_topmenu'); ?> 
39 <!--/ topmenu -->
#8
+
 /home/c/cl14421/sportnrj/public_html/protected/controllers/SiteController.php(69): CController->render("main_page", array("page" => Page, "day_items" => array(Item, Item, Item, Item, ...), "week_items" => array(Item, Item, Item, Item, ...), "month_items" => array(Item, Item, Item, Item, ...), ...))
64         $this->render('main_page',array('page'=>$page,
65                                         'day_items'=>$day_items,
66                                         'week_items'=>$week_items,
67                                         'month_items'=>$month_items,
68                                         'top_items'=>$top_items,
69                                         'brands'=>$brands
70                                        ));
71     }
72 
73     /**
74      * This is the action to handle external exceptions.
2018-07-23 12:52:19 Apache/2.4.7 Yii Framework/1.1.13