//формирование doc документа if ($links[0]['name'] == "corp") { if ($_GET['action'] == "get-doc") { $GLOBALS['doc'] == "all"; header("Content-Type: application/msword"); header("Content-Disposition: attachment; filename=объявления.doc;"); header("Content-Transfer-Encoding: binary"); } } ?>
Мы гарантируем безопасность покупки квартиры!
Купить квартиру
Продать квартиру
Ипотека
Квартиры в аренду без посредников
Без посредников! Без оплаты услуг! Выбери квартиру самостоятельно! |
Поиск по названию
Call to undefined function mysql_real_escape_string()
/home/www/an24.org/backend/protected/controllers/HousesController.php(127)
115 $params[':yr24_developer_id'] = Yii::app()->agent->byUrl->id; 116 } 117 118 $geoAreas = GeoArea::model()->with('geoRegion', 'jks', 'jks.cover', 'jks.childs', 'jks.city', 'jks.area') 119 ->findAll(['condition' => $condition, 'params' => $params, 'order' => 't.id']); 120 $this->render('view', array( 121 'model' => $model, 122 'geoAreas' => $geoAreas, 123 )); 124 } 125 else 126 { 127 $jkName = mysql_real_escape_string($jkName); 128 $q = mysql_query("SELECT c.html_block FROM links l LEFT JOIN content c ON (c.id_link = l.id) WHERE l.name = '$jkName'"); 129 if ($q) 130 { 131 $content = mysql_fetch_assoc($q); 132 echo $content = $content['html_block']; 133 } 134 /*$command = Yii::app()->db->createCommand("SELECT c.html_block FROM links l LEFT JOIN content c ON (c.id_link = l.id) WHERE l.name = :jk"); 135 $command->bindParam(":jk",$jkName,PDO::PARAM_STR); 136 echo $content = $command->queryScalar();*/ 137 } 138 } 139
#0 |
+
–
/home/www/an24.org/backend/framework/web/actions/CInlineAction.php(49): HousesController->actionViewJk() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#1 |
+
–
/home/www/an24.org/backend/framework/web/CController.php(308): CInlineAction->runWithParams(array("action" => "view", "id_jk" => "593", "city" => "1")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#2 |
+
–
/home/www/an24.org/backend/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#3 |
+
–
/home/www/an24.org/backend/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#4 |
+
–
/home/www/an24.org/backend/framework/web/CWebApplication.php(282): CController->run("viewJK") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#5 |
+
–
/home/www/an24.org/site/templates/default.php(788): CWebApplication->runController("houses/viewJK") 783 { 784 // выполняем экшен(ы) 785 if ($GLOBALS['link']['name'] == 'kompleksy' && !$_GET['jk_name']) 786 Yii::app()->runController('houses/viewJKs'); 787 if ($GLOBALS['link']['name'] != 'kompleksy' || $_GET['jk_name']) 788 Yii::app()->runController('houses/viewJK'); 789 } 790 elseif ($GLOBALS['link']['name'] == 'pokupka_kvartiryi') 791 include "site/base/modules/buy_nedv/buy.php"; 792 elseif ($GLOBALS['link']['name'] == 'orders') 793 include "site/base/modules/buy_nedv/buy.php"; |
#6 |
+
–
/home/www/an24.org/index.php(69): include("/home/www/an24.org/site/templates/default.php") 64 if (is_numeric($_GET[rid]) AND !isset($_COOKIE[refer])) 65 inc_ref_count($_GET[rid], true); 66 if (is_numeric($_COOKIE[refer])) 67 inc_ref_count($_COOKIE[refer], false); 68 69 include "site/templates/default.php"; 70 71 72 73 74 |