$hashedPass = md5(postRequestElement('admin_pass1'));
// Kill maybe existing session variables
- destroyAdminSession(FALSE);
+ destroyAdminSession();
// Do registration
$ret = addAdminAccount(postRequestElement('admin_login'), $hashedPass, getWebmaster());
case '404': // Administrator login not found
setPostRequestElement('login', $ret);
$ret = '{%message,ADMIN_ACCOUNT_404=' . postRequestElement('admin_login') . '%}';
- destroyAdminSession();
+ destroyAdminSession(TRUE);
break;
case 'password': // Wrong password
setPostRequestElement('login', $ret);
$ret = '{--WRONG_PASS--} [<a href="{%url=modules.php?module=admin&reset_pass=1%}">{--ADMIN_RESET_PASS--}</a>]';
- destroyAdminSession();
+ destroyAdminSession(TRUE);
break;
default: // Others will be logged
} // END - if
} elseif (isGetRequestElementSet('logout')) {
// Only try to remove cookies
- if (destroyAdminSession()) {
+ if (destroyAdminSession(TRUE)) {
// Load logout template
if (isGetRequestElementSet('register')) {
// Secure input
case '404': // Administrator login not found
setPostRequestElement('login', $ret);
displayMessage('{%message,ADMIN_ACCOUNT_404=' . getCurrentAdminId() . '%}');
- destroyAdminSession();
+ destroyAdminSession(TRUE);
break;
case 'password': // Wrong password
setPostRequestElement('login', $ret);
displayMessage('{--WRONG_PASS--}');
- destroyAdminSession();
+ destroyAdminSession(TRUE);
break;
case 'session': // Invalid admin session
setPostRequestElement('login', $ret);
displayMessage('{--INVALID_ADMIN_SESSION--}');
- destroyAdminSession();
+ destroyAdminSession(TRUE);
break;
default: // Others will be logged