Parašė monarh· 2011 Bal. 22 10:04:02
#1
Sveiki taigi reikia man pagalbos gal galit padet kad per registracija duotu taskus o kad nepaspaudus Perdirbkit busiu labai dekingas.
if(iMEMBER) {
openside("Pakviesk drauga per savo nuoroda");
echo "Tavo nuoroda: <a href='http://resgame.xe.lt/invite.php?invite=".$userdata' target='_blank'><span style='color:005C5B'>http://resgame.xe.lt/invite.php?....$userdata</span></a>['user_id'];
closeside();
}
if(iMEMBER) {
$result = dbrows(dbquery("SELECT * FROM `".DB_PREFIX."invites` WHERE `invite_user_id`='".$userdata['user_id']."'"));
openside("Pakvietei");
echo "Tu jau pakvietes <b>$result</b> draugu";
closeside();
}
openside("Daugiausiai pakviete");
$result = dbquery("SELECT * FROM `".DB_PREFIX."invites` GROUP by `invite_user_id` ORDER by COUNT(*) DESC LIMIT 5");
echo "<table class='tbl-border' width='100%'>";
while ($data = dbarray($result)) {
$time = dbrows(dbquery("SELECT * FROM `".DB_PREFIX."invites` WHERE `invite_user_id`='".$data['invite_user_id']."'"));
$data2 = dbarray(dbquery("SELECT * FROM `".DB_PREFIX."users` WHERE `user_id`='".$data['invite_user_id']."'"));
echo "<tr><td class='tbl2' align='left'>
<a href='".BASEDIR."profile.php?lookup=".$data2['user_id']."'
title='Perþiûrëti ".$data2['user_name']." profilá'>".$data2['user_name']."</a></td><td align='right' class='tbl1'>
$time</td></tr>";
}
echo "</table>";
closeside();