Размер файла: 1.35Kb
<?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');
// მომხმარებლების მთვლელი
$all_reg_user = mysql_result(mysql_query("SELECT COUNT(*) FROM `users`") ,0);
$new_reg_user = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `regtime` > ".($time-86400)) ,0);
if ($new_reg_user==0)$new_reg_user=NULL;
else $new_reg_user='/<span style="color:red;">+'.$new_reg_user.'</span>';
$user_reg_count="[$all_reg_user$new_reg_user]";
// ადმინისტრატორების მთვლელი
$all_adm_user = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `level` >= 2"),0);
$new_adm_user = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `level` >= 2 AND `regtime` > ".($time-86400).""),0);
if ($new_adm_user==0)$new_adm_user=NULL;
else $new_adm_user='/<span style="color:red;">+'.$new_adm_user.'</span>';
$user_adm_count="[$all_adm_user$new_adm_user]";
?>