]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
More stuff for mysql3->mysql switch.
[mailer.git] / inc / filters.php
index 15f5c00d4622b5ce1ee73de52d3dc7d393db777f..5b3c05c5f22881e64f1e4b9eec831bbbe2ad0921 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Allgemeine Filter                                *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -807,22 +802,6 @@ function FILTER_TRIGGER_SENDING_POOL () {
        unset($GLOBALS['pool_cnt']);
 }
 
-// Filter for checking and updating SVN revision
-function FILTER_CHECK_REPOSITORY_REVISION () {
-       // Only execute this filter if installed and all config entries are there
-       if ((!isInstalled()) || (!isConfigEntrySet('patch_level'))) {
-               return;
-       } // END - if
-
-       // Check for patch level differences between database and current hard-coded
-       if ((getCurrentRepositoryRevision() > getConfig('patch_level')) || (getConfig('patch_level') == 'CURRENT_REPOSITORY_REVISION') || (getConfig('patch_ctime') == 'UNIX_TIMES')) {
-               // Update database and CONFIG array
-               updateConfiguration(array('patch_level', 'patch_ctime'), array(getCurrentRepositoryRevision(), 'UNIX_TIMESTAMP()'));
-               setConfigEntry('patch_level', getCurrentRepositoryRevision());
-               setConfigEntry('patch_ctime', time());
-       } // END - if
-}
-
 // Filter for running hourly reset
 function FILTER_RUN_HOURLY_RESET () {
        // Only execute this filter if installed
@@ -901,7 +880,7 @@ function FILTER_RUN_YEARLY_RESET () {
 // Filter for loading more runtime includes (not for installation)
 function FILTER_LOAD_RUNTIME_INCLUDES () {
        // Load more includes
-       foreach (array('databases', 'session', 'versions') as $inc) {
+       foreach (array('databases', 'session') as $inc) {
                // Load the include
                loadIncludeOnce('inc/' . $inc . '.php');
        } // END - foreach
@@ -1031,8 +1010,8 @@ function FILTER_HANDLE_FATAL_ERRORS () {
                'corr' => $CORR
        );
 
-       // Load footer
-       loadIncludeOnce('inc/header.php');
+       // Load header
+       loadPageHeader();
 
        // Load main template
        loadTemplate('fatal_errors', FALSE, $content);
@@ -1041,7 +1020,7 @@ function FILTER_HANDLE_FATAL_ERRORS () {
        initFatalMessages();
 
        // Load footer
-       loadIncludeOnce('inc/footer.php');
+       loadPageFooter();
 
        // Abort here
        doShutdown();