| 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: preferences.php 1719 2012-08-29 14:59:35Z Luisehahne $
 | 
  
    | 13 |  * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/preferences.php $
 | 
  
    | 14 |  * @lastmodified    $Date: 2012-08-29 16:59:35 +0200 (Wed, 29 Aug 2012) $
 | 
  
    | 15 |  *
 | 
  
    | 16 |  */
 | 
  
    | 17 | 
 | 
  
    | 18 | require_once('../config.php');
 | 
  
    | 19 | 
 | 
  
    | 20 | if(!FRONTEND_LOGIN) {
 | 
  
    | 21 | 		header('Location: '.WB_URL.'/index.php');
 | 
  
    | 22 | 		exit(0);
 | 
  
    | 23 | //	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 | }
 | 
  
    | 31 | 
 | 
  
    | 32 | require_once(WB_PATH.'/framework/class.frontend.php');
 | 
  
    | 33 | 
 | 
  
    | 34 | $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 | $page_id = !empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
 | 
  
    | 41 | 
 | 
  
    | 42 | // Required page details
 | 
  
    | 43 | /* */
 | 
  
    | 44 | // $page_id = 0;
 | 
  
    | 45 | $page_description = '';
 | 
  
    | 46 | $page_keywords = '';
 | 
  
    | 47 | define('PAGE_ID', $page_id);
 | 
  
    | 48 | define('ROOT_PARENT', 0);
 | 
  
    | 49 | define('PARENT', 0);
 | 
  
    | 50 | define('LEVEL', 0);
 | 
  
    | 51 | 
 | 
  
    | 52 | define('PAGE_TITLE', $MENU['PREFERENCES']);
 | 
  
    | 53 | define('MENU_TITLE', $MENU['PREFERENCES']);
 | 
  
    | 54 | define('MODULE', '');
 | 
  
    | 55 | define('VISIBILITY', 'public');
 | 
  
    | 56 | 
 | 
  
    | 57 | define('PAGE_CONTENT', WB_PATH.'/account/preferences_form.php');
 | 
  
    | 58 | // Include the index (wrapper) file
 | 
  
    | 59 | require(WB_PATH.'/index.php');
 |