2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 09/09/2005 *
4 * =================== Last change: 05/18/2008 *
6 * -------------------------------------------------------------------- *
7 * File : sponsor_ref.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Redirection for the referral link *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Weiterleitungsscript fuer die Referral-Links *
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 *
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. *
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. *
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, *
30 ************************************************************************/
32 // Load security stuff here
33 require('inc/libs/security_functions.php');
36 $GLOBALS['__start_time'] = microtime(TRUE);
38 // Set module / output mode
39 $GLOBALS['__module'] = 'sponsor_ref';
40 $GLOBALS['__output_mode'] = -1;
42 // Load the required file(s)
43 require('inc/config-global.php');
45 // Set content type for e.g. search engines
46 setContentType('text/html');
48 // Base URL for redirection
49 $url = 'modules.php?module=index';
51 // Is there a referral id?
52 if (isValidReferralId()) {
53 // We have an refid here. So we simply add it
54 $url .= '&what=sponsor_reg&refid=' . determineReferralId();