summaryrefslogtreecommitdiffstats
path: root/php/Attic/examples/sample-idp/logout.php
diff options
context:
space:
mode:
authorChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-16 15:57:55 +0000
committerChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-16 15:57:55 +0000
commit40940b95aaefd87f9af96439669cc6cb184d69ef (patch)
treef0d65eaa1369aeaca88f5774f2ca2cba4932ca27 /php/Attic/examples/sample-idp/logout.php
parent7ea2275ca076a880c27448cdbdfe09ffa9f15db8 (diff)
downloadlasso-40940b95aaefd87f9af96439669cc6cb184d69ef.tar.gz
lasso-40940b95aaefd87f9af96439669cc6cb184d69ef.tar.xz
lasso-40940b95aaefd87f9af96439669cc6cb184d69ef.zip
New logging system with a web interface.
Diffstat (limited to 'php/Attic/examples/sample-idp/logout.php')
-rw-r--r--php/Attic/examples/sample-idp/logout.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/php/Attic/examples/sample-idp/logout.php b/php/Attic/examples/sample-idp/logout.php
index 2114757f..8b5681b3 100644
--- a/php/Attic/examples/sample-idp/logout.php
+++ b/php/Attic/examples/sample-idp/logout.php
@@ -22,6 +22,20 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+ require_once 'Log.php';
+ require_once 'DB.php';
+
+ $config = unserialize(file_get_contents('config.inc'));
+
+ // connect to the data base
+ $db = &DB::connect($config['dsn']);
+ if (DB::isError($db))
+ die("Could not connect to the database");
+
+ // create logger
+ $conf['db'] = $db;
+ $logger = &Log::factory($config['log_handler'], 'log', $_SERVER['PHP_SELF'], $conf);
+
session_start();
# Destroy The PHP Session