Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        frontend
5
 * @package         account
6
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
8
 * @link			http://www.websitebaker2.org/
9
 * @license         http://www.gnu.org/licenses/gpl.html
10
 * @platform        WebsiteBaker 2.8.x
11
 * @requirements    PHP 5.2.2 and higher
12
 * @version         $Id: signup.php 1773 2012-09-27 23:42:13Z Luisehahne $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/signup.php $
14
 * @lastmodified    $Date: 2012-09-28 01:42:13 +0200 (Fri, 28 Sep 2012) $
15
 *
16
 */
17

    
18
require_once('../config.php');
19
ini_set('display_errors','0');
20

    
21
require_once(WB_PATH.'/framework/class.admin.php');
22

    
23
// Create new frontend object
24
$wb = new admin();
25

    
26
//require_once(dirname(__FILE__).'/MySignUp.php');
27
//print '<pre style="text-align: left;"><strong>function '.__FUNCTION__.'( '.$page_id.' );</strong>  basename: '.basename(__FILE__).'  line: '.__LINE__.' -> <br />';
28
//print_r( dirname(__FILE__) ); print '</pre>';
29

    
30
//
31
if( ( (intval(FRONTEND_SIGNUP)==0) &&
32
    (  0 == (isset($_SESSION['USER_ID']) ? intval($_SESSION['USER_ID']) : 0) )))
33
{
34
	$wb->send_header(WB_URL.'/index.php');
35
//	if(INTRO_PAGE) {
36
//	} else {
37
//		header('Location: '.WB_URL.'/index.php');
38
//		exit(0);
39
//	}
40
}
41

    
42
// form faked? Check the honeypot-fields.
43
if(ENABLED_ASP && isset($_POST['username']) && (
44
	(!isset($_POST['submitted_when']) OR !isset($_SESSION['submitted_when']) ) OR
45
//		($_POST['submitted_when'] != $_SESSION['submitted_when']) OR
46
			(!isset($_POST['email-address']) OR $_POST['email-address']) OR
47
				(!isset($_POST['name']) OR $_POST['name']) OR
48
					(!isset($_POST['full_name']) OR $_POST['full_name'])
49
	))
50
{
51
	$wb->send_header(WB_URL.'/index.php');
52
}
53

    
54
// Load the language file
55
//if(!file_exists(WB_PATH.'/languages/'.LANGUAGE.'.php')) {
56
//	exit('Error loading language file '.LANGUAGE.', please check configuration');
57
//} else {
58
//	require_once(WB_PATH.'/languages/'.LANGUAGE.'.php');
59
//	$load_language = false;
60
//}
61

    
62
$lang = WB_PATH . '/languages/' . LANGUAGE . '.php';
63
require_once(!file_exists($lang) ? WB_PATH . '/languages/EN.php' : $lang );
64

    
65
$_SESSION['display_form'] = true;
66

    
67
$page_id = isset($_SESSION['PAGE_ID']) ? intval($_SESSION['PAGE_ID']) : 0;
68

    
69
$page_description = '';
70
$page_keywords = '';
71
define('PAGE_ID', $page_id);
72
define('ROOT_PARENT', 0);
73
define('PARENT', 0);
74
define('LEVEL', 0);
75
define('PAGE_TITLE', $TEXT['SIGNUP']);
76
define('MENU_TITLE', $TEXT['SIGNUP']);
77
define('MODULE', '');
78
define('VISIBILITY', 'public');
79

    
80
define('PAGE_CONTENT', WB_PATH.'/account/signup_form.php');
81

    
82
// Set auto authentication to false
83
$auto_auth = false;
84

    
85
// Include the index (wrapper) file
86
require(WB_PATH.'/index.php');
(20-20/22)