Просмотр файла forum/index.php

Размер файла: 1.26Kb
<?php
####################
# Автор: [Svig]    #
# ICQ: 563000172   #
####################

include ("../conf.php");
include ("../lock.php");

if ($user == $myrow["user"] && $pass == $myrow["pass"])
{
echo "<link rel='stylesheet' type='text/css' href='../style.css'/>";
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 "<div class='nav'>";
echo "<img src='../img/forum.png' alt=''/></a> [<b><a href='view_cat.php?user=$user&pass=$pass&cat=".$myrow['id']."&mode=themes'>".$myrow['title']."</a></b>]";
echo "</div>";
}
while ($myrow = mysql_fetch_array($result));

}
else
{
echo "<div class='nav'>";
echo "Форум пуст!<br />";
echo "</div>";
echo "<div class='nav'>";
echo "• <a href=../menu.php?user=$user&pass=$pass>В меню</a>";
echo "</div>";
include ("../foot.php");
exit();
}

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;
}

?>