* Kurzbeschreibung : AJAX-bezogene Funktionen fuer Installer *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Make sure ext-sql_patches is first
array_unshift($extensions, 'sql_patches');
+ // This takes longer
+ if (ini_set('max_input_time', 0) === FALSE) {
+ // Something didn't work
+ logDebugMessage(__FUNCTION__, __LINE__, 'Cannot set max_input_time to 0.');
+ } // END - if
+
// "Walk" through all extensions
foreach ($extensions as $key => $ext_name) {
+ // Debug message
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',ext_name=' . $ext_name);
+
// Is ext-sql_patches not at key=0?
- if (($key == 0) && ($ext_name == 'sql_patches')) {
+ if (($ext_name == 'sql_patches') && ($key > 0)) {
// Then skip this entry
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Skipping sql_changes at key=' . $key);
+ continue;
+ } elseif (isExtensionInstalled($ext_name)) {
+ // Skip already installed extensions
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Skipping extension ' . $ext_name . ' at key=' . $key . ': Already installed.');
continue;
} elseif ((!loadExtension($ext_name, 'test', '0.0.0', TRUE)) || (!registerExtension($ext_name, NULL))) {
// Didn't work