Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: draugu sistema

Parašė ramon· 2008 Spa. 10 00:10:56
#11

<?php
openside("Draugai ONLINE");
echo "<br><center><a href='http://tavomuzika.net/infusions/freundschaftssystem_1.0/meine_freunde.php' >Mano draugai</a></center><center><a href='http://tavomuzika.net/infusions/freundschaftssystem_1.0/meine_freunde.php' >Pakvietimai draugaut</a></center><br>";
$lastseen=time()-120; // 120 sind 2 Minuten

echo"\n";
$result=dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit >=".$lastseen."");
if($result) {
while($data = dbarray($result)) {

$result_from=dbquery("SELECT * FROM ".$db_prefix."buddys WHERE
buddy_from = ".$userdata['user_id']." AND buddy_to = ".$data['user_id']."");
$data_from = dbarray($result_from);

$result_to=dbquery("SELECT * FROM ".$db_prefix."buddys WHERE
buddy_to = ".$userdata['user_id']." AND buddy_from = ".$data['user_id']."");
$data_to = dbarray($result_to);

if($data_to['buddy_id'] != "" AND $data_from['buddy_id'] != ""){

$bild = "<img src='".INFUSIONS."freundschaftssystem_1.0_panel/images/mail.gif' border='0'>";
$datum = strftime("Zuletzt aktiv: %H:%M:%S Uhr", $data['user_lastvisit']);

echo " \n";
   if ($data['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$data['user_avatar']."' width='75' height='75'  style='border:1px solid #FFFFFF'></center><br>\n";
   } else {
   echo "<center><img src='http://www.tavomuzika.net/images/noimage.gif' width='75' height='75' ></center>\n";
   }
 echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' target='_parent' title='$datum'><center>".$data['user_name']."</center></a>\n";
}
}
} else {
echo "Draugų online nėra";
}
echo"\n";
closeside();
?>




if($result) { pakeisk i if (dbrows($result) > 0) {