summaryrefslogtreecommitdiffstats
path: root/pages/Logout.c.xml
diff options
context:
space:
mode:
Diffstat (limited to 'pages/Logout.c.xml')
-rw-r--r--pages/Logout.c.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/pages/Logout.c.xml b/pages/Logout.c.xml
new file mode 100644
index 0000000..4fcb5b2
--- /dev/null
+++ b/pages/Logout.c.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<page>
+ <info>
+ <name>Logout</name>
+ <template>phpexec</template>
+ <access>08</access>
+ <type>c</type>
+ </info>
+ <data>
+ <code>
+ <![CDATA[
+<?PHP
+ require_once('config/config.inc.php');
+
+ require_once('code/user.inc.php');
+ require_once('code/links.inc.php');
+
+ $GLOBALS['user']->Logout();
+
+ header('Location: ' . $GLOBALS['links']->GetNeonLink($GLOBALS['config']['home'], null, false));
+
+ exit();
+?>
+ ]]>
+ </code>
+ </data>
+</page>