add federate function
This commit is contained in:
parent
369d7f5107
commit
149dc25cdb
|
@ -16,6 +16,14 @@ if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/login') {
|
|||
echo lassospkit_redirect_login('http://localhost/~bdauvergne/spkittest/',$isPassive);
|
||||
exit(0);
|
||||
}
|
||||
if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/federate') {
|
||||
$isPassive = null;
|
||||
if (isset($_GET['passive']) && $_GET['passive'] == 1) {
|
||||
$isPassive = true;
|
||||
}
|
||||
echo lassospkit_redirect_federate('http://localhost/~bdauvergne/spkittest/',$isPassive);
|
||||
exit(0);
|
||||
}
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>';
|
||||
|
||||
function show($a) {
|
||||
|
@ -34,6 +42,7 @@ function show($a) {
|
|||
<?
|
||||
show("$myself/logout");
|
||||
show("$myself/login");
|
||||
show("$myself/federate");
|
||||
show("$myself/login?passive=1");
|
||||
show(lassospkit_defederation_url($myself));
|
||||
show(lassospkit_configure_url());
|
||||
|
|
Reference in New Issue