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 |
|
|
require_once('../config.php');
|
19 |
|
|
|
20 |
|
|
$page_id = (!empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0);
|
21 |
|
|
|
22 |
|
|
// Required page details
|
23 |
|
|
// $page_id = 0;
|
24 |
|
|
$page_description = '';
|
25 |
|
|
$page_keywords = '';
|
26 |
|
|
define('PAGE_ID', $page_id);
|
27 |
|
|
define('ROOT_PARENT', 0);
|
28 |
|
|
define('PARENT', 0);
|
29 |
|
|
define('LEVEL', 0);
|
30 |
|
|
define('PAGE_TITLE', $MENU['FORGOT']);
|
31 |
|
|
define('MENU_TITLE', $MENU['FORGOT']);
|
32 |
|
|
define('VISIBILITY', 'public');
|
33 |
|
|
|
34 |
|
|
if(!FRONTEND_LOGIN) {
|
35 |
|
|
if(INTRO_PAGE) {
|
36 |
|
|
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
|
37 |
|
|
exit(0);
|
38 |
|
|
} else {
|
39 |
|
|
header('Location: '.WB_URL.'/index.php');
|
40 |
|
|
exit(0);
|
41 |
|
|
}
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
// Set the page content include file
|
45 |
|
|
define('PAGE_CONTENT', WB_PATH.'/account/forgot_form.php');
|
46 |
|
|
|
47 |
|
|
// Set auto authentication to false
|
48 |
|
|
$auto_auth = false;
|
49 |
|
|
|
50 |
|
|
// Include the index (wrapper) file
|
51 |
|
|
require(WB_PATH.'/index.php');
|