Project

General

Profile

« Previous | Next » 

Revision 27

Added by stefan about 19 years ago

Reworked visibility and menu code (frontend login problem)

View differences:

signup.php
1 1
<?php
2 2

  
3
// $Id: signup.php,v 1.3 2005/04/02 06:25:37 rdjurovich Exp $
3
// $Id$
4 4

  
5 5
/*
6 6

  
......
25 25

  
26 26
require('../config.php');
27 27

  
28
if(!is_numeric(FRONTEND_SIGNUP)) {
29
	if(INTRO_PAGE) {
30
		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index'.PAGE_EXTENSION);
31
	} else {
32
		header('Location: '.WB_URL.'/index'.PAGE_EXTENSION);
33
	}
34
}
35

  
28 36
// Load the language file
29 37
if(!file_exists(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php')) {
30 38
	exit('Error loading language file '.DEFAULT_LANGUAGE.', please check configuration');
......
33 41
	$load_language = false;
34 42
}
35 43

  
44

  
36 45
// Required page details
37 46
$page_id = 0;
38 47
$page_description = '';
......
46 55
define('MODULE', '');
47 56
define('VISIBILITY', 'public');
48 57

  
49
if(!is_numeric(FRONTEND_SIGNUP)) {
50
	header('Location: '.WB_URL.'/pages/index'.PAGE_EXTENSION);
51
}
52

  
53 58
// Set the page content include file
54 59
if(isset($_POST['username'])) {
55 60
	define('PAGE_CONTENT', WB_PATH.'/account/signup2.php');

Also available in: Unified diff