* * 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 */ if(!extension_loaded('lasso')) { $ret = @dl('lasso.' . PHP_SHLIB_SUFFIX); if ($ret == FALSE) { print "

The Lasso Extension is not available
"; print "Please check your PHP extensions
"; print "You can get more informations about Lasso at
"; print "http://lasso.entrouvert.org/

"; exit(); } } include 'config.php.inc'; require_once 'DB.php'; session_start($SID); lasso_init(); ?> Lasso Service Provider Example

Service Provider Administration
Setup
Users Management Federation Administration Serice Provider Fonctionnality Login! Logout!

User is not logged in!"; } else { ?> getMessage()); $query = "SELECT * FROM users WHERE user_id='". $_SESSION["user_id"] ."'"; $res =& $db->query($query); if (DB::isError($res)) print $res->getMessage(). "\n"; list($user_id, $identity_dump, $first_name, $last_name, $created, $last_login) = $res->fetchRow(); ?> disconnect(); } ?>
Status
User is logged in!
Name Identifier:
UserID:
Last Name:
First Name:
PHP Session ID:
Account Created:
Last Login:

Lasso Version :


Copyright © 2004 Entr'ouvert