File size: 1.97Kb
<?php
/*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//
// Sitchi CMS - Mobile Content Management System //
// The author: Nikoloz Sitchinava [sitchi] //
// Link: http://sitchicms.num.ge //
// Skype: SitchiCMS //
// License: LICENSE.txt (see attached file) //
// Version: VERSION.txt (see attached file) //
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
define('_SITCHICMS', 1);
$root_path='../../';
require $root_path.'includes/db_connect.php';
require $root_path.'includes/start.php';
require $root_path.'includes/header.php';
require $root_path.'includes/functions.php';
require $root_path.'includes/head.php'; // თავი
$lng_forum = load_lng('forum');
head(''.$lng_forum['1_1'].' | '.$lng_forum['1_6'].'');
echo'<div class="hdr"><b><a href="index.php">'.$lng_forum['1_1'].'</a> | '.$lng_forum['1_6'].'</b></div>';
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_topic1_view` WHERE `time_create` > '".($time-86400)."'"),0);
$k_page=k_page($k_post,$set['p_count']);
$page=page($k_page);
$start=$set['p_count']*$page-$set['p_count'];
if ($k_post==0)
{
echo'<div class="errmenu">';
echo''.$lng_forum['1_29'].'';
echo'</div>';
}
$q=mysql_query("SELECT * FROM `forum_topic1_view` WHERE `time_create` > '".($time-86400)."' ORDER BY `time` DESC LIMIT $start, $set[p_count]");
while ($them = mysql_fetch_array($q))
{
$count_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_topic2_view` WHERE `id_them` = '$them[id]'"),0);
echo'<div class="menu">';
echo'<img src="/themes/'.$set['set_them'].'/forum/view_forum_undersection.png" alt="" /> <a href="index.php?act=view_topic&id_them='.$them['id'].'">'.$them['name'].'</a> ['.$count_post.'] <br/>';
echo'</div>';
}
if ($k_page>1)str("?",$k_page,$page); // გვერდების გამოტანა
echo'<a href="/modules/forum/">'.$lng['1_50'].'</a>';
require $root_path.'includes/end.php'; // დასასრული
?>