'.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');
} // END - if
} // END - if
} // END - if
// Are some fatal errors there?
if (ifFatalErrorsDetected()) {
$OUT = '';
foreach (getFatalArray() as $value) {
$OUT .= '
' . $value . '
';
} // END foreach
$content['fatal_errors'] = $OUT;
$OUT = '';
foreach ($GLOBALS['install_mysql'] as $key => $value) {
$OUT .= ' ';
} // END foreach
$content['mysql_hidden'] = $OUT;
$content['spath'] = postRequestElement('spath');
$content['burl'] = postRequestElement('burl');
$content['title'] = postRequestElement('title');
$content['slogan'] = postRequestElement('slogan');
$content['email'] = postRequestElement('email');
$content['smtp_host'] = postRequestElement('smtp_host');
$content['smtp_user'] = postRequestElement('smtp_user');
$content['smtp_pass'] = postRequestElement('smtp_pass1');
// Load template
addTemplateToInstallContent('install_fatal_errors', $content);
// We have handled all fatal errors here
initFatalMessages();
} else {
// Copy the config template and verify it
doInstallWriteLocalConfigurationFile(
postRequestElement('spath'),
postRequestElement('burl'),
postRequestElement('title'),
postRequestElement('slogan'),
postRequestElement('email'),
postRequestElement('warn_no_pass'),
postRequestElement('wfooter'),
postRequestElement('blink'),
postRequestElement('mysql', 'host'),
postRequestElement('mysql', 'dbase'),
postRequestElement('mysql', 'login'),
postRequestElement('mysql', 'pass1'),
postRequestElement('mysql', 'prefix'),
postRequestElement('mysql', 'type'),
postRequestElement('smtp_host'),
postRequestElement('smtp_user'),
postRequestElement('smtp_pass1')
);
// Register ext-sql_patches and ext-task
if ((registerExtension('sql_patches', NULL)) && (registerExtension('task', NULL))) {
// Installation is done!
redirectToUrl('install.php?install_page=finished');
} else {
// Something goes wrong on registration of ext-sql_patches
addFatalMessage(__FILE__, __LINE__, '{--INSTALLER_FINALIZER_CANNOT_REGISTER_SQL_PATCHES--}');
}
}
} else {
// Something goes wrong during installation! :-(
addFatalMessage(__FILE__, __LINE__, '{--INSTALLER_FINALIZER_FAILED--}');
}
// [EOF]
?>