Project

General

Profile

1 1473 Luisehahne
<?php
2
/**
3
 *
4
 * @category        frontend
5
 * @package         account
6 1719 Luisehahne
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
8 1473 Luisehahne
 * @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$
13
 * @filesource		$HeadURL$
14
 * @lastmodified    $Date$
15
 *
16
 */
17
18
require_once('../config.php');
19
20
if(!FRONTEND_LOGIN) {
21
		header('Location: '.WB_URL.'/index.php');
22
		exit(0);
23 1719 Luisehahne
//	if(INTRO_PAGE) {
24
//		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
25
//		exit(0);
26
//	} else {
27
//		header('Location: '.WB_URL.'/index.php');
28
//		exit(0);
29
//	}
30 1473 Luisehahne
}
31
32 1508 Luisehahne
require_once(WB_PATH.'/framework/class.frontend.php');
33 1719 Luisehahne
34 1473 Luisehahne
$wb_inst = new wb();
35
if ($wb_inst->is_authenticated()==false) {
36
	header('Location: '.WB_URL.'/account/login.php');
37
	exit(0);
38
}
39
40 1508 Luisehahne
$page_id = !empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
41
42 1473 Luisehahne
// Required page details
43 1508 Luisehahne
/* */
44
// $page_id = 0;
45 1473 Luisehahne
$page_description = '';
46
$page_keywords = '';
47 1508 Luisehahne
define('PAGE_ID', $page_id);
48 1473 Luisehahne
define('ROOT_PARENT', 0);
49
define('PARENT', 0);
50
define('LEVEL', 0);
51 1508 Luisehahne
52 1473 Luisehahne
define('PAGE_TITLE', $MENU['PREFERENCES']);
53
define('MENU_TITLE', $MENU['PREFERENCES']);
54
define('MODULE', '');
55
define('VISIBILITY', 'public');
56
57 1508 Luisehahne
define('PAGE_CONTENT', WB_PATH.'/account/preferences_form.php');
58 1473 Luisehahne
// Include the index (wrapper) file
59
require(WB_PATH.'/index.php');