X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-active.php;h=53c823118581b9ce4ccc0730c9a6a8a0ecd4a0fc;hb=ae51687a0bf708aeca3d68263320804ae0dd42ef;hp=cef68ef7847110e4fc3450c7854fe9a5de7a1a82;hpb=44c5b87eca387e02d33b4c0e728920aeca2a9840;p=mailer.git
diff --git a/inc/extensions/ext-active.php b/inc/extensions/ext-active.php
index cef68ef784..53c8231185 100644
--- a/inc/extensions/ext-active.php
+++ b/inc/extensions/ext-active.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);
}
@@ -51,7 +50,7 @@ switch ($EXT_LOAD_MODE)
{
case "register": // Do stuff when installtion is running (modules.php?module=admin&action=login is called)
// SQL commands to run
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (action, what, title, sort, visible, locked) VALUES ('main', 'active', 'Heute Online', 10, 'N', 'Y')";
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (action, what, title, sort, visible, locked) VALUES ('main','active','Heute Online', 10, 'N','Y')";
// Load CSS file?
$EXT_CSS = "Y";
@@ -97,8 +96,8 @@ case "update": // Update an extension
break;
case "0.0.5": // SQL queries for v0.0.5
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD active_limit BIGINT(20) NOT NULL DEFAULT '10'";
- $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('setup', 'config_active', 'Aktiv-Liste', 'Einstellungen an der Aktiv-Liste (Heute Online im Gastbereich) vornehmen.', 8)";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD active_limit BIGINT(20) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, descr, sort) VALUES('setup','config_active','Aktiv-Liste','Einstellungen an der Aktiv-Liste (Heute Online im Gastbereich) vornehmen.', 8)";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Aktiven-Liste im Gastbereich ist nun einschränkbar.";
@@ -122,11 +121,9 @@ case "update": // Update an extension
break;
default: // Do stuff when extension is loaded
- $dummy = LOAD_CONFIG();
- $_CONFIG = merge_array($_CONFIG, $dummy);
- unset($dummy);
break;
}
+
// Language file prefix
$EXT_LANG_PREFIX = "active";