X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finstall-inc.php;h=e8a13231ec972bb8f007518db6e5ec5695bcc37f;hb=bc2da429e6d78668152427b7b5310268453553d8;hp=7312a401f0d158b32cc1d9f13280d854d08b9738;hpb=f22522fb0dc8772acd491e11eb72258aeae7cc5d;p=mailer.git diff --git a/inc/install-inc.php b/inc/install-inc.php index 7312a401f0..e8a13231ec 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -1,7 +1,7 @@ "); - REQUEST_SET_GET('page', 3); + addToInstallContent('
'.print_r(getSqls(), true).''); + + // Are some SQLs found? + if (countSqls() == '0') { + // Abort here + addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_SQL_IMPORT_FAILED')); + return; + } // END - if + + // Now run all queries through and try to keep out empty or comment queries + runFilterChain('run_sqls'); + + // Copy the config template and verify it + doInstallWriteLocalConfig(); + } // END - if + } // END - if } // END - if - } // END - if - if (getTotalFatalErrors() > 0) { - $OUT = ""; - foreach (getFatalArray() as $value) { - $OUT .= "