Файл: archive_01122016_1136/public_html/forum/index.php
Строк: 19
<?php
include ("../conf.php");
include ("../lock.php");
include ("../functions.php");
if ($user == $myrow["user"] && $pass == $myrow["pass"] && $user != '')
{
bann2($user);
include ("../head.php");
$result = mysql_query("SELECT * FROM forum ORDER BY id DESC",$db);
if (mysql_num_rows($result) > 0)
{
$myrow = mysql_fetch_array($result);
do
{
echo "<a href='view_cat.php?user=$user&pass=$pass&cat=".$myrow['id']."&mode=themes'><img src='../img/icon/forum.png' alt=''/> ".$myrow['title']."</a>";
}
while ($myrow = mysql_fetch_array($result));
}
else
{
echo "<div class='nav'>";
echo "Форум пуст!<br />";
echo "</div>";
echo "<a href=../menu.php?user=$user&pass=$pass>В меню</a>";
include ("../foot.php");
exit();
}
echo "<a href=../menu.php?user=$user&pass=$pass>В меню</a>";
include ("../foot.php");
exit();
}
else
{
echo "Ошибка! Неверный <b>Ник</b> или <b>Пароль</b><br />";
echo <<<sss
<a href="../index.php">На главную</a>
sss;
}
?>