Размер файла: 2.7Kb
<?php
/**
*Manag-Develop BolCmS-Suptesat
*Syte- bolcms.cf
*/
$title = 'Главная';
require("../system/core.php");
$forum_topics = mysql_result(mysql_query("SELECT count(*) FROM `forum_topics`"), 0);
$forum_msg = mysql_result(mysql_query("SELECT count(*) FROM `forum_msg`"), 0);
$library = mysql_result(mysql_query("SELECT count(*) FROM `library`"), 0);
$book_msg = mysql_result(mysql_query("SELECT count(*) FROM `book`"), 0);
$loads = mysql_result(mysql_query("SELECT count(*) FROM `loads`"), 0);
$users = mysql_result(mysql_query("SELECT count(*) FROM `users`"), 0);
if(empty($_SESSION['login'])){
echo '<div class="rmenus">' .$lng ['quest'] . ' <b></b></div><div class="menu">';
echo '<center><div class="menu"><li><a href="users/auth.php"> ' .$lng ['login'] . ' </a> | ';
echo '<a href="users/reg.php">' .$lng ['reg'] . ' </a></div></center>';
}else{
echo '<div class="rmenus"><a href="users/office.php">'.$_SESSION['login'].'</a></div>';
echo'<div class="rmenus2"><a href="users/office.php?act=exit">' .$lng ['exit'] . ' </a></div>';}
if($_SESSION['id'] == 1){echo "<div class='menu'> <a href='../panel/index.php'>Admin_panel</a></div>";}
echo '<div class="menu"><li><a href="../forum/index.php">' .$lng ['forum'] . ' </a> ('.$forum_topics.'/'.$forum_msg.')</div>';
echo '<div class="menu"><li><a href="str/book.php">' .$lng ['chat'] . ' </a> ('.$book_msg.')</div>';
echo '</div>';
echo $pep
[0];
echo '<div class="phdr">' .$lng ['news'] . ' </div><div class="news">';
$result = mysql_query("SELECT * FROM `news` ORDER BY `id` DESC LIMIT 2") or die(mysql_error());
$row = mysql_fetch_assoc($result);
if($row > 0){
echo '<a href="../str/news.php">' .$lng ['fly'] . ' </a><br/>';
do
{
printf('<b>%s</b>: %s<br/>%s...<br/><a href="../str/news.php?act=view&id=%s">' .$lng ['rer'] . ' </a><br/>', $row['title'], date('d.m.Y', $row['time']), substr($row['text'], 0, 95), $row['id']);
}
while($row = mysql_fetch_assoc($result));
}else{
echo ' ' .$lng ['fno'] . ' ';
}
echo '</div>';
echo '<div class="phdr">' .$lng ['razdel'] . ' </div><div class="menu">';
echo '<div class="menu"><li><a href="loads/index.php">' .$lng ['loads'] . ' </a> ('.$loads.')</div>';
echo '<div class="menu"><li><a href="str/lib.php">' .$lng ['lib'] . ' </a> ('.$library.')</div>';
echo '<div class="menu"><li><a href="users/list_users.php">' .$lng ['us'] . ' </a> ('.$users.')</div>';
echo '<div class="menu"><a href="users/life.php"><li>' .$lng ['life'] . ' </a></div>';
echo '</div>';
echo '<div class="phdr"><center><li>By Suptesat</center>';
echo '<div class="phdr"><center><li>'.$config['title'].'</center></div>';
echo'</b></br>';
echo '</div></body></html>';
require("../system/end.php");
?>