Time 4 Crime online
源代码在线查看: testindex.php
include("_include-config.php");
/* ------------------------- */ ?>
Worldcrime
if($data) {
?>
}
else {
?>
$laatstelid = mysql_query("select `login` from `[users]` order by id desc limit 1"); $lastmember = @mysql_result($laatstelid,0,0);
$updatedatum = mysql_query("select `datum` from `updates` order by id desc limit 5");
$updatedatum = @mysql_result($updatedatum,0,0);
$update = mysql_query("select `naam` from `updates` order by id desc limit 5");
$update = @mysql_result($update,0,0);
$schrijver = mysql_query("select `schrijver` from `updates` order by id desc limit 5");
$schrijver = @mysql_result($schrijver,0,0);
$dbres25 = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
$online = mysql_num_rows($dbres25);
$sentence = ($online == 1) ? Array("","Member") : Array("","Members");
$sentence2 = ($$adminsonline == 1) ? Array("","Admins") : Array("","Admins");
$sentence3 = ($$hulpadminsonline == 1) ? Array("","Hulpadmins") : Array("","Hulpadmins");
$dbres3 = mysql_query("SELECT `id` FROM `[users]` WHERE `level` = 255 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login`");
$dbres10 = mysql_query("SELECT `id` FROM `[users]` WHERE `level` = 250 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login`");
$adminsonline = mysql_num_rows($dbres3);
$hulpadminsonline = mysql_num_rows($dbres10);
print
Login
Inlognaam:
Wachtwoord:
Inloggen | Registreren | Wachtwoord Vergeten?
ENDHTML;
}
?>
$frame = "homenews.php";
} elseif($_COOKIE['baas'] !=""){
$frame = "register.php";
} else{
$frame = "index.php";
}
print $frame ?>" name="mainFrame" width=100% height=100% frameborder=0>