Revision 549
Added by doc almost 18 years ago
| login.php | ||
|---|---|---|
| 53 | 53 |
require_once(WB_PATH.'/framework/class.login.php'); |
| 54 | 54 |
|
| 55 | 55 |
// Create new login app |
| 56 |
$redirect = (isset($_REQUEST['redirect'])) ? $_REQUEST['redirect'] : ''; |
|
| 56 | 57 |
$thisApp = new Login( |
| 57 | 58 |
array( |
| 58 | 59 |
"MAX_ATTEMPS" => "3", |
| ... | ... | |
| 64 | 65 |
"MIN_PASSWORD_LEN" => "2", |
| 65 | 66 |
"MAX_USERNAME_LEN" => "30", |
| 66 | 67 |
"MAX_PASSWORD_LEN" => "30", |
| 67 |
"LOGIN_URL" => WB_URL."/account/login.php?redirect=".$_REQUEST['redirect'],
|
|
| 68 |
"LOGIN_URL" => WB_URL."/account/login".PAGE_EXTENSION .'?redirect=' .$redirect,
|
|
| 68 | 69 |
"DEFAULT_URL" => WB_URL.PAGES_DIRECTORY."/index.php", |
| 69 | 70 |
"TEMPLATE_DIR" => ADMIN_PATH."/login", |
| 70 | 71 |
"TEMPLATE_FILE" => "template.html", |
| ... | ... | |
| 72 | 73 |
"FORGOTTEN_DETAILS_APP" => WB_URL."/account/forgot.php", |
| 73 | 74 |
"USERS_TABLE" => TABLE_PREFIX."users", |
| 74 | 75 |
"GROUPS_TABLE" => TABLE_PREFIX."groups", |
| 75 |
"REDIRECT_URL" => $_REQUEST['redirect']
|
|
| 76 |
"REDIRECT_URL" => $redirect
|
|
| 76 | 77 |
) |
| 77 | 78 |
); |
| 78 | 79 |
|
Also available in: Unified diff
fixed bug in frontend login and multiple groups (in conjunction with error_reporting = E_ALL)