Файл: selemege.tk/female.php
Строк: 72
<?
if(isset($_GET['do']) && $_GET['do']=='women' || $_GET['do']=='men'){
$do=$_GET['do']=='women' ? '0' : '1';
include_once 'sys/inc/start.php';
include_once '/sys/inc/compress.php';
include_once 'sys/inc/sess.php';
include_once 'sys/inc/home.php';
include_once 'sys/inc/settings.php';
include_once 'sys/inc/db_connect.php';
include_once 'sys/inc/ipua.php';
include_once 'sys/inc/fnc.php';
include_once 'sys/inc/user.php';
$set['title']='Пользователи сайта |'.($_GET['do']=='women' ? 'Девушки' : 'Парни').'';
include_once 'sys/inc/thead.php';
title();
aut();
echo "<div class="foot">n";
echo "<img src='/style/icons/str2.gif' alt='*'> <a href='/user/users.php'>Пользователи</a> | n";
echo ''.($_GET['do']=='women' ? '<b>Девушки</b>' : '<b>Парни</b>').'';
echo "</div>n";
$user=mysql_result(mysql_query(" SELECT COUNT(*) FROM `user` WHERE `pol` = '$do' LIMIT 1"),0)." ";
if($user==0)
{
echo "<div class='msg'>Пусто!";
}
else
{
$k_page=k_page($user,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$us=mysql_query(" SELECT * FROM `user` WHERE `pol` = '$do' LIMIT $start, $set[p_str]");
while ($ank = mysql_fetch_assoc($us))
{
if ($num==0){
echo '<div class="nav1">';
$num=1;
}
elseif ($num==1){
echo '<div class="nav2">';
$num=0;
}
echo "".avatar($ank['id'])."".group($ank['id'])." <a href='/info.php?id=$ank[id]'>$ank[nick]</a> ";
echo online($ank['id'])."";
echo "</div>";
}
if ($k_page>1)str("?do=".($_GET['do']=='women' ? 'women' : 'men')."&",$k_page,$page); // Вывод страниц
}
echo "<div class="foot">n";
echo "<img src='/style/icons/str2.gif' alt='*'> <a href='/user/users.php'>Пользователи</a> | n";
echo ''.($_GET['do']=='women' ? '<b>Девушки</b>' : '<b>Парни</b>').'';
echo "</div>n";
include_once 'sys/inc/tfoot.php';
}
else
{
header("Location: /");
exit();
}
?>