Project

General

Profile

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: forgot.php 1792 2012-10-24 00:43:00Z Luisehahne $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/forgot.php $
14
 * @lastmodified    $Date: 2012-10-24 02:43:00 +0200 (Wed, 24 Oct 2012) $
15
 *
16
 */
17

    
18
// 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

    
25
if(!class_exists('frontend', false)){ include(WB_PATH.'/framework/class.frontend.php'); }
26

    
27
require_once(WB_PATH.'/framework/functions.php');
28

    
29
$wb = new frontend(false);
30

    
31
$page_id = defined('REFERRER_ID') ? REFERRER_ID : isset($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : PAGE_ID;
32

    
33
// Required page details
34
$page_description = '';
35
$page_keywords = '';
36
// Work out level
37
$level = ($page_id > 0 )? level_count($page_id): $page_id;
38
// Work out root parent
39
$root_parent = ($page_id > 0 )? root_parent($page_id): $page_id;
40

    
41
define('PAGE_ID', $page_id);
42
define('ROOT_PARENT', $root_parent);
43
define('PARENT', 0);
44
define('LEVEL', $level);
45

    
46
define('PAGE_TITLE', $MENU['FORGOT']);
47
define('MENU_TITLE', $MENU['FORGOT']);
48
define('VISIBILITY', 'public');
49

    
50
if(!FRONTEND_LOGIN) {
51
	if(INTRO_PAGE) {
52
		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
53
		exit(0);
54
	} else {
55
		header('Location: '.WB_URL.'/index.php');
56
		exit(0);
57
	}
58
}
59

    
60
// Set the page content include file
61
define('PAGE_CONTENT', WB_PATH.'/account/forgot_form.php');
62

    
63
// Set auto authentication to false
64
$auto_auth = false;
65

    
66
// Include the index (wrapper) file
67
require(WB_PATH.'/index.php');
(8-8/22)