add federate function

This commit is contained in:
<bdauvergne@entrouvert.com> 1210078007 +0200 0001-01-01 00:00:00 +00:00
parent 369d7f5107
commit 149dc25cdb
1 changed files with 9 additions and 0 deletions

View File

@ -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());