Файл: to_startworld.php
Строк: 12
<?
define('PROTECTOR', 1);
include('files/path.php');
include($path.'files/db.php');
include($path.'files/auth.php');
include($path.'files/func.php');
include($path.'files/core.php');
/////////место
$req = mysql_query("SELECT * FROM `mesto` WHERE `usr` = '$log' LIMIT 1");
////////////////////////////
$mestouser = mysql_fetch_array($req);
if($mestouser[city]==0){
mysql_query("UPDATE `mesto` SET `city` = '1' WHERE `usr` = '$log'");
header("Location: startokrestnosti.php?");exit;
}else{
ryd();
header("Location: startokrestnosti.php?");exit;
}
?>