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('registration_provider')) && (postRequestElement('registration_provider') == 'wernis')) {
50 $filterData['status'] = doWernisUserRegistration();
54 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
58 // Filter to run WDS66 API user registation 'done'
60 function FILTER_WERNIS_USER_REGISTRATION_DONE () {
61 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
63 // Is generic user registration selected?
64 if ((isPostRequestElementSet('registration_provider')) && (postRequestElement('registration_provider') == 'wernis')) {
69 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
73 // Filter to run WDS66 API user registation 'failed'
75 function FILTER_WERNIS_USER_REGISTRATION_FAILED () {
76 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
78 // Is generic user registration selected?
79 if ((isPostRequestElementSet('registration_provider')) && (postRequestElement('registration_provider') == 'wernis')) {
84 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
88 // Filter to run WDS66 API user registation 'form'
90 function FILTER_WERNIS_USER_REGISTRATION_FORM () {
91 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
93 // Is generic user registration selected?
94 if (((isGetRequestElementSet('registration_provider')) && (gettRequestElement('registration_provider') == 'wernis')) || (getDefaultRegistrationProvider() == 'wernis')) {
99 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
103 // Filter to run WDS66 API user registation check
104 function FILTER_WERNIS_USER_REGISTRATION_CHECK ($filterData) {
105 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
108 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
112 // Filter for WDS66 API user login
114 function FILTER_WERNIS_USER_LOGIN ($filterData) {
115 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
117 // Return filter data
118 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
122 // Filter for WDS66 API user login check
124 function FILTER_WERNIS_USER_LOGIN_CHECK ($filterData) {
125 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
127 // Return filter data
128 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');