From acafd6b03f4b92587f3e4ec0af0c46cb3d037ba6 Mon Sep 17 00:00:00 2001 From: Christophe Nowicki Date: Tue, 25 Jan 2005 15:31:39 +0000 Subject: Remove php samples from the lasso repository I'm still working on it. I will release an independant Pear package for Lasso 0.6. The pear package repository is here: https://meuh.dyndns.org/cgi-bin/viewcvs.cgi/lasso_pear/ --- php/Attic/examples/sample-idp/view_session.php | 121 ------------------------- 1 file changed, 121 deletions(-) delete mode 100644 php/Attic/examples/sample-idp/view_session.php (limited to 'php/Attic/examples/sample-idp/view_session.php') diff --git a/php/Attic/examples/sample-idp/view_session.php b/php/Attic/examples/sample-idp/view_session.php deleted file mode 100644 index 0c9fa429..00000000 --- a/php/Attic/examples/sample-idp/view_session.php +++ /dev/null @@ -1,121 +0,0 @@ - - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - - require_once 'DB.php'; - - if (!file_exists('config.inc')) - { -?> -

Service Provider Configuration file is not available
-Please run the setup script :
-Lasso Service Provider Setup
-You can get more informations about Lasso at
-http://lasso.entrouvert.org/

-getMessage()); - - $query = "SELECT nameidentifiers.user_id,users.username,ip "; - $query .= "FROM nameidentifiers,sso_sessions,users "; - $query .= "WHERE sso_sessions.name_identifier = nameidentifiers.name_identifier "; - $query .= "AND nameidentifiers.user_id = users.user_id"; - - $res =& $db->query($query); - if (DB::isError($res)) - die($res->getMessage()); - - $numRows = $res->numRows(); -?> - - - -Lasso Service Provider Example : View Online Users - - - - -

- - - - - - - - - - - - -numCols(); - $tableinfo = $db->tableInfo($res); - - while($row = $res->fetchRow()) - { - echo ""; - for ($i = 0; $i < $num_col; $i++) - { - echo ""; - } - echo ""; - } - - } -?> - - - - - - -
Online Users
User IDUser NameAddress IPStartedDuration
"; - switch ($tableinfo[$i]['name']) - { - case "ip": - echo long2ip($row[$i]); - break; - default: - echo $row[$i]; - } - echo "
 
-

- -
-

Index -

-
-

Copyright © 2004, 2005 Entr'ouvert

- - - -- cgit