X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Finstall-inc.php;h=5a93e2d0e798eddb84a44d54c8023aa66d549b4d;hp=91eab08c8bcb1b4d4e1a97b9d5c1d066a9967000;hb=6914ebaaae909093df86d010e4c754a43d1a1aed;hpb=b2fff4de774cc58dfae0b8dd2a291af28f254833 diff --git a/inc/install-inc.php b/inc/install-inc.php index 91eab08c8b..5a93e2d0e7 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 .= "