************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML("</FONT><br /><br />");
// Count guests, members and admins
$result_guests = SQL_QUERY("SELECT id FROM "._MYSQL_PREFIX."_online WHERE is_admin='N' AND is_member='N'", __FILE__, __LINE__);
if ($action == "") $action = "---";
if ($what == "") $what = "---";
- if ($admin == 'Y')
+ if ($admin == "Y")
{
// Is an administrator
$userid = _IS_ADMIN;
}
- elseif (($mem == 'N') && ($admin == 'N'))
+ elseif (($mem == "N") && ($admin == "N"))
{
// Is a guest
$userid = _IS_GUEST;
}
OUTPUT_HTML("<TR>
<TD colspan=\"8\" align=\"center\" class=\"admin_footer\">
- ".ONLINE_TIMEOUT_IS_1.CREATE_FANCY_TIME($CONFIG['online_timeout']).ONLINE_TIMEOUT_IS_2."
+ ".ONLINE_TIMEOUT_IS_1.CREATE_FANCY_TIME($_CONFIG['online_timeout']).ONLINE_TIMEOUT_IS_2."
</TD>
</TR>
</TABLE>");