]> git.mxchange.org Git - mailer.git/blobdiff - inc/ajax/ajax_installer.php
Removed gone websites
[mailer.git] / inc / ajax / ajax_installer.php
index eea4629ee956909843db01033d9a79a452daf530..77cc42b8f2cc19c9346c0e87be5e9b03b4699f4d 100644 (file)
@@ -11,7 +11,7 @@
  * 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 *
@@ -666,11 +666,25 @@ function doAjaxInstallerStepInstallExtensions () {
        // 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