]> git.mxchange.org Git - mailer.git/blobdiff - inc/install-functions.php
Installer content encapsulated in inc/install-functions.php
[mailer.git] / inc / install-functions.php
index 4d7059a11f56d31d5d0b5c623887b611f8d6886d..d9ac51c451758d1c44808889852fdd074c5b675d 100644 (file)
  * MA  02110-1301  USA                                                  *
  ************************************************************************/
 
-/************************************************************************
- *      YOU MAY ALSO WANT TO REMOVE THIS FILE AFTER INSTALLTION!        *
- ************************************************************************/
-
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
@@ -102,6 +98,21 @@ function addToInstallContent ($out) {
        } // 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) {
        // Load the file