EVOLUTION-MANAGER
Edit File: getOnlineUsers.php
<? require_once("models/config.php"); if (!securePage($_SERVER['PHP_SELF'])){die();} //session_start(); //include("sql.php"); //$seconds = 30; $userData = fetchAllOtherOnlineUsers($loggedInUser->username); //Fetch information for all users echo "<ul>"; //Cycle through users if(isset($userData)){ foreach ($userData as $v1) {?> <li><a href="javascript:void(0)" onClick="chatWith('<? echo $v1['user_name']?>')">Chat with <? echo $v1['user_name']?></a></li> <? //echo "<a href='javascript:void(0)' >".$v1['user_name']."</a>".$v1['display_name'].$v1['title']; } echo "</ul>"; } else echo "No online users"; /*$username = $loggedInUser->username; $sql = "select user_name from uc_users where user_name<>'$username' and online=1";// and now()-date<$seconds"; $res = mysql_query($sql);*/ //while ($users = mysql_fetch_array($res)) { ?> <!--<a href="javascript:void(0)" onClick="chatWith('<?=$users["user_name"]?>')">Chat with <?=$users["user_name"];?></a> <br />--> <? //} ?>