X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Finstall-inc.php;h=84fdb9b3d241ef7566b42b04c35c29936f1867d1;hp=3b938296277fc3c2282137a9d7c9c5c73e2ca1f5;hb=b07f7e44eb7441841763058e598a25067e13cee8;hpb=81bfbcd72e424060ea1223b49ad92fcfa150f361 diff --git a/inc/install-inc.php b/inc/install-inc.php index 3b93829627..84fdb9b3d2 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__, '{--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 .= "