<?php
/**
 *
 * @category        frontend
 * @package         account
 * @author          Ryan Djurovich, WebsiteBaker Project
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
 * @link			http://www.websitebaker2.org/
 * @license         http://www.gnu.org/licenses/gpl.html
 * @platform        WebsiteBaker 2.8.x
 * @requirements    PHP 5.2.2 and higher
 * @version         $Id: preferences.php 1719 2012-08-29 14:59:35Z Luisehahne $
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/preferences.php $
 * @lastmodified    $Date: 2012-08-29 16:59:35 +0200 (Wed, 29 Aug 2012) $
 *
 */

require_once('../config.php');

if(!FRONTEND_LOGIN) {
		header('Location: '.WB_URL.'/index.php');
		exit(0);
//	if(INTRO_PAGE) {
//		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
//		exit(0);
//	} else {
//		header('Location: '.WB_URL.'/index.php');
//		exit(0);
//	}
}

require_once(WB_PATH.'/framework/class.frontend.php');

$wb_inst = new wb();
if ($wb_inst->is_authenticated()==false) {
	header('Location: '.WB_URL.'/account/login.php');
	exit(0);
}

$page_id = !empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;

// Required page details
/* */
// $page_id = 0;
$page_description = '';
$page_keywords = '';
define('PAGE_ID', $page_id);
define('ROOT_PARENT', 0);
define('PARENT', 0);
define('LEVEL', 0);

define('PAGE_TITLE', $MENU['PREFERENCES']);
define('MENU_TITLE', $MENU['PREFERENCES']);
define('MODULE', '');
define('VISIBILITY', 'public');

define('PAGE_CONTENT', WB_PATH.'/account/preferences_form.php');
// Include the index (wrapper) file
require(WB_PATH.'/index.php');
