]> git.mxchange.org Git - mailer.git/commitdiff
Last references to now replaced with mergeConfig()
authorRoland Häder <roland@mxchange.org>
Mon, 23 Feb 2009 17:30:13 +0000 (17:30 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 23 Feb 2009 17:30:13 +0000 (17:30 +0000)
inc/functions.php
inc/libs/yoomedia_functions.php
inc/modules/admin/admin-inc.php
inc/modules/admin/what-config_primera.php
inc/modules/admin/what-config_wernis.php
inc/mysql-connect.php

index ffdcd76a16eeb7907da966e0e3668550578750cd..591a56c702a432cd908f76714cba97d5b76506a2 100644 (file)
@@ -2835,6 +2835,12 @@ function IF_APACHE_MODULE_LOADED ($apacheModule) {
        return (((function_exists('apache_get_modules')) && (in_array($apacheModule, apache_get_modules()))) || (!function_exists('apache_get_modules')));
 }
 
        return (((function_exists('apache_get_modules')) && (in_array($apacheModule, apache_get_modules()))) || (!function_exists('apache_get_modules')));
 }
 
+// Merges $_CONFIG with data in given array
+function mergeConfig ($newConfig) {
+       global $_CONFIG;
+       $_CONFIG = merge_array($_CONFIG, $newConfig);
+}
+
 // Getter for $_CONFIG entries
 function getConfig ($entry) {
        global $_CONFIG;
 // Getter for $_CONFIG entries
 function getConfig ($entry) {
        global $_CONFIG;
index 4b234a24638af97de7c6e6b1a74fa5ff8471f2a4..9307272432fa2916a294906b7a56ce105dcfb871 100644 (file)
@@ -39,8 +39,6 @@ if (!defined('__SECURITY')) {
 
 // Test if the extension settings did work
 function YOOMEDIA_TEST_CONFIG ($data) {
 
 // Test if the extension settings did work
 function YOOMEDIA_TEST_CONFIG ($data) {
-       global $_CONFIG;
-
        // Is this admin?
        if (!IS_ADMIN()) {
                // No admin!
        // Is this admin?
        if (!IS_ADMIN()) {
                // No admin!
@@ -48,7 +46,7 @@ function YOOMEDIA_TEST_CONFIG ($data) {
        } // END - if
 
        // Transfer config data
        } // END - if
 
        // Transfer config data
-       $_CONFIG = merge_array($_CONFIG, $data);
+       mergeConfig($data);
 
        // Temporary allow maximum
        setConfigEntry('yoomedia_tm_max_reload'   , 1000);
 
        // Temporary allow maximum
        setConfigEntry('yoomedia_tm_max_reload'   , 1000);
index 4d11ed13fe65819b2ce304461a28c9b83fd5f624..4493fca81595cb81a122d28e0f7e70a9d85c9657 100644 (file)
@@ -1214,10 +1214,8 @@ function ADMIN_UNDELETE_ENTRIES_CONFIRM ($IDs, $table, $columns=array(), $filter
 
 // Checks proxy settins by fetching check-updates3.php from www.mxchange.org
 function ADMIN_TEST_PROXY_SETTINGS ($settingsArray) {
 
 // Checks proxy settins by fetching check-updates3.php from www.mxchange.org
 function ADMIN_TEST_PROXY_SETTINGS ($settingsArray) {
-       global $_CONFIG;
-
        // Set temporary the new settings
        // Set temporary the new settings
-       $_CONFIG = merge_array($_CONFIG, $settingsArray);
+       mergeConfig($settingsArray);
 
        // Now get the test URL
        $content = GET_URL("check-updates3.php");
 
        // Now get the test URL
        $content = GET_URL("check-updates3.php");
index 3a8d0da5c2885b3610d1600b3000c09830369d4e..ea836b6fcf4838d69628b54ec159e3fc8beb04b3 100644 (file)
@@ -42,8 +42,7 @@ ADD_DESCR("admin", __FILE__);
 
 if (isset($_POST['ok'])) {
        // First merge temporarily the new API data into the current config
 
 if (isset($_POST['ok'])) {
        // First merge temporarily the new API data into the current config
-       global $_CONFIG;
-       $_CONFIG = merge_array($_CONFIG, $_POST);
+       mergeConfig($_POST);
 
        // Is the password set?
        if (isset($_POST['pass'])) {
 
        // Is the password set?
        if (isset($_POST['pass'])) {
index cfa9132c55b6c6f2cb16a2fd33c4035f48eeff51..b92afc06d5054dda393d86f91b27aa1340f324ce 100644 (file)
@@ -42,8 +42,7 @@ ADD_DESCR("admin", __FILE__);
 
 if (isset($_POST['ok'])) {
        // First merge temporarily the new API data into the current config
 
 if (isset($_POST['ok'])) {
        // First merge temporarily the new API data into the current config
-       global $_CONFIG;
-       $_CONFIG = merge_array($_CONFIG, $_POST);
+       mergeConfig($_POST);
 
        // Let's test the API first (hold your horses here, cowboy! Thank you. :) )
        if (WERNIS_TEST_API()) {
 
        // Let's test the API first (hold your horses here, cowboy! Thank you. :) )
        if (WERNIS_TEST_API()) {
index eb0d02cac1b56ec3a93cd5054a5a09959af2bb31..966f799f5691ae0f14a0d39c94345a00a6f5ca1a 100644 (file)
@@ -159,7 +159,7 @@ if ((!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndT
                                unset($MySQL);
 
                                // Load configuration stuff
                                unset($MySQL);
 
                                // Load configuration stuff
-                               $_CONFIG = merge_array($_CONFIG, LOAD_CONFIG());
+                               mergeConfig(LOAD_CONFIG());
 
                                // Load "databases" aka static arrays
                                LOAD_INC_ONCE("inc/databases.php");
 
                                // Load "databases" aka static arrays
                                LOAD_INC_ONCE("inc/databases.php");