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/Pages/Rename.c.xml | |
parent | 0ef2bb0245fedaf18508feabfa980955ba4a238e (diff) | |
download | neon-415243607829013d91b23b40608507fcd76b307b.tar neon-415243607829013d91b23b40608507fcd76b307b.zip |
Seiten-Verwaltung vollkommen ?berarbeitet.
Diffstat (limited to 'pages/Pages/Rename.c.xml')
-rw-r--r-- | pages/Pages/Rename.c.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pages/Pages/Rename.c.xml b/pages/Pages/Rename.c.xml new file mode 100644 index 0000000..be485e2 --- /dev/null +++ b/pages/Pages/Rename.c.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<page> + <info> + <name>Pages:Rename</name> + <template>phpexec</template> + <access>00</access> + <type>c</type> + </info> + <data> + <code> + <![CDATA[ +<?PHP + require_once('code/pages.inc.php'); + require_once('code/links.inc.php'); + require_once('code/util.inc.php'); + + + if($_POST['type'] != 'c' && $_POST['type'] != 'n' && $_POST['type'] != 'e') + exit(); + + if($_POST['back']) { + header('Location: ' . $GLOBALS['links']->GetNeonLink('Pages', 'type=' . $_POST['type'], false)); + exit(); + } + + if(!$_POST['name'] || !$_POST['newname']) exit(); + + $GLOBALS['pages']->Rename(Unquote($_POST['name']), $_POST['type'], Unquote($_POST['newname'])); + + header('Location: ' . $GLOBALS['links']->GetNeonLink('Pages', 'type=' . $_POST['type'], false)); + exit(); +?> + ]]> + </code> + </data> +</page> |