X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-other.php;h=23454d623b093fdc9451c01cd6e6a8457a8bafad;hb=0b0f1ec06f8dda4617f231a208ee30204e041e07;hp=2b658190c881851ff210f6248d213a114e639766;hpb=82d53dfb7f59fa1e37bd500e3db3d10a9d4a78da;p=mailer.git diff --git a/inc/extensions/ext-other.php b/inc/extensions/ext-other.php index 2b658190c8..23454d623b 100644 --- a/inc/extensions/ext-other.php +++ b/inc/extensions/ext-other.php @@ -32,24 +32,23 @@ ************************************************************************/ // 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); } // Version number -$EXT_VERSION = "0.2.0"; +$EXT_VERSION = "0.2.1"; // Auto-set extension version if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION; // Version history array (add more with , "0.1" and so on) -$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9", "0.2.0"); +$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9", "0.2.0", "0.2.1"); 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) // SQL commands to run $SQLs[] = ""; break; @@ -74,7 +73,7 @@ case "update": // Update an extension { case "0.0.1": // SQL queries for v0.0.1 // Update notes (these will be set as task text!) - $UPDATE_NOTES = "Fehler Warning: Missing argument 2 for create_timestamp_from_selections() in ".PATH."inc/libs/pro_functions.php on line 227 behoben."; + $UPDATE_NOTES = "Fehler Warning: Missing argument 2 for create_timestamp_from_selections() in {!PATH!}inc/libs/pro_functions.php on line 227 behoben."; break; case "0.0.2": // SQL queries for v0.0.2 @@ -188,22 +187,21 @@ case "update": // Update an extension // Update notes (these will be set as task text!) $UPDATE_NOTES = "Bei fehlerhafter Mail während der Bestätigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden."; break; + + case "0.2.1": // SQL queries for v0.2.1 + $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` `min_age` TINYINT(3) UNSIGNED NOT NULL DEFAULT 16"; + + // Update notes (these will be set as task text!) + $UPDATE_NOTES = "Minimumalter ist nun konfigurierbar."; + break; } break; default: // Do stuff when extension is loaded - $dummy = LOAD_CONFIG(); - $_CONFIG['max_comma'] = $dummy['max_comma']; // Maximum numbers behind commata - $_CONFIG['reject_url'] = $dummy['reject_url']; // Default rejection URL - $_CONFIG['mailid_error_redirect'] = $dummy['mailid_error_redirect']; // Default rejection URL - define('__CURRENCY', $dummy['currency']); // This is the currency for fees! They shall normally remain in real money currencies... - unset($dummy); break; } -// Language file prefix -$EXT_LANG_PREFIX = "other"; -// Extension is always active? +// Keep this extension always active! $EXT_ALWAYS_ACTIVE = "Y"; //