| 1 | 1566 | Luisehahne | <?php
 | 
      
        | 2 |  |  | /**
 | 
      
        | 3 |  |  |  *
 | 
      
        | 4 |  |  |  * @category        frontend
 | 
      
        | 5 |  |  |  * @package         account
 | 
      
        | 6 | 1728 | Luisehahne |  * @author          Ryan Djurovich,WebsiteBaker Project
 | 
      
        | 7 |  |  |  * @copyright       2009-2012, WebsiteBaker Org. e.V.
 | 
      
        | 8 | 1566 | 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 | 1792 | Luisehahne | // Include config file
 | 
      
        | 19 |  |  | $config_file = realpath('../config.php');
 | 
      
        | 20 |  |  | if(file_exists($config_file) && !defined('WB_URL'))
 | 
      
        | 21 |  |  | {
 | 
      
        | 22 |  |  | 	require_once($config_file);
 | 
      
        | 23 |  |  | }
 | 
      
        | 24 | 1566 | Luisehahne | 
 | 
      
        | 25 | 1792 | Luisehahne | if(!class_exists('frontend', false)){ include(WB_PATH.'/framework/class.frontend.php'); }
 | 
      
        | 26 | 1566 | Luisehahne | 
 | 
      
        | 27 | 1792 | Luisehahne | require_once(WB_PATH.'/framework/functions.php');
 | 
      
        | 28 |  |  | 
 | 
      
        | 29 |  |  | $wb = new frontend(false);
 | 
      
        | 30 |  |  | 
 | 
      
        | 31 | 1844 | Luisehahne | $page_id = defined('PAGE_ID') ? PAGE_ID : 0;
 | 
      
        | 32 |  |  | $page_id = defined('REFERRER_ID') ? REFERRER_ID : isset($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : $page_id;
 | 
      
        | 33 | 1792 | Luisehahne | 
 | 
      
        | 34 | 1566 | Luisehahne | // Required page details
 | 
      
        | 35 |  |  | $page_description = '';
 | 
      
        | 36 |  |  | $page_keywords = '';
 | 
      
        | 37 | 1792 | Luisehahne | // Work out level
 | 
      
        | 38 |  |  | $level = ($page_id > 0 )? level_count($page_id): $page_id;
 | 
      
        | 39 |  |  | // Work out root parent
 | 
      
        | 40 |  |  | $root_parent = ($page_id > 0 )? root_parent($page_id): $page_id;
 | 
      
        | 41 |  |  | 
 | 
      
        | 42 | 1566 | Luisehahne | define('PAGE_ID', $page_id);
 | 
      
        | 43 | 1792 | Luisehahne | define('ROOT_PARENT', $root_parent);
 | 
      
        | 44 | 1566 | Luisehahne | define('PARENT', 0);
 | 
      
        | 45 | 1792 | Luisehahne | define('LEVEL', $level);
 | 
      
        | 46 |  |  | 
 | 
      
        | 47 | 1566 | Luisehahne | define('PAGE_TITLE', $MENU['FORGOT']);
 | 
      
        | 48 |  |  | define('MENU_TITLE', $MENU['FORGOT']);
 | 
      
        | 49 |  |  | define('VISIBILITY', 'public');
 | 
      
        | 50 |  |  | 
 | 
      
        | 51 |  |  | if(!FRONTEND_LOGIN) {
 | 
      
        | 52 |  |  | 	if(INTRO_PAGE) {
 | 
      
        | 53 |  |  | 		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
 | 
      
        | 54 |  |  | 		exit(0);
 | 
      
        | 55 |  |  | 	} else {
 | 
      
        | 56 |  |  | 		header('Location: '.WB_URL.'/index.php');
 | 
      
        | 57 |  |  | 		exit(0);
 | 
      
        | 58 |  |  | 	}
 | 
      
        | 59 |  |  | }
 | 
      
        | 60 |  |  | 
 | 
      
        | 61 |  |  | // Set the page content include file
 | 
      
        | 62 |  |  | define('PAGE_CONTENT', WB_PATH.'/account/forgot_form.php');
 | 
      
        | 63 |  |  | 
 | 
      
        | 64 |  |  | // Set auto authentication to false
 | 
      
        | 65 |  |  | $auto_auth = false;
 | 
      
        | 66 |  |  | 
 | 
      
        | 67 |  |  | // Include the index (wrapper) file
 | 
      
        | 68 |  |  | require(WB_PATH.'/index.php');
 |