Файл: setk/love/index.php
Строк: 81
<?
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']='Знакомства';
include_once '../sys/inc/thead.php';
err();
title();
$gr = "`group_access` > '2' AND `group_access` < '15'";
echo'<div class="act">
<a class="act_active2">Знакомства</a>
<a class="act_noactive2" href="/user/users.php">Пользователи</a>
</div>';
/* Последние фото */
echo '<div class="hide2">Новые фото:</div>';
$q = mysql_query("select * from `user` ORDER BY `id` desc LIMIT 8;");
$q2 = mysql_query("SELECT * FROM `gallery_foto` WHERE `metka` = '0' ORDER BY `id` DESC LIMIT 5");
echo "<div class='na1'>";
while ($foto = mysql_fetch_assoc($q2))
{
$gallery = mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery` WHERE `id` = '$foto[id_gallery]' limit 1"));
$ank = get_user($foto['id_user']);
echo "<a href='/foto/$ank[id]/$gallery[id]/$foto[id]/'><img class='avatar' src='/foto/foto50/$foto[id].$foto[ras]' alt='*'/></a> ";
}
echo "</center></div>";
echo "<div class='na2'>";
echo "<a href='woman.php'><img src='/img/women.png'> Девушек <span class='count'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `pol` = '0'"),0)."</a></span>";
echo "</div>";
echo "<div class='na1'>";
echo "<a href='man.php'><img src='/img/friends.png'> Парней <span class='count'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `pol` = '1'"),0)."</a></span>";
echo "</div>";
echo "<div class='na2'>";
echo "<a href='/user/users.php'><img src='/img/guests.png'> Пользователей <span class='count'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `user`"), 0)."</a></span>";
echo "</div>";
echo "<div class='na1'>";
echo '<a href="/online.php"><img src="/img/feed_user.png"> На сайте ';
echo "<span class='count'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)."</a></span>";
echo "</div>";
echo "<div class='na2'>";
echo "<a href='/love/admin.php'><img src='/img/administration.png'> Администрация </a>";
echo "</div>";
$q = mysql_query("select * from `user` ORDER BY `id` desc LIMIT 5;");
echo '<div class="na1">Новенькие:</div><div class="na2">';
while ($post = mysql_fetch_array($q))
{
echo "".status($post['id'])."";
}
echo' </div>';
$q = mysql_query("SELECT * FROM `user` ORDER BY rand() LIMIT 5;");
echo '<div class="na1">Хотят общение:</div><div class="na2">';
while ($ank = mysql_fetch_array($q))
{
echo "".status($ank['id'])." ";
}
echo' </div>';
include_once '../sys/inc/tfoot.php';
?>