View file NuclearCMS_v.1.0.0/index.php

File size: 1.99Kb
<?php
require_once "system/connect.php";
require_once "system/config.php";
require_once "system/functions.php";
require_once "system/dannuser.php";
require_once "system/start.php";

echo '<div class="cont">';
echo '<div class="menu1">Новости</div>';
$sql=mysql_query("select * from news");
$news=mysql_num_rows($sql);
echo '<div class="men"><img src="../act.png" alt="" /><a href="../pages/news.php">Читать все новост сайта</a> '.$news.'</div>';

$q=mysql_query("SELECT * FROM `news` ORDER BY `id` DESC LIMIT 0,1;");
while($v=mysql_fetch_array($q)) { 
echo '<div class="men">';
echo '<b>'.$v[tema].'</b>';
if($v['date']==$date) { echo "(сегодня)<br>"; } else { echo "($v[date])<br>"; }
echo $v[news].'<br>';
echo '<img src="../act.png" alt="" />';
echo '<a href="../'.admdir.'/editnews.php?act=add_com&amp;id='.$v['id'].'">Коментарии</a>'; }
echo '</div></div>';






echo '<div class="cont">';
echo '<div class="menu1">Навигация сайта</div>';
echo '<div class="men">';
$sql=mysql_query("select * from f_thema");
$tems=mysql_num_rows($sql);
$sql=mysql_query("select * from f_posts");
$posts=mysql_num_rows($sql);
echo '<img src="../img/loads.png" alt="" /><a href="../dl/index.php">Загрузки</a> '.dload.
echo '<img src="../img/chat.png" alt="" /><a href="../chat/index.wml">Чат</a> '.$chats.
echo '<img src="../img/forum.png" alt="" /><a href="../forum/?">Форум</a> '.$tems.'/'.$posts.'<br>';
$sql=mysql_query("select * from guest");
$guests=mysql_num_rows($sql);
echo '<img src="../img/guest.png" alt="" /><a href="../guest/?">Гостевая</a> '.$guests.'<br>';
$sql=mysql_query("select * from users");
$users=mysql_num_rows($sql);
echo '<img src="../img/users.png" alt="" /><a href="../pages/userslist.php">Юзеры сайта</a> '.$users.'</div></div>';





echo '<img src="../act.png" alt="" /><a href="http://sphp.h2m.ru">NuclearCMS</a> '.$vsego.'';
echo '</div></div>';

require_once "foot.php";
?>