X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-admintheme_default.php;h=189a43eb21e8e0f34b0a2ac7054c2da3c697248d;hb=076e28c32b079b93b73a67b0c8710d65596b76a9;hp=540e1ddb1119da7b956807aee9e9af950290796f;hpb=e1653405d28923c78b2e292125306ccf61138f24;p=mailer.git diff --git a/inc/extensions/ext-admintheme_default.php b/inc/extensions/ext-admintheme_default.php index 540e1ddb11..189a43eb21 100644 --- a/inc/extensions/ext-admintheme_default.php +++ b/inc/extensions/ext-admintheme_default.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 menu themes $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_extensions WHERE ext_name LIKE 'admintheme%'"; $SQLs[] = "UPDATE "._MYSQL_PREFIX."_admin_menu SET action='misc' WHERE what='usr_online' LIMIT 1"; @@ -85,11 +84,9 @@ case "update": // Update an extension default: // Do stuff when extension is loaded break; } + // Language file prefix $EXT_LANG_PREFIX = "admintheme"; -// Extension is always active? -$EXT_ALWAYS_ACTIVE = 'N'; - // ?>