fix redirect path
This commit is contained in:
parent
ecf2644412
commit
e62aeea51c
|
@ -5,7 +5,7 @@ require_once('spkitlasso/lassospkit_utils.inc.php');
|
|||
|
||||
if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/logout') {
|
||||
lassospkit_soap_logout();
|
||||
header('Location: ../exemple1.php');
|
||||
header('Location: ' . $_SERVER['SCRIPT_NAME']);
|
||||
exit(0);
|
||||
}
|
||||
if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/login') {
|
||||
|
@ -15,7 +15,7 @@ if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/login') {
|
|||
}
|
||||
# Very special
|
||||
lassospkit_set_userid(LassoSPKitUtilsSession::getSingleton()->id);
|
||||
lassospkit_redirect_login('../exemple1.php',$isPassive);
|
||||
lassospkit_redirect_login('' . $_SERVER['SCRIPT_NAME'],$isPassive);
|
||||
exit(0);
|
||||
}
|
||||
if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/federate') {
|
||||
|
@ -24,12 +24,12 @@ if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/federate') {
|
|||
$isPassive = true;
|
||||
}
|
||||
lassospkit_set_userid(LassoSPKitUtilsSession::getSingleton()->id);
|
||||
lassospkit_redirect_federate('../exemple1.php',$isPassive);
|
||||
lassospkit_redirect_federate('' . $_SERVER['SCRIPT_NAME'],$isPassive);
|
||||
exit(0);
|
||||
}
|
||||
if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/defederate') {
|
||||
lassospkit_soap_defederate();
|
||||
header('Location: ../exemple1.php');
|
||||
header('Location: ' . $_SERVER['SCRIPT_NAME']);
|
||||
exit(0);
|
||||
}
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>';
|
||||
|
|
Reference in New Issue