X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Finstall-inc.php;h=c45dc021bd2bcb9c67a6c271cd8389e319d8dc21;hp=9df9a11370c68994af27f3ab508b4507fa8e2f4d;hb=25b4a580b4c7e0d429eb8e436785d3c2ef304f8e;hpb=f97a999e0737c0007ae9c3c26dfef49f75a175ac diff --git a/inc/install-inc.php b/inc/install-inc.php index 9df9a11370..c45dc021bd 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 .= "