From 1db82e571dd29835ee669472de1a646314e12aa9 Mon Sep 17 00:00:00 2001 From: Christophe Nowicki Date: Fri, 17 Sep 2004 16:02:24 +0000 Subject: log viewer for the Service Provider and the Identity Provider added logger for in many files updated idp1 metadata, added .php extension added session viewer for the sp (you will be able to view online users) --- php/Attic/examples/sample-sp/view_session.php | 88 +++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 php/Attic/examples/sample-sp/view_session.php (limited to 'php/Attic/examples/sample-sp/view_session.php') diff --git a/php/Attic/examples/sample-sp/view_session.php b/php/Attic/examples/sample-sp/view_session.php new file mode 100644 index 00000000..3a8252b3 --- /dev/null +++ b/php/Attic/examples/sample-sp/view_session.php @@ -0,0 +1,88 @@ + + * + * 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 * FROM sessions"; + + $res =& $db->query($query); + if (DB::isError($res)) + die($res->getMessage()); + + $numRows = $res->numRows(); +?> + + + +Lasso Service Provider Example : View Online Users + + + + +

+ + + + + + + + + + + + + + + +
Online Users
 
 
+

+ +
+

Index +

+
+

Copyright © 2004 Entr'ouvert

+ + + -- cgit