wernis extension is now alpha code (only listing in admin area is missing), naming...
[mailer.git] / inc / libs / admins_functions.php
index eb79a8c705c213ac7623cfacf21adfefe7080930..b9ce4dd9718c9ab237bac105a9dac61cdca1db4e 100644 (file)
@@ -40,7 +40,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 //
 function ADMINS_CHECK_ACL($act, $wht)
 {
-       global $ADMINS, $ADMINS_ACLS, $CONFIG, $CACHE;
+       global $ADMINS, $ADMINS_ACLS, $_CONFIG, $CACHE;
        // If action is login or logout allow allways!
        $default = "allow";
        if (($act == "login") || ($act == "logout")) return true;
@@ -54,7 +54,7 @@ function ADMINS_CHECK_ACL($act, $wht)
                $default = $ADMINS['def_acl'][$_COOKIE['admin_login']];
 
                // Count cache hits
-               $CONFIG['cache_hits']++;
+               $_CONFIG['cache_hits']++;
        } elseif (!is_object($CACHE)) {
                // Load from database
                $result = SQL_QUERY_ESC("SELECT default_acl FROM "._MYSQL_PREFIX."_admins WHERE login='%s' LIMIT 1",
@@ -109,7 +109,7 @@ function ADMINS_CHECK_ACL($act, $wht)
                                        if ($lines == 1)
                                        {
                                                // Count cache hits
-                                               $CONFIG['cache_hits']++;
+                                               $_CONFIG['cache_hits']++;
                                                break;
                                        }
                                }