Размер файла: 1.74Kb
<?
require 'sys/dbconnect.php';
include_once 'sys/head.php';
if($user['status']==admin)
{
echo'<img src="img/2.png"><a href="/dpanel/index.php">Админ панель</a><br/>';
}
echo'<div class="razd">';
include_once 'date.php';
echo'</div> ';
include_once 'new/one.php';
echo'<img src="img/1.png"><a href="/new/index.php">Далее..</a><br/>
<dt></td> ';
echo'<div class="razd">Меню:</div> ';
echo'<img src="img/gb.png"><a href="/guest/index.php">Гостевая книга</a> (<font color="lime">';
include_once 'guest/count.php';
echo'</font>)<br/>';
$loads = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `loads`"), 0);
$loads_new = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `loads` WHERE `time` >= '".(time()-86400)."'"), 0);
echo'<img src="img/ls.png"><a href="/loads/index.php">Загрузки</a>(<font color="red">'.$loads.'/ </font><font color="Lime">+'.$loads_new.'</font>)<br/>';
$obmen = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `obmen`"), 0);
$obmen_new = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `obmen` WHERE `time` >= '".(time()-86400)."'"), 0);
echo'<img src="img/obmen.png"><a href="/obmen/index.php">Фаилообменник</a>(<font color="red">'.$obmen.'/ </font><font color="Lime">+'.$obmen_new.'</font>)<br/>';
echo'<img src="img/forum.png"><a href="/forum/index.php">Форум</a>(<font color="red">'.mysql_num_rows(mysql_query("SELECT * FROM `forum_tem`")).'/ </font><font color="Lime">+'.mysql_num_rows(mysql_query("SELECT * FROM `forum_post`")).'</font>)<br/>';
echo'<img src="img/16.png"><a href="/status/index.php">Сборник статусов</a><br/>';
echo'<img src="img/161.gif"><a href="/game/index.php">Онлаин игры</a><br/>';
include_once 'sys/foot.php';
?>