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