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;
// Test if the extension settings did work
function YOOMEDIA_TEST_CONFIG ($data) {
- global $_CONFIG;
-
// Is this admin?
if (!IS_ADMIN()) {
// No admin!
} // END - if
// Transfer config data
- $_CONFIG = merge_array($_CONFIG, $data);
+ mergeConfig($data);
// Temporary allow maximum
setConfigEntry('yoomedia_tm_max_reload' , 1000);
// 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
- $_CONFIG = merge_array($_CONFIG, $settingsArray);
+ mergeConfig($settingsArray);
// Now get the test URL
$content = GET_URL("check-updates3.php");
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'])) {
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()) {
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");