Project

General

Profile

« Previous | Next » 

Revision 1566

Added by Dietmar almost 13 years ago

fix class.login, when name and pass are both empty, no longer call increase_attemps
some redirect updates in frontend account files

View differences:

forgot.php
1
<?php
2
/**
3
 *
4
 * @category        frontend
5
 * @package         account
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version         $Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18

  
19
require_once('../config.php');
20

  
21
// Required page details
22
$page_id = 0;
23
$page_description = '';
24
$page_keywords = '';
25
define('PAGE_ID', 0);
26
define('ROOT_PARENT', 0);
27
define('PARENT', 0);
28
define('LEVEL', 0);
29
define('PAGE_TITLE', $MENU['FORGOT']);
30
define('MENU_TITLE', $MENU['FORGOT']);
31
define('VISIBILITY', 'public');
32

  
33
if(!FRONTEND_LOGIN) {
34
	if(INTRO_PAGE) {
35
		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
36
		exit(0);
37
	} else {
38
		header('Location: '.WB_URL.'/index.php');
39
		exit(0);
40
	}
41
}
42

  
43
// Set the page content include file
44
define('PAGE_CONTENT', WB_PATH.'/account/forgot_form.php');
45

  
46
// Set auto authentication to false
47
$auto_auth = false;
48

  
49
// Include the index (wrapper) file
50
require(WB_PATH.'/index.php');
51

  
52
?>
1
<?php
2
/**
3
 *
4
 * @category        frontend
5
 * @package         account
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version         $Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18

  
19
require_once('../config.php');
20

  
21
$page_id = (!empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0);
22

  
23
// Required page details
24
// $page_id = 0;
25
$page_description = '';
26
$page_keywords = '';
27
define('PAGE_ID', $page_id);
28
define('ROOT_PARENT', 0);
29
define('PARENT', 0);
30
define('LEVEL', 0);
31
define('PAGE_TITLE', $MENU['FORGOT']);
32
define('MENU_TITLE', $MENU['FORGOT']);
33
define('VISIBILITY', 'public');
34

  
35
if(!FRONTEND_LOGIN) {
36
	if(INTRO_PAGE) {
37
		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
38
		exit(0);
39
	} else {
40
		header('Location: '.WB_URL.'/index.php');
41
		exit(0);
42
	}
43
}
44

  
45
// Set the page content include file
46
define('PAGE_CONTENT', WB_PATH.'/account/forgot_form.php');
47

  
48
// Set auto authentication to false
49
$auto_auth = false;
50

  
51
// Include the index (wrapper) file
52
require(WB_PATH.'/index.php');

Also available in: Unified diff