$fonthead";
print $header;
if ($action=="") {
print $header;
print "
";
print $footer;
printtimedif($startingtime);
}
if ($action=="enteradmin") {
$u=1;
$userid=-1;
while ($users[$u][id]!="") {
if ($users[$u][name]==$username and $users[$u][password]==$password and $users[$u][powerlevel]>1) {
$userid=$u;
}
$u++;
}
if ($userid!=-1) {
while ($users[$i][0]!="") {
$usercount++;
$lastusername=$users[$i][2];
$lastuserid=$i;
if ((time()-$users[$i][9])<300) {
$numonline++;
if ($numonline>1) {
$onlineusers.="
";
}
$onlineusers.="".$users[$i][2]." ".$users[$i][19];
}
$i++;
}
print "";
}
else {
print $header;
print "
"
;
print $footer;
printtimedif($startingtime);
}
}
/* print "
";
}
if ($action=="savesettings") {
print "
";
$fpnt=fopen("smilies.dat", "w");
$r=fputs($fpnt, "$lsmilies");
$r=fclose($fpnt);
$fpnt=fopen("posticons.dat", "w");
$r=fputs($fpnt, "$lposticons");
$r=fclose($fpnt);
$fpnt=fopen("categories.dat", "w");
$r=fputs($fpnt, "$lcategories");
$r=fclose($fpnt);
// $fpnt=fopen("forums.dat", "w");
// $r=fputs($fpnt, "$lforums");
// $r=fclose($fpnt);
$fpnt=fopen("forummods.dat", "w");
$r=fputs($fpnt, "$lforummods");
$r=fclose($fpnt);
$fpnt=fopen("ranks.dat", "w");
$r=fputs($fpnt, "$lranks");
$r=fclose($fpnt);
$fpnt=fopen("ipban.dat", "w");
$r=fputs($fpnt, "$lipbans");
$r=fclose($fpnt);
print "$tccell1"."Settings saved.".
" Click here to return to the board, or wait to get redirected.
";
print "
|
";
}
print $footer;
printtimedif($startingtime);
mysql_close($sql);*/
?>