Revision 1529
Added by Dietmar about 13 years ago
index.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category admin |
5 | 5 |
* @package login |
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
6 |
* @author Ryan Djurovich, WebsiteBaker Project |
|
8 | 7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
9 | 8 |
* @link http://www.websitebaker2.org/ |
10 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
... | ... | |
38 | 37 |
$password_fieldname = 'password'; |
39 | 38 |
} |
40 | 39 |
|
40 |
$admin = new admin('Start', '', false, false); |
|
41 |
$ThemeUrl = WB_URL.$admin->correct_theme_source('warning.html'); |
|
42 |
// Setup template object, parse vars to it, then parse it |
|
43 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('login.htt')); |
|
44 |
|
|
41 | 45 |
$thisApp = new Login( array( |
42 | 46 |
'MAX_ATTEMPS' => "3", |
43 |
'WARNING_URL' => THEME_URL."/templates/warning.html",
|
|
47 |
'WARNING_URL' => $ThemeUrl.'/warning.html',
|
|
44 | 48 |
'USERNAME_FIELDNAME' => $username_fieldname, |
45 | 49 |
'PASSWORD_FIELDNAME' => $password_fieldname, |
46 | 50 |
'REMEMBER_ME_OPTION' => SMART_LOGIN, |
... | ... | |
50 | 54 |
'MAX_PASSWORD_LEN' => "30", |
51 | 55 |
'LOGIN_URL' => ADMIN_URL."/login/index.php", |
52 | 56 |
'DEFAULT_URL' => ADMIN_URL."/start/index.php", |
53 |
'TEMPLATE_DIR' => THEME_PATH."/templates",
|
|
57 |
'TEMPLATE_DIR' => $ThemePath,
|
|
54 | 58 |
'TEMPLATE_FILE' => "login.htt", |
55 | 59 |
'FRONTEND' => false, |
56 | 60 |
'FORGOTTEN_DETAILS_APP' => ADMIN_URL."/login/forgot/index.php", |
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)