X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Finstall-inc.php;h=fa17cf66ce4e2c5cee8276512338fb45d1be0983;hb=7d92d2652807c247558a1bcbd7dcd6574bd4645d;hp=06c7e1fc7254850ff79c083762040896254a7ce3;hpb=3b8dd188f9630d866ea4fb4933adf2860fd1774a;p=mailer.git diff --git a/inc/install-inc.php b/inc/install-inc.php index 06c7e1fc72..fa17cf66ce 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 .= "