X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-admintheme1.php;h=516ebaf98bc0c7892343e161112a1f496d2abb1d;hb=a4fc56f660a422a080ff241bd86b772a5b5d0c53;hp=53c0a64387d965e5a0c37ad574df6845155c8b35;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git diff --git a/inc/extensions/ext-admintheme1.php b/inc/extensions/ext-admintheme1.php index 53c0a64387..516ebaf98b 100644 --- a/inc/extensions/ext-admintheme1.php +++ b/inc/extensions/ext-admintheme1.php @@ -32,8 +32,7 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF']))) -{ +if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } @@ -49,7 +48,7 @@ $EXT_VER_HISTORY = array("0.0"); switch ($EXT_LOAD_MODE) { -case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called) +case "register": // Do stuff when installation is running (modules.php?module=admin&action=login is called) // Remove all other themes $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_extensions WHERE ext_name LIKE 'admintheme%'"; $SQLs[] = "UPDATE "._MYSQL_PREFIX."_admin_menu SET action='stats' WHERE what='usr_online' LIMIT 1"; @@ -88,8 +87,5 @@ default: // Do stuff when extension is loaded // Language file prefix $EXT_LANG_PREFIX = "admintheme"; -// Extension is always active? -$EXT_ALWAYS_ACTIVE = "N"; - // ?>