Project

General

Profile

« Previous | Next » 

Revision 1719

Added by Dietmar about 12 years ago

! beginning update frontend account
! remove html markup from code

View differences:

login.php
3 3
 *
4 4
 * @category        frontend
5 5
 * @package         account
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
6
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
11 10
 * @platform        WebsiteBaker 2.8.x
......
20 19

  
21 20
// Make sure the login is enabled
22 21
if(!FRONTEND_LOGIN) {
23
	if(INTRO_PAGE) {
24
		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
25
		exit(0);
26
	} else {
27 22
		header('Location: '.WB_URL.'/index.php');
28 23
		exit(0);
29
	}
24
//	if(INTRO_PAGE) {
25
//		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
26
//		exit(0);
27
//	} else {
28
//	}
30 29
}
31 30

  
32 31
$page_id = !empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
......
62 61

  
63 62
$ThemeUrl  = WB_URL.$wb->correct_theme_source('warning.html');
64 63
// Setup template object, parse vars to it, then parse it
65
$ThemePath = realpath(WB_PATH.$wb->correct_theme_source('login.htt'));
64
$ThemePath = realpath(WB_PATH.$wb->correct_theme_source('loginBox.htt'));
66 65

  
67 66
$thisApp = new Login(
68 67
				array(
......
76 75
						"MAX_USERNAME_LEN" => "30",
77 76
						"MAX_PASSWORD_LEN" => "30",
78 77
						"LOGIN_URL" => $loginUrl,
79
						"DEFAULT_URL" => WB_URL.PAGES_DIRECTORY."/index.php",
78
						"DEFAULT_URL" => WB_URL."/index.php",
80 79
						"TEMPLATE_DIR" => $ThemePath,
81 80
						"TEMPLATE_FILE" => "login.htt",
82 81
						"FRONTEND" => true,

Also available in: Unified diff