projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security line in all includes changed
[mailer.git]
/
inc
/
modules
/
admin
/
what-usr_online.php
diff --git
a/inc/modules/admin/what-usr_online.php
b/inc/modules/admin/what-usr_online.php
index ef39806ce35ca4e59d452c445157168e0187eac7..6ec2f99a507802ae3f489a710fd4b86f47d65224 100644
(file)
--- a/
inc/modules/admin/what-usr_online.php
+++ b/
inc/modules/admin/what-usr_online.php
@@
-32,8
+32,7
@@
************************************************************************/
// Some security stuff...
************************************************************************/
// Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
-{
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
@@
-75,12
+74,12
@@
if (EXT_IS_ACTIVE("online", true))
if (empty($act)) $act = "---";
if (empty($wht)) $wht = "---";
if (empty($act)) $act = "---";
if (empty($wht)) $wht = "---";
- if ($admin ==
'Y'
)
+ if ($admin ==
"Y"
)
{
// Is an administrator
$uid = _IS_ADMIN;
}
{
// Is an administrator
$uid = _IS_ADMIN;
}
- elseif (($mem ==
'N') && ($admin == 'N'
))
+ elseif (($mem ==
"N") && ($admin == "N"
))
{
// Is a guest
$uid = _IS_GUEST;
{
// Is a guest
$uid = _IS_GUEST;
@@
-115,7
+114,7
@@
if (EXT_IS_ACTIVE("online", true))
SQL_FREERESULT($result);
// Load footer template
SQL_FREERESULT($result);
// Load footer template
- define('__FANCY_ONLINE_TIMEOUT', CREATE_FANCY_TIME($CONFIG['online_timeout']));
+ define('__FANCY_ONLINE_TIMEOUT', CREATE_FANCY_TIME($
_
CONFIG['online_timeout']));
LOAD_TEMPLATE("admin_online_footer");
}
}
LOAD_TEMPLATE("admin_online_footer");
}
}