]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-usr_online.php
Security line in all includes changed
[mailer.git] / inc / modules / admin / what-usr_online.php
index e5952f873a693de278fc8f52a45a9ab8ed87317c..6ec2f99a507802ae3f489a710fd4b86f47d65224 100644 (file)
@@ -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);
 }
@@ -85,22 +84,22 @@ if (EXT_IS_ACTIVE("online", true))
                                // Is a guest
                                $uid = _IS_GUEST;
                        }
                                // Is a guest
                                $uid = _IS_GUEST;
                        }
-                       OUTPUT_HTML ("<TR>
+                       OUTPUT_HTML("<TR>
   <TD align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$id."</TD>
   <TD align=\"center\" width=\"15%\" class=\"switch_sw".$SW." bottom right\">");
                        if ($uid > 0)
                        {
   <TD align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$id."</TD>
   <TD align=\"center\" width=\"15%\" class=\"switch_sw".$SW." bottom right\">");
                        if ($uid > 0)
                        {
-                               OUTPUT_HTML (ADMIN_USER_PROFILE_LINK($uid));
+                               OUTPUT_HTML(ADMIN_USER_PROFILE_LINK($uid));
                        }
                         else
                        {
                        }
                         else
                        {
-                               OUTPUT_HTML ($uid);
+                               OUTPUT_HTML($uid);
                        }
                        if ($ref > 0)
                        {
                                $ref = ADMIN_USER_PROFILE_LINK($ref);
                        }
                        }
                        if ($ref > 0)
                        {
                                $ref = ADMIN_USER_PROFILE_LINK($ref);
                        }
-                       OUTPUT_HTML ("</TD>
+                       OUTPUT_HTML("</TD>
   <TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$ip."</TD>
   <TD align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$ref."</TD>
   <TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$mod."</TD>
   <TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$ip."</TD>
   <TD align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$ref."</TD>
   <TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$mod."</TD>
@@ -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");
        }
 }