Security line in all includes changed
[mailer.git] / inc / modules / admin / what-usr_online.php
index 6e2533d..6ec2f99 100644 (file)
@@ -32,8 +32,7 @@
  ************************************************************************/
 
 // 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);
 }
@@ -75,12 +74,12 @@ if (EXT_IS_ACTIVE("online", true))
                        if (empty($act)) $act = "---";
                        if (empty($wht))   $wht = "---";
 
-                       if ($admin == 'Y')
+                       if ($admin == "Y")
                        {
                                // Is an administrator
                                $uid = _IS_ADMIN;
                        }
-                        elseif (($mem == 'N') && ($admin == 'N'))
+                        elseif (($mem == "N") && ($admin == "N"))
                        {
                                // Is a guest
                                $uid = _IS_GUEST;