Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kas dabar Online

Parašė TaduXxX· 2008 Gru. 8 22:12:55
#26

openside($locale['010']);
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name,user_avatar FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
if (count($members) > 0) {
$i = 1;
echo "";
while (list($key, $member) = each($members)) {
echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."
</a> |<a href='".BASEDIR."messages.php?msg_send=".$member[0]."' class='side'>Siųsti PM</a> <br>";
   echo ($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' height='30%' width='30%'>" : "<img src='".IMAGES."no.png' height='30%' width='30%'>")."";



$i++;
}
echo "<br>\n";
} else {
echo $locale['013']."<br>\n";
}
closeside();





Megink,turetu veikt

Redagavo TaduXxX· 2008 Gru. 8 22:12:25