checkCsrf()) { if ($userlib->confirm_email($_REQUEST['user'], $_REQUEST['pass'])) { if (empty($user)) { $_SESSION["$user_cookie_site"] = $user = $_REQUEST['user']; } $msg = tr('User %0 validated by the admin', htmlspecialchars($_REQUEST['user'])); Feedback::success($msg); $redirect = ''; if (! empty($_SERVER['HTTP_REFERER'])) { $referer = parse_url($_SERVER['HTTP_REFERER']); if (! empty($referer['path'])) { $redirect = isset($referer['query']) ? $referer['path'] . '?' . $referer['query'] : $referer['path']; } } if (empty($redirect)) { $redirect = 'tiki-information.php?msg=' . urlencode($msg); } $access->redirect($redirect); die; } } Feedback::errorPage(tr('Problem. Try to log in again to receive new confirmation instructions.'));