X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Finstall-inc.php;h=51d2fa1a2b3b171b9ef720550fe7704cc69e3667;hp=bb7ea7bd1ff7dcf4253cec8f789af798566ed50e;hb=57227d33e870ec5cd271209c4a978a52b45c2dd6;hpb=f3e4c2c048761589836fdbe6bd2e46599a1833a7 diff --git a/inc/install-inc.php b/inc/install-inc.php index bb7ea7bd1f..51d2fa1a2b 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 .= "