X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Finstall-inc.php;h=8dbe1a834b57ca38979d826e5f7dd91709b9b929;hb=039203d5428c9c6a3bed61fb3a9a16958c6fd44c;hp=b1aeb83b02054f9accd16ad8604953a17712c9ca;hpb=67a9828dd27cb5119292e5ac99042b3fcedb0d6b;p=mailer.git diff --git a/inc/install-inc.php b/inc/install-inc.php index b1aeb83b02..8dbe1a834b 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 .= "