2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 07/31/2013 *
4 * =================== Last change: 07/31/2013 *
6 * -------------------------------------------------------------------- *
8 * -------------------------------------------------------------------- *
9 * Short description : Filters for ext- *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Filter fuer ext- *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * -------------------------------------------------------------------- *
18 * Copyright (c) 2003 - 2009 by Roland Haeder *
19 * Copyright (c) 2009 - 2013 by Mailer Developer Team *
20 * For more information visit: http://mxchange.org *
22 * This program is free software; you can redistribute it and/or modify *
23 * it under the terms of the GNU General Public License as published by *
24 * the Free Software Foundation; either version 2 of the License, or *
25 * (at your option) any later version. *
27 * This program is distributed in the hope that it will be useful, *
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
30 * GNU General Public License for more details. *
32 * You should have received a copy of the GNU General Public License *
33 * along with this program; if not, write to the Free Software *
34 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
36 ************************************************************************/
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
43 // Filter to run WDS66 API user registation
44 function FILTER_WERNIS_USER_REGISTRATION ($filterData) {
45 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
47 // Is generic user registration selected?
48 if ((isPostRequestElementSet('provider')) && (postRequestElement('provider') == 'wernis')) {
50 $filterData['status'] = doWernisUserRegistration();
52 // Interrupt filter chain
53 interruptFilterChain();
57 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
61 // Filter to run WDS66 API user registation 'done'
63 function FILTER_WERNIS_USER_REGISTRATION_DONE () {
64 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
66 // Is generic user registration selected?
67 if ((isPostRequestElementSet('provider')) && (postRequestElement('provider') == 'wernis')) {
70 // Interrupt filter chain
71 interruptFilterChain();
75 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
79 // Filter to run WDS66 API user registation 'failed'
81 function FILTER_WERNIS_USER_REGISTRATION_FAILED () {
82 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
84 // Is generic user registration selected?
85 if ((isPostRequestElementSet('provider')) && (postRequestElement('provider') == 'wernis')) {
88 // Interrupt filter chain
89 interruptFilterChain();
93 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
97 // Filter to run WDS66 API user registation 'form'
99 function FILTER_WERNIS_USER_REGISTRATION_FORM () {
100 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
102 // Is WDS66 user registration selected?
103 if (((isGetRequestElementSet('provider')) && (getRequestElement('provider') == 'wernis')) || ((!isGetRequestElementSet('provider')) && (getDefaultRegistrationProvider() == 'wernis'))) {
106 // Interrupt filter chain
107 interruptFilterChain();
111 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
115 // Filter to run WDS66 API user registation check
116 function FILTER_WERNIS_USER_REGISTRATION_CHECK ($filterData) {
117 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
120 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
124 // Filter for WDS66 API user login
126 function FILTER_WERNIS_USER_LOGIN ($filterData) {
127 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
129 // Return filter data
130 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
134 // Filter for WDS66 API user login check
136 function FILTER_WERNIS_USER_LOGIN_CHECK ($filterData) {
137 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
139 // Return filter data
140 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');