ENDHTML;
// DEBUG COMMENT: hier gaat SESSION de mist in
// DEBUG CODE:
// echo "
".$_SESSION["login"]."
";
// als type niet is: Mens OF (type is Mens EN
if(($data->type != 3 || ($data->type == 3 && $info->type != 3)) && round($data->signup/3600-time()/3600) + 12 <= 0 && round($info->signup/3600-time()/3600) + 12 <= 0 && ($info->clan != $data->clan || $info->clan == ""))
print "
\n\n";
else
print " \n\n";
}
if($_GET['s'] == "online")
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
else if($_GET['s'] == "online")
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=1");
else if($_GET['s'] == "admin")
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `level` & 0x80 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login` LIMIT $begin,30");
else if($_GET['s'] == "search")
{
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1 AND `login` LIKE '{$_GET['q']}' ORDER BY `login`");
$_GET['q'] = preg_replace('/%/','*',$_GET['q']);
}
else
$dbres = mysql_query("SELECT id FROM `[users]` WHERE `activated`=1");
print "
\n\n
\n
";
if(mysql_num_rows($dbres) <= 30)
print "< 1 >
\n";
else
{
if($begin/30 == 0)
print "<< ";
else
print "<< ";
for($i=0; $i". ($i+1) ." ";
}
if($begin+30 >= mysql_num_rows($dbres))
print ">> ";
else
print ">>";
}
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
$online = mysql_num_rows($dbres);
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=0");
$anonymous = mysql_num_rows($dbres);
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `level`=255");
$admins = mysql_num_rows($dbres);
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `level`=2");
$hulpadmins = mysql_num_rows($dbres);
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `level`=14");
$betaaldaccount = mysql_num_rows($dbres);
/* ------------------------- */ ?>