Вход Регистрация
Файл: region_clean/city/bandity.php
Строк: 52
<?
#######################################
## Mod By KoT (borispol) [76-75-072] ##
#######################################

require_once "../start.php";
require_once 
"../sid.php";

header("Cache-Control: no-cache");
if (
$ver == "wml"header ("Content-type:text/vnd.wap.wml; charset=utf-8");
else 
header("Content-Type:text/html; charset=UTF-8");

require_once 
"../inc.php";
$link connect_db();
list(
$row$id$ps$fsize1$fsize2) = check_login($link);
require_once 
"../version.php";

if (
$ver == "wml") {
echo 
$xml;
echo 
$dtd;
echo 
"<wml>
      <card id="
city" title="Онлайн-сити">
      <p>"
;
} else {
echo 
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
<html xmlns="http://www.w3.org/1999/xhtml">
      <
head><link rel="stylesheet" type="text/css" href="../css/$css.css"/>
      <
title>Онлайн-сити</title>
      <
meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
      <
div align="left">n";
}

$gconf = mysql_fetch_array(mysql_query("SELECT FROM `gorod_conf`"));

if (
$gconf[0]['open'] != 1) {

echo '<div class="
c4">Peйтинг Бaндитoв</div><br/>';

$x = mysql_query("SELECT FROM `usersWHERE `gorod_band`!=''");
if (!mysql_num_rows(
$x)) {
echo 'Пока нет бандитов!<br/>';
} else {
while(
$row = mysql_fetch_assoc($x)) {
echo "
<br/><font color='red'><b>".col_n($row["user"])."</b></font> (".$row["posts"].")<br/>
      
Бaндa: <b>".$row["gorod_band"]."</b><br/>
      
Пpecтyпнocть: <font color='red'><b>".$row["gorod_kriminal"]."</b></font>";
}

if (
$row['gorod_band'] != '') {
echo "
<br/>&raquo; <a href 'redband.php?$ses&amp;ref=$ref'>Bxoд в пaнeль</a><br/>";
} else {
echo "
<br/>&raquo; <a href='rband.php?$ses&amp;action=vstup&amp;ref=$ref'>Coздaть бaндy</a><br/>";
}
}

echo "
<div class = 'd1'><a href='index.php?$ses&amp;ref=$ref'>В город</a></div>";
} else {
echo "
<div class = 'd1'>Город закрыт Администратором!<div>";
}

echo "
<div class = 'd1'><a href="../enter.php?$ses&amp;ref=$ref">В прихожую</a></div>";
include_once '../foot.php';
exit;
?>
Онлайн: 0
Реклама