<?php/*** @package (c) 2008 - 2014 Free Arcade Script* @version $Id: user_online.php Version.1.0* Author: Frank.**/ echo'<div class="side_nav">Members On Line</div> <div id="side_holder" style="padding:8px 0px 8px 0px" align="center">';$sql = $db->query(sprintf("SELECT * FROM fas_users WHERE status!=0 ORDER BY username ASC")) or die(mysql_error()); echo '<div style="vertical-align: top; text-align: left;">'; while($row = $db->fetch_row($sql)){ $status_ol = $row['status']; if($status_ol >= time()-15*60){ $status = ''.$row['username'].''; echo '<div style="display: inline; vertical-align: top; font-weight: bold; font-size: 9px;"> '.$status.' </div>'; }} if(empty($status)){echo '<div style="text-align: center; font-weight: bold; font-size: 10px;">no members online</div>';}echo '</div> </div><div style="clear:both"></div>'; ?>
<?php/*** @package (c) 2008 - 2014 Free Arcade Script* @version $Id: user_online.php Version.1.0* Author: Frank.**/ echo '<div class="header"> Members Online </div> <div class="content" style="padding:8px 0px 8px 0px" align="center">';$sql = $db->query(sprintf("SELECT * FROM fas_users WHERE status!=0 ORDER BY username ASC")) or die(mysql_error()); echo '<div style="vertical-align: top; text-align: left;">'; while($row = $db->fetch_row($sql)){ $status_ol = $row['status']; if($status_ol >= time()-15*60){ $status = ''.$row['username'].''; echo '<div style="display: inline; vertical-align: top; font-weight: bold; font-size: 12px;"> '.$status.' </div>'; }} if(empty($status)){echo '<div style="text-align: center; font-weight: bold; font-size: 10px;">no members online</div>';}echo '</div> </div>'; ?>
include("templates/$template/blocks/users_online.php");
$status_ol = intval($row['status']); if($status_ol >= time()-15*60){ $status = ''.htmlspecialchars(stripslashes($row['username'])).'';