X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Finstall-inc.php;h=28db1db9a3087b9639cc8186125a1ca15c562fd0;hp=cf051fd03384f6a6329f25f7bb45882ab73bd72a;hb=63f159414369b5ea19a8ca75d8cd8033c45d8341;hpb=aea4f2a51ffa6f483056c6ce167c8c6fd8ca6129 diff --git a/inc/install-inc.php b/inc/install-inc.php index cf051fd033..28db1db9a3 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__, '{--INSTALLER_SQL_IMPORT_FAILED--}'); + return; + } // END - if + + // Now run all queries through + runFilterChain('run_sqls'); + + // Copy the config template and verify it + doInstallWriteLocalConfigurationFile(postRequestElement('spath')); + } // END - if + } // END - if + } // END - if + + // Are some fatal errors there? + if (ifFatalErrorsDetected()) { + $OUT = ''; + foreach (getFatalArray() as $value) { + $OUT .= '