From 149dc25cdb73c441de5b0b1e8149fb8674a0c327 Mon Sep 17 00:00:00 2001 From: Date: Tue, 6 May 2008 14:46:47 +0200 Subject: [PATCH] add federate function --- exemples/index.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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) {