summaryrefslogtreecommitdiff
path: root/web/logout.php
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2004-11-15 09:20:11 +0000
committerPeter Palfrader <peter@palfrader.org>2004-11-15 09:20:11 +0000
commit5e95090defff64bc8cd7a318a73aa930948fb66d (patch)
treed977ded4207e51914d539b0ecd20b8583d37c8ea /web/logout.php
parent6c3e0ba0a82307abf825bf1cde85638464ab1713 (diff)
Initial import
Diffstat (limited to 'web/logout.php')
-rw-r--r--web/logout.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/web/logout.php b/web/logout.php
new file mode 100644
index 0000000..8069a39
--- /dev/null
+++ b/web/logout.php
@@ -0,0 +1,25 @@
+<?
+require_once("../include/Namespace.inc");
+require_once("../include/Tools.inc");
+require_once("../include/Template.inc");
+
+$namespace = new Namespace(
+ array( have_database => 1,
+ have_session => 1,
+ have_user => 1 )
+) or
+ die("Nobody loves me. I don't even have space for a name.");
+
+$namespace->user->do_logout();
+
+$data = array();
+
+$template = new Template('logout.html', $namespace->config->template_path);
+$template->parse($data);
+print $template->output();
+
+$namespace->stop();
+
+# vim:set ts=4:
+# vim:set shiftwidth=4:
+?>