Project

General

Profile

« Previous | Next » 

Revision 1709

Added by Dietmar about 12 years ago

! update folder framework class.login, admin/login, admin/skel/htt

View differences:

index.php
4 4
 * @category        admin
5 5
 * @package         login
6 6
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2011, Website Baker Org. e.V.
7
 * @copyright       2009-2012, Website Baker Org. e.V.
8 8
 * @link			http://www.websitebaker2.org/
9 9
 * @license         http://www.gnu.org/licenses/gpl.html
10 10
 * @platform        WebsiteBaker 2.8.x
......
13 13
 * @filesource		$HeadURL$
14 14
 * @lastmodified    $Date$
15 15
 *
16
*/
16
 */
17 17

  
18
require_once("../../config.php");
18
	require('../../config.php');
19
// Include the configuration file
20
if(!defined('WB_URL') && file_exists(realpath('../../config.php'))) {
21
}
19 22
require_once(WB_PATH."/framework/class.login.php");
20 23

  
21 24
if(defined('SMART_LOGIN') AND SMART_LOGIN == 'enabled') {
......
40 43
$admin = new admin('Start', '', false, false);
41 44

  
42 45
$WarnUrl = str_replace(WB_PATH,WB_URL,$admin->correct_theme_source('warning.html'));
43
// Setup template object, parse vars to it, then parse it
44
$ThemePath = dirname($admin->correct_theme_source('login.htt'));
45 46

  
47
$LoginTpl = 'loginBox.htt';
48
$ThemePath = dirname($admin->correct_theme_source('loginBox.htt'));
49

  
46 50
$thisApp = new Login( array(
47
						'MAX_ATTEMPS' => "3",
48
						'WARNING_URL' => $WarnUrl,
49
						'USERNAME_FIELDNAME' => $username_fieldname,
50
						'PASSWORD_FIELDNAME' => $password_fieldname,
51
						'REMEMBER_ME_OPTION' => SMART_LOGIN,
52
						'MIN_USERNAME_LEN' => "2",
53
						'MIN_PASSWORD_LEN' => "2",
54
						'MAX_USERNAME_LEN' => "30",
55
						'MAX_PASSWORD_LEN' => "30",
56
						'LOGIN_URL' => ADMIN_URL."/login/index.php",
57
						'DEFAULT_URL' => ADMIN_URL."/start/index.php",
58
						'TEMPLATE_DIR' => $ThemePath,
59
						'TEMPLATE_FILE' => "login.htt",
60
						'FRONTEND' => false,
61
						'FORGOTTEN_DETAILS_APP' => ADMIN_URL."/login/forgot/index.php",
62
						'USERS_TABLE' => TABLE_PREFIX."users",
63
						'GROUPS_TABLE' => TABLE_PREFIX."groups",
64
				)
51
					'MAX_ATTEMPS' => "3",
52
					'WARNING_URL' => $WarnUrl,
53
					'INFO_URL' => '##',
54
					'INFO_TEXT' => 'News',
55
					'USERNAME_FIELDNAME' => $username_fieldname,
56
					'PASSWORD_FIELDNAME' => $password_fieldname,
57
					'REMEMBER_ME_OPTION' => SMART_LOGIN,
58
					'MIN_USERNAME_LEN' => "2",
59
					'MIN_PASSWORD_LEN' => "2",
60
					'MAX_USERNAME_LEN' => "30",
61
					'MAX_PASSWORD_LEN' => "30",
62
					'LOGIN_URL' => ADMIN_URL."/login/index.php",
63
					'DEFAULT_URL' => ADMIN_URL."/start/index.php",
64
					'TEMPLATE_DIR' => $ThemePath,
65
					'TEMPLATE_FILE' => $LoginTpl,
66
					'FRONTEND' => false,
67
					'FORGOTTEN_DETAILS_APP' => ADMIN_URL."/login/forgot/index.php",
68
					'USERS_TABLE' => TABLE_PREFIX."users",
69
					'GROUPS_TABLE' => TABLE_PREFIX."groups",
70
			)
65 71
		);
72
//$admin->print_footer();

Also available in: Unified diff