diff options
author | neoraider <devnull@localhost> | 2006-04-18 01:17:05 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-04-18 01:17:05 +0200 |
commit | e7359ccf2db89b1feec820d1c97583f720ae0d7a (patch) | |
tree | 4321a817497f064457c184364a9a2745bf5bd629 /pages/content/Users:Delete.xml | |
parent | 1a78cfbd3315897aa84b7a5d6735d54d94a590a1 (diff) | |
download | neon-e7359ccf2db89b1feec820d1c97583f720ae0d7a.tar neon-e7359ccf2db89b1feec820d1c97583f720ae0d7a.zip |
Seiten verschoben.
Diffstat (limited to 'pages/content/Users:Delete.xml')
-rw-r--r-- | pages/content/Users:Delete.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pages/content/Users:Delete.xml b/pages/content/Users:Delete.xml new file mode 100644 index 0000000..8c32935 --- /dev/null +++ b/pages/content/Users:Delete.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<page> + <info> + <name>Users:Delete</name> + <template>phpexec</template> + <access>0:0</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> |