Project

General

Profile

« Previous | Next » 

Revision 1792

Added by Dietmar about 12 years ago

! all changes in folder account, Signup with confirmation Mail
! frontend.css now included by account script

View differences:

forgot.php
15 15
 *
16 16
 */
17 17

  
18
require_once('../config.php');
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
}
19 24

  
20
$page_id = (!empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0);
25
if(!class_exists('frontend', false)){ include(WB_PATH.'/framework/class.frontend.php'); }
21 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

  
22 33
// Required page details
23
// $page_id = 0;
24 34
$page_description = '';
25 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

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

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

Also available in: Unified diff