Heute: 147
Gestern: 23
Gästebuch: 3
Forum Posts: 9
Forum Threads: 3
Angemeldete User: 7
Wait a Email User: 0
User in Map:
Online: 1
USER
... mehr
Dort wo ich mal USER hingeschrieben habe sollten eigentlich die registrierten user stehen die grade auf der seite online sind, das geht aber nicht. in wie weit muss ich den code denn ändern ?
das ist die stats box von DaGiZm0.
hier der code :
<?php # Copyright by Manuel # Support www.ilch.de # # Umgeschrieben von Ilch 1.0.5 auf 1.1 # Dazu gekommen sind Usercheck abfrage und User Map # Mod Copyright by DaGiZm0 - www.teod-clan.de # # Danke an jihi für seine geniale Usermap ! defined ('main') or die ( 'no direct access' ); if (empty($_GET['sum'])) { $heute = date ('Y-m-d'); $ges_visits = db_result(db_query("SELECT SUM(count) FROM prefix_counter"),0); $ges_heute = @db_result(db_query("SELECT count FROM prefix_counter WHERE date = '".$heute."'"),0); $ges_gestern = @db_result(db_query('SELECT count FROM prefix_counter WHERE date < "'.$heute.'" ORDER BY date DESC LIMIT 1'),0); $gbook = @db_result(db_query("SELECT count(ID) FROM prefix_gbook"),0); $posts = @db_result(db_query("SELECT count(ID) FROM prefix_posts"),0); $topic = @db_result(db_query("SELECT count(ID) FROM prefix_topics"),0); $gesuser = @db_result(db_query("SELECT count(ID) FROM prefix_user"),0); $usrchk = @db_result(db_query("SELECT count(name) FROM prefix_usercheck"),0); $map = @db_result(db_query("SELECT count(uid) FROM prefix_map"),0); echo $lang['whole'].': '.$ges_visits.'<br />'; echo $lang['today'].': '.$ges_heute.'<br />'; echo $lang['yesterday'].': '.$ges_gestern.'<br />'; echo 'Gästebuch: '.$gbook.'<br />'; echo 'Forum Posts: '.$posts.'<br />'; echo 'Forum Threads: '.$topic.'<br />'; echo 'Angemeldete User: '.$gesuser.'<br />'; echo 'Wait a Email User: '.$usrchk.'<br />'; echo 'User in Map: '.$map.'<br />'; echo 'Online: '.ges_online().'<br />'; echo '<a class="box" href="index.php?statistik"><b>... '.$lang['more'].'</b></a>'; } else { $title = $allgAr['title'].' :: Statistik'; $hmenu = 'Statistik'; $design = new design ( $title , $hmenu , 0 ); $design->header(); $anzahlShownTage = 7; echo '<br /><table width=90%" align="center" class="border" cellpadding="0" cellspacing="1" border="0"><tr><td>'; echo '<table width="100%" border="0" cellpadding="5" cellspacing="0">'; echo '<tr class="Chead"><td colspan="3" align="center"><b>Site Statistik</b></td></tr>'; $max_in = 0; $ges = 0; $dat = array(); $max_width = 200; $maxErg = db_query('SELECT MAX(count) FROM `prefix_counter`'); $max_in = db_result($maxErg,0); $erg = db_query ("SELECT count, DATE_FORMAT(date,'%a der %d. %b') as datum FROM `prefix_counter` ORDER BY date DESC LIMIT ".$anzahlShownTage); while ($row = db_fetch_row($erg) ) { $value = $row[0]; if ( empty($value) ) { $bwidth = 0; } else { $bwidth = $value/$max_in * $max_width; $bwidth = round($bwidth,0); } echo '<tr class="Cnorm">'; echo '<td>'.$row[1].'</td>'; echo '<td><table width="'.$bwidth.'" border="0" cellpadding="0" cellspacing="0">'; echo '<tr><td height="2" class="border"></td></tr></table>'; echo '</td><td align="right">'.$value.'</td></tr>'; $ges += $value; } $gesBesucher = db_query('SELECT SUM(count) FROM prefix_counter'); $gesBesucher = @db_result($gesBesucher,0); echo '<tr class="Cmite"><td colspan="3"><div align="right">'; echo 'Wochen Summe: '.$ges.'</div>'; echo 'Besucher Gesamt '.$gesBesucher.' Maximal '.$max_in.'<br /><br />'; echo '</td></tr><tr class="Cdark">'; echo '<td colspan="3" align="center">[ <a href="javascript:window.close()">Fenster Schliesen</a> ]</td>'; echo '</tr></table></td></tr></table><br />'; $design->footer(); } ?>
verwendete ilchClan Version: 1.1
Zuletzt modifiziert von ShortY am 26.06.2007 - 20:38:25