]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-register.php
Obsolete direct links to my server removed, patch support deactivated in what-updates.php
[mailer.git] / inc / extensions / ext-register.php
index 060a8d74fa63be8d542f02970a315144e8eca8c7..7bcce2a914ba0e0cc39e5748e724dff5bb57533d 100644 (file)
@@ -54,7 +54,7 @@ case "register": // Do stuff when installtion is running (modules.php?module=adm
        $SQLs[] = "";
 
        // Load own CSS file?
-       $EXT_CSS = 'Y';
+       $EXT_CSS = "Y";
        break;
 
 case "remove": // Do stuff when removing extension
@@ -78,9 +78,9 @@ case "update": // Update an extension
        case "0.1": // SQL queries for v0.1
                $SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_must_register";
                $SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_must_register (
-id bigint(20) NOT NULL auto_increment,
-field_name varchar(255) not null default '',
-field_required enum('Y', 'N') not null default 'Y',
+id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+field_name VARCHAR(255) NOT NULL DEFAULT '',
+field_required ENUM('Y', 'N') NOT NULL DEFAULT 'Y',
 PRIMARY KEY(id)
 ) TYPE=MyISAM";
 
@@ -174,7 +174,7 @@ PRIMARY KEY(id)
 
        case "0.2.5": // SQL queries for v0.2.5
                // Update notes (these will be set as task text!)
-               $UPDATE_NOTES = "Seit <A href=\"".SERVER_URL."/patches/340-Gast_Mitgliedsmenue_Deaktivieren.zip\">Patch 340</A> &uuml;berfl&uuml;ssige HTML-Tags entfernt.";
+               $UPDATE_NOTES = "Seit <A href=\"#\">Patch 340</A> &uuml;berfl&uuml;ssige HTML-Tags entfernt.";
                break;
 
        case "0.2.6": // SQL queries for v0.2.6
@@ -263,7 +263,7 @@ PRIMARY KEY(id)
                break;
 
        case "0.4.2": // SQL queries for v0.4.2
-               $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD register_default ENUM('Y', 'N') NOT NULL DEFAULT 'N'";
+               $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD register_default ENUM('Y','N') NOT NULL DEFAULT 'N'";
                $SQLs[] = "UPDATE "._MYSQL_PREFIX."_admin_menu SET what='config_register2' WHERE what='config_reg' LIMIT 1";
 
                // Update notes (these will be set as task text!)
@@ -292,7 +292,7 @@ PRIMARY KEY(id)
 
        case "0.4.7": // SQL queries for v0.4.7
                // Update notes (these will be set as task text!)
-               $UPDATE_NOTES = "<STRONG>setcookie()</STRONG> mit @-Zeichen gegen ungewollte Ausgaben abgesichert.";
+               $UPDATE_NOTES = "<STRONG>set_session()</STRONG> mit @-Zeichen gegen ungewollte Ausgaben abgesichert.";
                break;
 
        case "0.4.8": // SQL queries for v0.4.8
@@ -323,10 +323,9 @@ PRIMARY KEY(id)
        break;
 
 default: // Do stuff when extension is loaded
-       $DUMMY = LOAD_CONFIG("0");
-       // Copy data to config array
-       $CONFIG['register_default'] = $DUMMY['register_default']; // Is Yes/No the default selection in category selection?
-       unset($DUMMY);
+       $dummy = LOAD_CONFIG();
+       $_CONFIG = merge_array($_CONFIG, $dummy);
+       unset($dummy);
        break;
 }
 
@@ -334,7 +333,7 @@ default: // Do stuff when extension is loaded
 $EXT_LANG_PREFIX = "register";
 
 // Extension is always active?
-$EXT_ALWAYS_ACTIVE = 'N';
+$EXT_ALWAYS_ACTIVE = "N";
 
 //
 ?>