Fixed bad naming of variable
[mailer.git] / sponsor_confirm.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 09/09/2005 *
4  * ===================                          Last change: 05/18/2008 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : sponsor_confirm.php                              *
8  * -------------------------------------------------------------------- *
9  * Short description : Redirection for the confirmation link            *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Weiterleitungsscript fuer den Bestaetigungslink  *
12  * -------------------------------------------------------------------- *
13  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
14  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
15  * For more information visit: http://mxchange.org                      *
16  *                                                                      *
17  * This program is free software. You can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License.       *
20  *                                                                      *
21  * This program is distributed in the hope that it will be useful,      *
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
24  * GNU General Public License for more details.                         *
25  *                                                                      *
26  * You should have received a copy of the GNU General Public License    *
27  * along with this program; if not, write to the Free Software          *
28  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
29  * MA  02110-1301  USA                                                  *
30  ************************************************************************/
31
32 // Load security stuff here
33 require('inc/libs/security_functions.php');
34
35 // Init start time
36 $GLOBALS['__start_time'] = microtime(TRUE);
37
38 // Set module / output mode
39 $GLOBALS['__module']      = 'sponsor_confirm';
40 $GLOBALS['__output_mode'] = -1;
41
42 // Load the required file(s)
43 require('inc/config-global.php');
44
45 // Set content type for e.g. search engines
46 setContentType('text/html');
47
48 // No hash provided by default
49 $url = 'modules.php?module=index';
50
51 // Is there a hash?
52 if (isGetRequestElementSet('hash')) {
53         // We have an refid here. So we simply add it
54         $url = 'modules.php?module=index&amp;what=sponsor_login&amp;hash=' . getRequestElement('hash');
55 } // END - if
56
57 // Load the URL
58 redirectToUrl($url);
59
60 // [EOF]
61 ?>