File size: 0.98Kb
<?php
####################
# Автор: [Svig] #
# ICQ: 563000172 #
####################
include ("conf.php");
include ("lock.php");
if ($user == $myrow["user"] && $pass == $myrow["pass"])
{
include ("head.php");
$result = mysql_query("SELECT * FROM userlist ORDER BY id DESC LIMIT 20",$db);
$myrow = mysql_fetch_array($result);
do
{
echo "<div class='nav'>";
$m = "Мужской";
if($myrow['pol'] == $m) { echo "<img src='img/m.gif' alt=''/></a> "; }
else { echo "<img src='img/w.gif' alt=''/></a> "; }
echo "[<b><a href='info.php?user=$user&pass=$pass&id=".$myrow['id']."'>".$myrow['user']."</a></b>]";
echo " ".$myrow['name']."<br />";
echo "</div>";
}
while ($myrow = mysql_fetch_array($result));
echo "<div class='nav'>";
echo "• <a href=menu.php?user=$user&pass=$pass>В меню</a>";
echo "</div>";
include ("foot.php");
exit();
}
else
{
echo "Ошибка! Неверный <b>Ник</b> или <b>Пароль</b><br />";
echo <<<sss
<a href="index.php">На главную</a>
sss;
}
?>