|
|
@ -28,7 +28,7 @@ class mailu extends rcube_plugin
|
|
|
|
header('HTTP/1.0 403 Forbidden');
|
|
|
|
header('HTTP/1.0 403 Forbidden');
|
|
|
|
print('mailu sso failure');
|
|
|
|
print('mailu sso failure');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
header('Location: sso.php');
|
|
|
|
header('Location: sso.php', 302);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exit();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -47,19 +47,19 @@ class mailu extends rcube_plugin
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->load_config();
|
|
|
|
$this->load_config();
|
|
|
|
$sso_logout_url = rcmail::get_instance()->config->get('sso_logout_url');
|
|
|
|
$sso_logout_url = rcmail::get_instance()->config->get('sso_logout_url');
|
|
|
|
header('Location: ' . $sso_logout_url, true);
|
|
|
|
header('Location: ' . $sso_logout_url, true, 302);
|
|
|
|
exit();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function login($args)
|
|
|
|
function login($args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
header('Location: index.php');
|
|
|
|
header('Location: index.php', 302);
|
|
|
|
exit();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function login_failed($args)
|
|
|
|
function login_failed($args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
header('Location: sso.php');
|
|
|
|
header('Location: sso.php', 302);
|
|
|
|
exit();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|