} // END - if
// Is MXChange installed or no admin registered so far?
-if ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndTrue('admin_registered')))
+if ((!isInstalled()) || (!isAdminRegistered()))
{
// Set URL for FORM actions
define('__BURL_ACTION', constant('URL'));
break;
case "finalize": // Write captured data to files
- if ((REQUEST_ISSET_POST(('finalize'))) && (!isBooleanConstantAndTrue('mxchange_installed'))) {
+ if ((REQUEST_ISSET_POST(('finalize'))) && (!isInstalled())) {
// You have submitted data then we have to reset the fatal messages
$SQLs = array();
$FQFN = secureString(REQUEST_POST('spath')) . "install/" . $dump;
if (FILE_READABLE($FQFN)) {
// Read the file
- $SQLs = READ_FILE($FQFN, true);
+ $fileContent = READ_FILE($FQFN, true);
// And split it up against ;\n ...
- $SQLs = merge_array($SQLs, explode(";\n", $sql));
+ $SQLs = merge_array($SQLs, explode(";\n", $fileContent));
} else {
// Not readable!
debug_report_bug(sprintf("SQL dump %s is not readable!", $dump));
// Installation is done!
LOAD_URL("install.php?page=finalize");
}
- } elseif (isBooleanConstantAndTrue('mxchange_installed')) {
+ } elseif (isInstalled()) {
// Redirection after writing data... :-)
LOAD_TEMPLATE("install_finished");
} else {