add support for isPassive
This commit is contained in:
parent
05735adba1
commit
76cddf3964
|
@ -9,7 +9,11 @@ if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/logout') {
|
|||
exit(0);
|
||||
}
|
||||
if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/login') {
|
||||
echo lassospkit_redirect_login('http://localhost/~bdauvergne/spkittest/');
|
||||
$isPassive = null;
|
||||
if (isset($_GET['passive']) && $_GET['passive'] == 1) {
|
||||
$isPassive = true;
|
||||
}
|
||||
echo lassospkit_redirect_login('http://localhost/~bdauvergne/spkittest/',$isPassive);
|
||||
exit(0);
|
||||
}
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>';
|
||||
|
@ -28,12 +32,9 @@ function show($a) {
|
|||
<h1>Points d'accès</h1>
|
||||
<ul>
|
||||
<?
|
||||
show(lassospkit_login_url($myself));
|
||||
show(lassospkit_login_url($myself, array('passive' => TRUE)));
|
||||
show(lassospkit_login_url($myself, array('passive' => TRUE, 'persistent' => FALSE)));
|
||||
show(lassospkit_federate_url($myself));
|
||||
show("$myself/logout");
|
||||
show("$myself/login");
|
||||
show("$myself/login?passive=1");
|
||||
show(lassospkit_defederation_url($myself));
|
||||
show(lassospkit_configure_url());
|
||||
|
||||
|
|
Reference in New Issue