<?
define('PROTECTOR', 1);

$headmod = 'gorod';//фикс. места

$textl='Город';
include('files/path.php');
include($path.'files/db.php');
include($path.'files/auth.php');
include($path.'files/func.php');
going();
zasad();
ryd();
place_okr();
place_zamok();
place_tower();
include($path.'files/core.php');
include($path.'files/head.php');
include($path.'files/zag.php');

/////загружаем город
$req = mysql_query("SELECT * FROM `zamok` WHERE `city` = '$udata[city]' LIMIT 1");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto==1){
$city = mysql_fetch_array($req);
if($city[clan]!='not'){
echo'<div class="m_bg">Контроль: ';
$req = mysql_query("SELECT * FROM `clan` WHERE `lider`='$city[clan]'");
////////////////////////////
$clan = mysql_fetch_array($req);
if($clan[name] == NULL) { echo'<b>нет лидера</b>'; } 
else{
echo"<a href=\"clan.php?id=$clan[id]\"><font color ='lime'><b>$clan[name]</b></font></a>";}
echo'</div>';
}
}
//////////////
$b = mysql_query("SELECT * FROM bazar WHERE `city`='$udata[city]'");
$b1 = mysql_query("SELECT * FROM bazar_plat WHERE `city`='$udata[city]'");
////////////////////////////
$cbaz=mysql_num_rows($b);
$cbaz1=mysql_num_rows($b1);
////////
include"data/gorod/$udata[city].dat";
////////////////////////
include($path.'files/down.php');
?>
