Просмотр файла includes/main_counters.php

Размер файла: 1.63Kb
<?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)  //
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
defined('_SITCHICMS') or die ('Restricted access');
// სიახლეების მთვლელი
$k_p2=mysql_result(mysql_query("SELECT COUNT(*) FROM `news`"), 0);
$k_n2= mysql_result(mysql_query("SELECT COUNT(*) FROM `news` WHERE `time` > '".($time-86400)."'"), 0);
if ($k_n2==0)$k_n2=NULL;
else $k_n2='/<span style="color:red;">+'.$k_n2.'</span>';
$news_count = "[$k_p2$k_n2]";
// სასტუმროს მთვლელი
$k_p3=mysql_result(mysql_query("SELECT COUNT(*) FROM `gb`"), 0);
$k_n3= mysql_result(mysql_query("SELECT COUNT(*) FROM `gb` WHERE `time` > '".($time-86400)."'"), 0);
if ($k_n3==0)$k_n3=NULL;
else $k_n3='/<span style="color:red;">+'.$k_n3.'</span>';
$guestbook_count = "[$k_p3$k_n3]";
// ფორუმის მთვლელი
$k_p5=mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_topic1_view`"), 0);
$k_n6= mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_topic2_view`"), 0);
$k_n7= mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_topic2_view` WHERE `time` > '".($time-86400)."'"), 0);
if ($k_n7==0)$k_n7=NULL;
else $k_n7='/<a href="/modules/forum/new_posts.php"><span style="color:red;">+'.$k_n7.'</span></a>';
$forum_count = "[$k_p5/$k_n6$k_n7]";
?>