]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter-functions.php
Added encryption stuff + rewrote sendWernisApiRequest() to handle the decryption.
[mailer.git] / inc / filter-functions.php
index f60544c24efde8321a941cc8ce1882d97d75a557..27a7b607c0f749c23e5ad7525da85cf7e6616c3b 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Funktionen fuer Filter-System                    *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -106,11 +101,11 @@ ORDER BY
        registerFilter(__FUNCTION__, __LINE__, 'init', 'LOAD_CONFIGURATION');
        registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_RANDOMIZER');
        registerFilter(__FUNCTION__, __LINE__, 'init', 'LOAD_RUNTIME_INCLUDES');
+       registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_LANGUAGE');
        registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_EXTENSIONS');
        registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_SESSION');
        registerFilter(__FUNCTION__, __LINE__, 'init', 'SET_CURRENT_DATE');
        registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_RANDOM_NUMBER');
-       registerFilter(__FUNCTION__, __LINE__, 'init', 'CHECK_REPOSITORY_REVISION');
        registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_HOURLY_RESET');
        registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_DAILY_RESET');
        registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_WEEKLY_RESET');
@@ -297,7 +292,7 @@ function runFilterChain ($filterName, $filterData = NULL) {
 
        // Is that filter chain there?
        if (!isset($GLOBALS['cache_array']['filter']['chains'][$filterName])) {
-               // Log not found filters in debug-mode
+               // Filter chain not found filters in debug-mode
                if (isDebugModeEnabled()) {
                        // Log it away...
                        logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' does not exist.');
@@ -435,21 +430,13 @@ function isFilterChainAborted () {
 }
 
 // Interrupts the filter chain by enabling flag 'filter_chain_aborted'
-// @TODO Add a filter chain here? E.g.: 'filter_chain_interrupted'
 function interruptFilterChain () {
-       // Make sure that interrupted filter chains are not interrupted twice
-       assert((!isset($GLOBALS['filter_chain_interrupted'])) || ($GLOBALS['filter_chain_interrupted'] === FALSE));
-
        // Set it
        $GLOBALS['filter_chain_interrupted'] = TRUE;
 }
 
 // Continues the filter chain by disabling flag 'filter_chain_aborted'
-// @TODO Add a filter chain here? E.g.: 'filter_chain_continued'
 function continueFilterChain () {
-       // Make sure that continued filter chains are not continued twice
-       assert((!isset($GLOBALS['filter_chain_interrupted'])) || ($GLOBALS['filter_chain_interrupted'] === TRUE));
-
        // Set it
        $GLOBALS['filter_chain_interrupted'] = FALSE;
 }