1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | | PHP-Quelltext
<?
$t_date=formattime(time(),'','date');
$y_date=formattime(time()-3600*24,'','date');
$counter_t=$DB->fetch_assoc($DB->query("SELECT calender_counter, calender_id, calender_picount FROM ".$db_tab['calender']." WHERE calender_id!='1' ORDER by calender_id DESC LIMIT 1"));
$counter_y=$DB->fetch_assoc($DB->query("SELECT calender_counter, calender_picount FROM ".$db_tab['calender']." WHERE calender_id<'$counter_t[calender_id]' and calender_id!='1' ORDER by calender_id DESC LIMIT 1"));
$phpkit_status=phpkitstatus();
if (is_array($phpkit_status['online_user'])) {
unset($online_list2);
unset($online_list);
$k=1;
foreach($phpkit_status['online_user'] as $userinfo) {
if ($config['user_ghost']!=1 || ($config['user_ghost']==1 && $userinfo['user_ghost']!=1)) {
if ($k>1) $online_list2.=', ';
eval ("$online_list2.= "".getTemplate("member_showprofil_textlink","small")."";");
$k++;
}
}
if (isset($online_list2)) $online_list2.=" ".$lang['and']." ";
}
if ($phpkit_status['online_guests']>0) {if ($phpkit_status[online_guests]==1) {$online_list2.="1 ".$lang['guest'];} else {$online_list2.=$phpkit_status[online_guests]." ".$lang['guests'];}}
else {$online_list2.=$lang['no']." ".$lang['guests'];}
$counter_3=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['gbook']));
$counter_post=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['forumpost']));
$counter_themen=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['forumthread']));
$phpkit_status=phpkitstatus();
$mv_time=formattime($config['site_mv_time']);
$mv_count=$config['site_mv_count'];
if ($config['user_ghost']==1) $sqlcommand.=' AND user_ghost<>1';
else $sqlcommand='';
$getuserinfo=$DB->query("SELECT * FROM ".$db_tab['user']." WHERE user_activate='1' ORDER by user_id DESC LIMIT 1");
while ($userinfo=$DB->fetch_array($getuserinfo)) {
if (isonline($userinfo['user_id'])) $onlinestatus='online';
else $onlinestatus='offline';
$usernick=htmlentities($userinfo['user_nick']);
$getallcats=forencats(); $forumcat_cache=$getallcats[0];
$getthreads=$DB->query("SELECT forumthread_catid, forumthread_id, forumthread_title FROM ".$db_tab['forumthread']." ORDER by forumthread_lastreply_time DESC LIMIT 1");
while ($forumthread=$DB->fetch_array($getthreads)) {
$forumcat=$forumcat_cache[$forumthread['forumthread_catid']];
if (getrights($forumcat['forumcat_rrights']) || userrights($forumcat['forumcat_mods'],$forumcat['forumcat_rrights']) || userrights($forumcat['forumcat_user'],$forumcat['forumcat_rrights'])) {
$forumthread_title=cutstring($forumthread['forumthread_title'],$config['nb_curthreads_scut']);
eval ("$site_body.= "".templateinclude("ministats")."";");
unset($forumthread_title);
}
if (count($boxlinks)>=$config['nb_curthreads_break']) {break;}
}
}
?>
|