18 include_once (
'WHAT/Lib.Common.php');
19 include_once (
'WHAT/Class.AuthenticatorManager.php');
20 include_once (
'WHAT/Class.htmlAuthenticator.php');
21 include_once (
'WHAT/Class.User.php');
22 include_once (
'WHAT/Class.Log.php');
24 $redirect_uri = GetHttpVars(
'redirect_uri',
'');
26 $status = AuthenticatorManager::checkAccess();
35 $action->session->close();
37 Redirect($action,
'AUTHENT',
'ERRNO_BUG_639');
44 'auth_user' => $_POST[
'auth_user'],
45 'redirect_uri' => $redirect_uri
50 if (($redirect_uri ==
"") || (preg_match(
'/app=AUTHENT/', $redirect_uri))) {
52 }
else if ($redirect_uri[0] !=
'/') {
63 include_once (
'CORE/lang.php');
65 if ($core_lang !=
"" && array_key_exists($core_lang,
$lang)) {
69 $redirect_uri = preg_replace(
'!//+!',
'/', $redirect_uri);
70 $redirect_uri = preg_replace(
'!&&+!',
'&', $redirect_uri);
72 header(
'Location: ' . $redirect_uri);
static secureLog($status="", $additionalMessage="", $provider="", $clientIp="", $account="", $userAgent="")
Redirect($action, $appname, $actionname, $otherurl="", $httpparamredirect=false)
checkauth(Action &$action)
getHttpVars($name, $def="", $scope="all")