* MA 02110-1301 USA *
************************************************************************/
-/************************************************************************
- * YOU MAY ALSO WANT TO REMOVE THIS FILE AFTER INSTALLTION! *
- ************************************************************************/
-
// Some security stuff...
if (!defined('__SECURITY')) {
die();
} // END - if
}
+// Somewhat getter for installer content
+function getInstallerContent () {
+ // Is it here?
+ if (isset($GLOBAS['install_content'])) {
+ // Yes, then use it
+ $content = $GLOBALS['install_content'];
+ } else {
+ // Nothing found, this needs fixing
+ $content = loadTemplate('admin_settings_saved', false, '{--INSTALLER_CONTENT_404--}');
+ }
+
+ // Return content
+ return $content;
+}
+
// Read a given SQL dump
function readSqlDump ($FQFN) {
- // Sanity-check if file is there (should be there, but just to make it sure)
- if (!isFileReadable($FQFN)) {
- // This should not happen
- debug_report_bug(__FUNCTION__.': File ' . basename($FQFN) . ' is not readable!');
- } // END - if
-
// Load the file
$content = readFromFile($FQFN);