$n) $pages++;
}
if($pages>1) $page_link = makepagelink("index.php?site=registered_users&sort=$sort&type=$type", $page, $pages);
if ($page == "1") {
$ergebnis = safe_query("SELECT * FROM ".PREFIX."user ORDER BY $sort $type LIMIT 0,$max");
if($type=="DESC") $n=$gesamt;
else $n=1;
}
else {
$start=$page*$max-$max;
$ergebnis = safe_query("SELECT * FROM ".PREFIX."user ORDER BY $sort $type LIMIT $start,$max");
if($type=="DESC") $n = ($gesamt)-$page*$max+$max;
else $n = ($gesamt+1)-$page*$max+$max;
}
$anz=mysql_num_rows($ergebnis);
if($anz) {
echo'
';
if($type=="ASC")
echo'Sort: ';
else
echo'Sort: ';
echo $page_link.' | '.$gesamt.' registered users |
';
eval ("\$registered_users_head = \"".gettemplate("registered_users_head")."\";");
echo $registered_users_head;
$n=1;
while($ds=mysql_fetch_array($ergebnis)) {
if($n%2) {
$bg1=BG_1;
$bg2=BG_2;
}
else {
$bg1=BG_3;
$bg2=BG_4;
}
$id=$ds[userID];
$country='[flag]'.getcountry($ds[userID]).'[/flag]';
$country=flags($country);
$nickname=''.getnickname($ds[userID]).'';
if(isclanmember($ds[userID])) $member='
';
else $member='';
$email='
';
$sem = '^[http://]+[a-z0-9_\.-]+[a-z0-9_-]+$';
if(!(eregi($sem, $ds[homepage]))) $homepage='';
else $homepage='
';
$pm='';
$buddy='';
if($loggedin && $ds[userID] != $userID) {
$pm='
';
if(isignored($userID, $ds[userID])) $buddy='
';
elseif(isbuddy($userID, $ds[userID])) $buddy='
';
elseif($userID==$ds[userID]) $buddy='';
else $buddy='
';
}
$lastlogindate=date("d.m.Y", $ds[lastlogin]);
$lastlogintime=date("H:i", $ds[lastlogin]);
$registereddate=date("d.m.Y", $ds[registerdate]);
$status=isonline($ds[userID]);
if($status=="offline") $login=$lastlogindate.' - '.$lastlogintime;
else $login='
now online';
eval ("\$registered_users_content = \"".gettemplate("registered_users_content")."\";");
echo $registered_users_content;
$n++;
}
eval ("\$registered_users_foot = \"".gettemplate("registered_users_foot")."\";");
echo $registered_users_foot;
}
else echo'no users';
?>