gaijin Posted August 28, 2006 Share Posted August 28, 2006 Hi, on a phpprobid install it shows users online, the code is below. However I need to change this so it doesnt show online members, but all online ips... member or no members.. i want to show all visitors totalsCODE[quote] if ($setts['h_counter']==1) { $nbUsers=getSqlNumber("SELECT id FROM probid_users WHERE active=1"); $nbLiveAuctions=getSqlNumber("SELECT id FROM probid_auctions WHERE active=1 AND closed=0 AND deleted!=1"); $nbLiveWantAds=getSqlNumber("SELECT id FROM probid_wanted_ads WHERE active=1 AND closed=0 AND deleted!=1"); header5("$lang[Site_status]"); echo " <table width='100%' border='0' cellpadding='2' cellspacing='1' class='contentfont'> <tr class='c3'> <td width='20%' align='center'><b>".$nbUsers."</b></td> <td width='80%'> <font style='font-size: 10px;'>$lang[registered_users]</font></td> </tr> <tr class='c2'> <td width='20%' align='center'><b>".$nbLiveAuctions."</b></td> <td width='80%'> <font style='font-size: 10px;'>$lang[live_auctions]</font></td> </tr>"; if ($setts['enable_wantedads']=="Y") { echo "<tr class='c3'> <td width='20%' align='center'><b>".$nbLiveWantAds."</b></td> <td width='80%'> <font style='font-size: 10px;'>$lang[live_wantads]</font></td> </tr>"; } echo "<tr class=\"c2\"> <td width=\"20%\" align=\"center\"><b>"; include("online.php"); echo "</b></td> <td width=\"80%\"> <font style=\"font-size: 10px;\">$lang[online_users]</font></td> </tr>";[/quote] Quote Link to comment https://forums.phpfreaks.com/topic/18890-show-online-hack/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.