X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Finstall-inc.php;h=01c7ca8e0836c06f81f04376ed4cc987aad3aabe;hp=34aa3fc9a02b0ee5d09138b3e37b25c0508b926c;hb=01c643fbb3dabb7953a6e9646113eb5742ebe3be;hpb=508228c85fba8448d00865b1639cb8cd7a69e457 diff --git a/inc/install-inc.php b/inc/install-inc.php index 34aa3fc9a0..01c7ca8e08 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 .= "