Файл: region_clean/znak/index.php
Строк: 91
<?
#######################################
## 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";
}
$times = getmicrotime();
mysql_query("Update users set onl='".$times."', room='love' where id ='$id'");
echo '<div class="c4">Знакомства</div><br/>';
echo "<img src="../icon/love_logo.gif" alt="."/><br/><br/>";
$users = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM users"));
echo "<img src='2.gif' alt=''/> <a href='../searcht.php?$ses&ref=$ref'>Общий поиск!!!</a><br/>n";
echo '<br/><div class="d1">';
if ($row['sex'] == "М") {
echo '<img src="../icon/games-all.gif" alt=""/> [<a href="igra.php?'.$ses.'&sex=2">Игра "Да-Нет"</a>]<br/>';
}
elseif ($row['sex'] == "Ж") {
echo '<img src="../icon/games-all.gif" alt=""/> [<a href="igra.php?'.$ses.'&sex=1">Игра "Да-Нет"</a>]<br/>';
}
echo '<img src="../icon/komn.png" alt=""/> [<a href="statistic.php?'.$ses.'">Статистика игры</a>]</div><br/>';
echo "Всего анкет: (".$users[0].")<br/>n";
$usersm = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM users where sex='М'"));
$usersj = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM users where sex='Ж'"));
echo "Из них:<br/>n
<img src='woman.gif' alt=''/> <a href='woman.php?$ses&ref=$ref'>Девушек</a> (".$usersj[0].")<br/>n
<img src='man.gif' alt=''/> <a href='man.php?$ses&ref=$ref'>Парней</a> (".$usersm[0].")<br/>n";
echo '<br/>';
$lideru = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `sex` = 'М' ORDER BY `avtoritet` DESC LIMIT 1"));
$lideru2 = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `sex` = 'Ж' ORDER BY `avtoritet` DESC LIMIT 1"));
$avtoritet = $lideru['avtoritet'];
$avtoritet2 = $lideru2['avtoritet'];
$usid = $lideru['id'];
$usid2 = $lideru2['id'];
$user = $lideru['user'];
$user2 = $lideru2['user'];
echo '<img src="../icon/mag.png" alt="."/> Лидеры:<br/>';
echo "+$avtoritet <a href='../info.php?$ses&nk=$usid&ref=$ref'>".col_n($user)."</a> | ";
echo "+$avtoritet2 <a href='../info.php?$ses&nk=$usid2&ref=$ref'>".col_n($user2)."</a><br/><br/>";
$q = mysql_query("select * from `users` ORDER BY `id` desc LIMIT 3;");
$post = mysql_fetch_array(mysql_query("select `users` from `users` where `id` = '$id[0]';"));
echo "<img src='People.gif' alt=''/>n";
echo 'Новички:<br/>';
while($post = mysql_fetch_assoc($q))
{
echo '<a href="../info.php?'.$ses.'&nk='.$post['id'].'">'.col_n($post['user']).'</a><br/>';
}
$q = mysql_query("SELECT * FROM `users` ORDER BY rand() LIMIT 4;");
echo '<br/>
<img src="r.gif" alt=""/>
Знакомся с:
<br/>';
function online() {
$onl + 100 > time();
}
while($ank = mysql_fetch_assoc($q))
{
echo "<a href='../info.php?$ses&nk=$ank[id]'>".$ank['user']."".online(col_n($ank['id'])).'</a><br/>';
}
include_once 'best.php';
echo "<br/><img src='man.gif' alt=''/> Найди пару!!!<br/>n
<form method="post" action="../search.php?$ses&go=view">
<input type="text" class="text" name="nick" maxlength="16" value="" /><br/>n
<br/><input type="submit" class="ibutton" value="Найти собеседника" />
</form>n
<br/>n";
echo '<div class="d1"><a href="../enter.php?'.$ses.'&ref='.$ref.'">Прихожая</a></div>';
include_once '../foot.php';
?>