wycinasz ten fragment z pliku online_users_extend_panel.php:
$photocount = dbquery("SELECT count(photo_id) FROM ".$db_prefix."photos");
$albumcount = dbquery("SELECT count(album_id) FROM ".$db_prefix."photo_albums");
$usercount = dbquery("SELECT count(user_id) FROM ".$db_prefix."users");
$shoutcount = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
$fkategoriecount = dbquery("SELECT count(forum_id) FROM ".$db_prefix."forums");
$fthemencount = dbquery("SELECT count(thread_id) FROM ".$db_prefix."threads");
$fbeiträgecount = dbquery("SELECT count(post_id) FROM ".$db_prefix."posts");
$linkkategoriecount = dbquery("SELECT count(weblink_cat_id) FROM ".$db_prefix."weblink_cats");
$linkcount = dbquery("SELECT count(weblink_id) FROM ".$db_prefix."weblinks");
$articlecount = dbquery("SELECT count(article_id) FROM ".$db_prefix."articles");
$newscount = dbquery("SELECT count(news_id) FROM ".$db_prefix."news");
$guestbookcount = dbquery("SELECT count(guestbook_id) FROM ".$db_prefix."guestbook");
$result = dbquery("SELECT count(comment_id) FROM ".$db_prefix."comments");
$online_user = dbquery("SELECT count(online_user) FROM ".$db_prefix."online");
$downloadcount = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<hr>";
echo "<table border='0' width='100%' class='small'>
<tr><td class='small'>".$locale['OUE_007']."</td><td align='right' class='small'>".dbresult($fkategoriecount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_008']."</td><td align='right' class='small'> ".dbresult($fthemencount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_009']."</td><td align='right' class='small'>".dbresult($fbeiträgecount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_010']."</td><td align='right' class='small'>".dbresult($result, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_011']."</td><td align='right' class='small'>".dbresult($guestbookcount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_012']."</td><td align='right' class='small'>".dbresult($newscount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_013']."</td><td align='right' class='small'>".dbresult($articlecount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_014']."</td><td align='right' class='small'>".dbresult($albumcount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_015']."</td><td align='right' class='small'>".dbresult($photocount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_016']."</td><td align='right' class='small'>".dbresult($downloadcount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_017']."</td><td align='right' class='small'>".dbresult($linkkategoriecount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_018']."</td><td align='right' class='small'>".dbresult($linkcount, 0)."</td></tr>
<tr><td class='small'>".$locale['OUE_019']."</td><td align='right' class='small'>".dbresult($shoutcount, 0)."</td></tr>
</table>";
Edytowane przez Pieka dnia 07.06.2007 10:33:21
|