split in two
[plewww.git] / planetlab / common / sulogout.php
diff --git a/planetlab/common/sulogout.php b/planetlab/common/sulogout.php
new file mode 100644 (file)
index 0000000..0524a1f
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+//
+// Logout form
+//
+// Mark Huang <mlhuang@cs.princeton.edu>
+// Copyright (C) 2006 The Trustees of Princeton University
+//
+// $Id$ $
+//
+
+// Get session and API handles
+require_once 'plc_session.php';
+global $plc, $api;
+
+// Print header
+require_once 'plc_drupal.php';
+require_once 'plc_functions.php';
+
+include 'plc_header.php';
+
+// Invalidate session
+if ($plc->person) {
+  $plc->BecomeSelf();
+}
+
+
+plc_redirect(l_persons());
+
+?>