Hi,
How can i make on lavalair script to see all user.
How can i make on lavalair script to see all user.
$res = mysql_query("SELECT * FROM users ORDER BY username"); while($arr = mysql_fetch_assoc($res)) echo $arr['username']."<br />";
//////////////////////////////// else if($action=="online") { $pstyle = gettheme($sid); echo xhtmlhead("Online List",$pstyle); $nouo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE hidden = 1")); gettimebar(); getnewmsg($sid); getalert($sid); getshouts($sid); $num_items = getnumonline(); //changable if (ismod($uid)){ $clkd = "<a href=\"index.php?action=onlineh&sid=$sid\">hidden</a>."; } else{ $clkd = "hidden."; } boxstart("Online Users"); echo "$num_items users are currently online among which ".$nouo[0]." are $clkd.<br/>"; if($page=="" || $page<=0)$page=1; $num_items = getnumonline(); //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; //changable sql $sql = "SELECT a.name, b.place, b.userid, sex FROM ibwf_users a INNER JOIN ibwf_online b ON a.id = b.userid WHERE b.hidden = 0 GROUP BY 1,2 LIMIT $limit_start, $items_per_page "; echo "<p><small>"; $mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'")); print "Most online: <b>$mols[1]</b><br/>"; $mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'")); print "Most online today only: <b>$mols[0]</b><br/>"; $items = mysql_query($sql); echo mysql_error(); boxstart("Online Users"); while ($item = mysql_fetch_array($items)) { if ($item[3]=="M"){ $icon = "<img src=\"images/male.gif\" alt=\"M\"/>"; }else if ($item[3]=="F"){ $icon = "<img src=\"images/female.gif\" alt=\"F\"/>"; } $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>"; echo "$icon $lnk - $item[1] <br/>"; } echo "</small></p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"index.php?action=online&page=$ppage&sid=$sid\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"index.php?action=online&page=$npage&sid=$sid\">Next»</a>"; } echo "<br/>$page/$num_pages<br/>"; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "</p>"; ////// UNTILL HERE >> /////////main menu footer echo " <div class=\"footer\"> <center><small> <a href=\"index.php?action=online&sid=$sid\" accesskey=\"5\">Online Users(".getnumonline().")</a> | <a href=\"index.php?action=mainthm&sid=$sid\">Theme Manager</a> <br/> <a href=\"index.php?action=chbmsg&sid=$sid\">Set Mood</a> | <a href=\"index.php?action=stats&sid=$sid\">Site Stats</a><br/> <a href=\"index.php?action=main&sid=$sid\">HOME</a><br/> <b>© copyright $date ©</b><br/>www.$stitle.$sdomain<br/> </small></center> </div> "; boxend();exit(); }
Comment