]> git.mxchange.org Git - mailer.git/commitdiff
Extensions sql_patches<->user now need each other
authorRoland Häder <roland@mxchange.org>
Wed, 4 Mar 2009 06:28:17 +0000 (06:28 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 4 Mar 2009 06:28:17 +0000 (06:28 +0000)
inc/databases.php
inc/extensions/ext-sql_patches.php
inc/modules/admin/what-config_refid.php
inc/mysql-manager.php

index 8f4a1d09619119a70c8ae21719ededdc289a8978..08d8b170bd915b118ec94109171fa8300ac92ec6 100644 (file)
@@ -98,7 +98,7 @@ define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
 //define('CURR_SVN_REVISION', getActualVersion(0));
-define('CURR_SVN_REVISION', "813");
+define('CURR_SVN_REVISION', "814");
 define('CURR_SVN_DATE'    , getActualVersion(1));
 define('CURR_SVN_VERSION' , getActualVersion(2));
 
index ff6e1fb6706f7ddc7744c6aeff0190d6c56b4029..b6e9fb8665b0ffc15db2f2729119eda2c0e1d7bd 100644 (file)
@@ -38,10 +38,10 @@ if (!defined('__SECURITY')) {
 }
 
 // Version number
-EXT_SET_VERSION("0.6.1");
+EXT_SET_VERSION("0.6.2");
 
 // Version history array (add more with , "0.1" and so on)
-EXT_SET_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", "0.2.2", "0.2.3", "0.2.4", "0.2.5", "0.2.6", "0.2.7", "0.2.8", "0.2.9", "0.3.0", "0.3.1", "0.3.2", "0.3.3", "0.3.4", "0.3.5", "0.3.6", "0.3.7", "0.3.8", "0.3.9", "0.4.0", "0.4.1", "0.4.2", "0.4.3", "0.4.4", "0.4.5", "0.4.6", "0.4.7", "0.4.8", "0.4.9", "0.5.0", "0.5.1", "0.5.2", "0.5.3", "0.5.4", "0.5.5", "0.5.6", "0.5.7", "0.5.8", "0.5.9", "0.6.0", "0.6.1"));
+EXT_SET_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", "0.2.2", "0.2.3", "0.2.4", "0.2.5", "0.2.6", "0.2.7", "0.2.8", "0.2.9", "0.3.0", "0.3.1", "0.3.2", "0.3.3", "0.3.4", "0.3.5", "0.3.6", "0.3.7", "0.3.8", "0.3.9", "0.4.0", "0.4.1", "0.4.2", "0.4.3", "0.4.4", "0.4.5", "0.4.6", "0.4.7", "0.4.8", "0.4.9", "0.5.0", "0.5.1", "0.5.2", "0.5.3", "0.5.4", "0.5.5", "0.5.6", "0.5.7", "0.5.8", "0.5.9", "0.6.0", "0.6.1", "0.6.2"));
 
 switch ($EXT_LOAD_MODE)
 {
@@ -714,6 +714,14 @@ PRIMARY KEY (`filter_id`)
                // Update notes (these will be set as task text!)
                EXT_SET_UPDATE_NOTES("Falsche Schreibweise korregiert.");
                break;
+
+       case "0.6.2": // SQL queries for v0.6.2
+               // Depends on refback extension
+               EXT_SET_UPDATE_DEPENDS("user");
+
+               // Update notes (these will be set as task text!)
+               EXT_SET_UPDATE_NOTES("Abh&auml;ngigkeit von <u>ext-user</u> gesetzt.");
+               break;
        }
        break;
 
index 7d91ef73042936b8a342c21010bdee1a15c17264..c06e0bf8ac5c86e83320222a97a39ff15175021d 100644 (file)
@@ -57,6 +57,10 @@ if (IS_FORM_SENT()) {
                        define('__DEF_RT_INDEX'   , "");
                        define('__DEF_RT_REGISTER', " selected=\"selected\"");
                        break;
+
+               default: // Invalid config!
+                       DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid refid_target %s detected.", getConfig('refid_target')));
+                       break;
        } // END - switch
 
        switch (getConfig('select_user_zero_refid')) {
@@ -69,6 +73,12 @@ if (IS_FORM_SENT()) {
                        define('__RAND_REFID_Y', "");
                        define('__RAND_REFID_N', " selected=\"selected\"");
                        break;
+
+               default: // Invalid config!
+                       DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid select_user_zero_refid %s detected.", getConfig('select_user_zero_refid')));
+                       define('__RAND_REFID_Y', "");
+                       define('__RAND_REFID_N', "");
+                       break;
        } // END - switch
 
        // Prepare content
index 293578e3eb2fc636ef6d6d1d239c961f5f0c8bf0..8367de207ee120c3e045c1f588aa32abefb2c7b1 100644 (file)
@@ -2122,6 +2122,11 @@ function SET_SQLS ($SQLs) {
        $GLOBALS['sqls'] = (array) $SQLs;
 }
 
+// Remover for SQLs array
+function UNSET_SQLS () {
+       unset($GLOBALS['sqls']);
+}
+
 // Getter for SQLs array
 function GET_SQLS () {
        return $GLOBALS['sqls'];