summaryrefslogtreecommitdiffstats
path: root/pages/Users/Delete.c.xml
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-13 02:45:02 +0200
committerneoraider <devnull@localhost>2006-04-13 02:45:02 +0200
commit415243607829013d91b23b40608507fcd76b307b (patch)
tree8199fbaacf2d17fbc4c2efe68a2fb46c386086b3 /pages/Users/Delete.c.xml
parent0ef2bb0245fedaf18508feabfa980955ba4a238e (diff)
downloadneon-415243607829013d91b23b40608507fcd76b307b.tar
neon-415243607829013d91b23b40608507fcd76b307b.zip
Seiten-Verwaltung vollkommen ?berarbeitet.
Diffstat (limited to 'pages/Users/Delete.c.xml')
-rw-r--r--pages/Users/Delete.c.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/pages/Users/Delete.c.xml b/pages/Users/Delete.c.xml
new file mode 100644
index 0000000..c4d9594
--- /dev/null
+++ b/pages/Users/Delete.c.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<page>
+ <info>
+ <name>Users:Delete</name>
+ <template>phpexec</template>
+ <access>00</access>
+ <type>c</type>
+ </info>
+ <data>
+ <code>
+ <![CDATA[
+ <?PHP
+ require_once('code/user.inc.php');
+ require_once('code/links.inc.php');
+
+
+ if($_POST['back']) {
+ header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
+ exit();
+ }
+
+ if(!$_POST['id']) exit();
+
+ $GLOBALS['user']->Delete($_POST['id']);
+
+ header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false));
+ exit();
+ ?>
+ ]]>
+ </code>
+ </data>
+</page>