Файл: sumerki.mobi/sumerki.mobi/zona.php
Строк: 70
<?
//////////////////////////////////////////////////////////////
//////////////////////Онлайн игра "Сумерки"///////////////////
//////////////////////Основатель: Mc Laren////////////////////
///////////////////Контакты: ICQ - 597687549//////////////////
/////////////////////Пример: Sumerki.Mobi/////////////////////
///////////Если ты это читаешь, значит скрипт слили :D////////
//////////////////////////////////////////////////////////////
define('PROTECTOR', 1);
$headmod = 'zona';//фикс. места
$textl='Тюрма';
include('files/path.php');
include('files/gzips.php');
include($path.'files/db.php');
include($path.'files/auth.php');
include($path.'files/func.php');
include($path.'files/core.php');
include($path.'files/head.php');
include($path.'files/zag.php');
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Тюрьма';
echo '</div><div class="clearFix"></div></div></div></div>';
switch($_GET[mod]){
default:
break;
case '1':
if(empty($_GET[id])){
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Нет такого узника!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$req = mysql_query("SELECT * FROM `ban` WHERE `id` = '".mysql_real_escape_string($_GET['id'])."' LIMIT 1");
// //////////////////////////
$avto = mysql_num_rows($req);
if ($avto == 1) {
$ban = mysql_fetch_array($req);
if($ban[ban_time]<$t){
mysql_query("DELETE FROM `ban` WHERE `usr` = '$log'");
}else{
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Персонаж: <font color=lime><b>$ban[usr]</b></font> находится в тюрьме<br>По причине: <font color=lime>$ban[text]!</font><br> Осталось: ";
$ban[ban_time]=$ban[ban_time]-time();
if($ban[ban_time]<60){
echo "<font color=lime>$ban[ban_time]</font> сек.<br/>";
}elseif($ban[ban_time]>60 and $ban[ban_time]<3600){
$ban[ban_time]=round($ban[ban_time]/60);
echo "<font color=lime>$ban[ban_time]</font> мин.<br/>";
}else{
$ban[ban_time]=round($ban[ban_time]/3600);
echo "<font color=lime>$ban[ban_time]</font> часов<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
}
}
}else{
echo"Нет такого узника!";
}
break;
}
include($path.'files/down.php');
include($path.'files/meny.php');
?>