$query->close(); $visitors_online = new usersOnline(); ?> <b>Game Plays Today:</b> <?php echo $dayplays['numbers']; ?> <br/> <b>Total Game Plays:</b> <?php echo $totalplays['numbers']; ?> <br/> <b>Total Games:</b> <?php echo $count['count']; ?> <br/> <b>visitors online:</b> <?php echo $visitors_online->count_users(); ?> <br/> <b>Bots online:</b> <?php $bots = array(); $bots = $visitors_online->get_bots(); if ($bots) { foreach ($bots as $bot) { echo ucfirst($bot) . ' '; } } ?> <br/></div> </div></div>
<?php include_once "../config/usersOnline.class.php"; $visitors_online = new usersOnline(); $OnlineUsers = $visitors_online->count_users(); echo $OnlineUsers; if (count($visitors_online->error) == 0) { if ($visitors_online->count_users() == 1) { echo "There is " . $visitors_online->count_users() . " visitor online"; } else { echo "There are " . $visitors_online->count_users() . " visitors online"; } } else { echo "<b>Users online class errors:</b><br /><ul>\r\n"; for ($i = 0; $i < count($visitors_online->error); $i++) { echo "<li>" . $visitors_online->error[$i] . "</li>\r\n"; } echo "</ul>\r\n"; }