diff options
author | neoraider <devnull@localhost> | 2006-04-13 02:45:02 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-04-13 02:45:02 +0200 |
commit | 415243607829013d91b23b40608507fcd76b307b (patch) | |
tree | 8199fbaacf2d17fbc4c2efe68a2fb46c386086b3 /pages/Users/New.c.xml | |
parent | 0ef2bb0245fedaf18508feabfa980955ba4a238e (diff) | |
download | neon-415243607829013d91b23b40608507fcd76b307b.tar neon-415243607829013d91b23b40608507fcd76b307b.zip |
Seiten-Verwaltung vollkommen ?berarbeitet.
Diffstat (limited to 'pages/Users/New.c.xml')
-rw-r--r-- | pages/Users/New.c.xml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pages/Users/New.c.xml b/pages/Users/New.c.xml new file mode 100644 index 0000000..2356c37 --- /dev/null +++ b/pages/Users/New.c.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<page> + <info> + <name>Users:New</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'); + require_once('code/util.inc.php'); + + + if($_POST['back']) { + header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false)); + exit(); + } + + if(!$_POST['name'] || !isset($_POST['gid']) || !$_POST['password'] || !$_POST['password2']) exit(); + + if($_POST['password'] != $_POST['password2']) exit(); + + $GLOBALS['user']->Add(Unquote($_POST['name']), $_POST['gid'], Unquote($_POST['password'])); + + header('Location: ' . $GLOBALS['links']->GetNeonLink('Users', null, false)); + exit(); + ?> + ]]> + </code> + </data> +</page> |