diff --git a/exemples/index.php b/exemples/index.php index 2750c39..259d469 100755 --- a/exemples/index.php +++ b/exemples/index.php @@ -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 ''; function show($a) { @@ -34,6 +42,7 @@ function show($a) {