e36364535b02ac6ffae506969afb63b9ffb913ea
[mailer.git] / inc / filter / wernis_filter.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 07/31/2013 *
4  * ===================                          Last change: 07/31/2013 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : _filter.php                                      *
8  * -------------------------------------------------------------------- *
9  * Short description : Filters for ext-                                 *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Filter fuer ext-                                 *
12  * -------------------------------------------------------------------- *
13  * $Revision::                                                        $ *
14  * $Date::                                                            $ *
15  * $Tag:: 0.2.1-FINAL                                                 $ *
16  * $Author::                                                          $ *
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                      *
21  *                                                                      *
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.                                  *
26  *                                                                      *
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.                         *
31  *                                                                      *
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,               *
35  * MA  02110-1301  USA                                                  *
36  ************************************************************************/
37
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
40         die();
41 } // END - if
42
43 // Filter to run WDS66 API user registation
44 function FILTER_WERNIS_USER_REGISTRATION ($filterData) {
45         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
46
47         // Is generic user registration selected?
48         if ((isPostRequestElementSet('registration_provider')) && (postRequestElement('registration_provider') == 'wernis')) {
49                 // Run it
50                 $filterData['status'] = doWernisUserRegistration();
51         } // END - if
52
53         // Return it
54         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
55         return $filterData;
56 }
57
58 // Filter to run WDS66 API user registation 'done'
59 // @TODO 10% done
60 function FILTER_WERNIS_USER_REGISTRATION_DONE () {
61         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
62
63         // Is generic user registration selected?
64         if ((isPostRequestElementSet('registration_provider')) && (postRequestElement('registration_provider') == 'wernis')) {
65                 // Run it
66         } // END - if
67
68         // Return it
69         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
70         return NULL;
71 }
72
73 // Filter to run WDS66 API user registation 'failed'
74 // @TODO 10% done
75 function FILTER_WERNIS_USER_REGISTRATION_FAILED () {
76         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
77
78         // Is generic user registration selected?
79         if ((isPostRequestElementSet('registration_provider')) && (postRequestElement('registration_provider') == 'wernis')) {
80                 // Run it
81         } // END - if
82
83         // Return it
84         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
85         return NULL;
86 }
87
88 // Filter to run WDS66 API user registation 'form'
89 // @TODO 10% done
90 function FILTER_WERNIS_USER_REGISTRATION_FORM () {
91         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
92
93         // Is generic user registration selected?
94         if (((isGetRequestElementSet('registration_provider')) && (gettRequestElement('registration_provider') == 'wernis')) || (getDefaultRegistrationProvider() == 'wernis')) {
95                 // Run it
96         } // END - if
97
98         // Return it
99         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
100         return NULL;
101 }
102
103 // Filter to run WDS66 API user registation check
104 function FILTER_WERNIS_USER_REGISTRATION_CHECK ($filterData) {
105         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
106
107         // Return it
108         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
109         return $filterData;
110 }
111
112 // Filter for WDS66 API user login
113 // @TODO 0% done
114 function FILTER_WERNIS_USER_LOGIN ($filterData) {
115         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
116
117         // Return filter data
118         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
119         return $filterData;
120 }
121
122 // Filter for WDS66 API user login check
123 // @TODO 0% done
124 function FILTER_WERNIS_USER_LOGIN_CHECK ($filterData) {
125         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
126
127         // Return filter data
128         //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
129         return $filterData;
130 }
131
132 // [EOF]
133 ?>