X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Finstall-inc.php;h=5a93e2d0e798eddb84a44d54c8023aa66d549b4d;hb=3b15416a92af60582c1b622e2bff5ae476c647c1;hp=6073f4e66d211a08f437efa8c3ec24d813e6e1d8;hpb=a84b517e5ce0d1601ca09082aad89f9b673bc202;p=mailer.git diff --git a/inc/install-inc.php b/inc/install-inc.php index 6073f4e66d..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 .= "