summaryrefslogtreecommitdiffstats
path: root/pages/Pages/Handle.c.xml
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-18 01:17:05 +0200
committerneoraider <devnull@localhost>2006-04-18 01:17:05 +0200
commite7359ccf2db89b1feec820d1c97583f720ae0d7a (patch)
tree4321a817497f064457c184364a9a2745bf5bd629 /pages/Pages/Handle.c.xml
parent1a78cfbd3315897aa84b7a5d6735d54d94a590a1 (diff)
downloadneon-e7359ccf2db89b1feec820d1c97583f720ae0d7a.tar
neon-e7359ccf2db89b1feec820d1c97583f720ae0d7a.zip
Seiten verschoben.
Diffstat (limited to 'pages/Pages/Handle.c.xml')
-rw-r--r--pages/Pages/Handle.c.xml160
1 files changed, 0 insertions, 160 deletions
diff --git a/pages/Pages/Handle.c.xml b/pages/Pages/Handle.c.xml
deleted file mode 100644
index 734c62d..0000000
--- a/pages/Pages/Handle.c.xml
+++ /dev/null
@@ -1,160 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<page>
- <info>
- <name>Pages:Handle</name>
- <template>phpexec</template>
- <access>0:0</access>
- <type>c</type>
- </info>
- <data>
- <code>
- <![CDATA[
-<?PHP
- require_once('code/pages.inc.php');
- require_once('code/links.inc.php');
- require_once('code/templates.inc.php');
-
- if($_POST['type'] != 'c' && $_POST['type'] != 'n' && $_POST['type'] != 'e')
- exit();
-
- if(isset($_POST['view'])) {
- if($_POST['name']) {
- header('Location: ' . $GLOBALS['links']->GetNeonLink(Unquote($_POST['name']), null, false));
- exit();
- }
- }
- elseif(isset($_POST['new'])) {
- $title = 'Neue Seite';
- ?>
- <h2>Neue Seite</h2>
-
- <form method="post" action="<?PHP echo $GLOBALS['links']->GetNeonLink('Pages:New'); ?>">
- <input type="hidden" name="type" value="<?PHP echo $_POST['type']; ?>" />
- Name: <input type="text" id="pagename" name="name" size="70" /><br />
- Template: <select type="text" class="spaced-top" name="template" size="1" />
- <?PHP
- foreach(array_keys($GLOBALS['templates']) as $key)
- echo '<option>' . $key . '</option>';
- ?>
- </select><br />
- <input type="submit" class="spaced-top" value="Neu" />
- <input type="submit" class="spaced-top" name="back" value="Zurück" />
- </form>
- <?PHP
- }
- elseif(isset($_POST['edit'])) {
- if($_POST['name']) {
- $data = $GLOBALS['pages']->GetEditor(Unquote($_POST['name']), $_POST['type']);
-
- $title = $data['title'];
-
- echo $data['content'];
- }
- }
- elseif(isset($_POST['privs'])) {
- if($_POST['name']) {
- $name = htmlspecialchars(Unquote($_POST['name']));
-
- $title = 'Rechte von \'' . $name . '\' ändern';
-
- echo '<h2>Rechte von \'' . $name . '\' ändern</h2>';
-
- $access = $GLOBALS['pages']->GetAccess(Unquote($_POST['name']), $_POST['type']);
- $groups = $GLOBALS['user']->ListGroups();
-
- array_unshift($groups, array(0, 'Gast'));
-
- echo '<form action="' . $GLOBALS['links']->GetNeonLink('Pages:Privs') . '" method="post">';
-
- echo '<input type="hidden" name="name" value="' . $name . '" />';
- echo '<input type="hidden" name="type" value="' . $_POST['type'] . '" />';
-
- echo '<table>';
-
- foreach($groups as $group) {
- echo '<tr><td>' . htmlspecialchars($group[1]) . '</td><td>';
-
- echo '<select size="1" name="group_' . $group[0] . '">';
-
- echo '<option value="0"';
- if((hexdec($access[0][$group[0]/4]) & (1 << ($group[0]%4))) == 0) echo ' selected="selected"';
- echo '>Kein Zugriff</option>';
-
- echo '<option value="1"';
- if(((hexdec($access[0][$group[0]/4]) & (1 << ($group[0]%4))) != 0)
- && ((hexdec($access[1][$group[0]/4]) & (1 << ($group[0]%4))) == 0))
- echo ' selected="selected"';
- echo '>Nur lesen</option>';
-
- echo '<option value="2"';
- if((hexdec($access[1][$group[0]/4]) & (1 << ($group[0]%4))) != 0) echo ' selected="selected"';
- echo '>Lesen und schreiben</option>';
-
- echo '</select></td></tr>';
- }
-
- echo '</table>';
-
- echo '<input type="submit" class="spaced-top" value="Ändern" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
-
- echo '</form>';
- }
- }
- elseif(isset($_POST['copy'])) {
- if($_POST['name']) {
- $name = htmlspecialchars(Unquote($_POST['name']));
-
- $title = '\'' . $name . '\' kopieren';
-
- echo '<h2>\'' . $name . '\' kopieren</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Copy') . '">';
- echo '<input type="hidden" name="name" value="' . $name . '" />';
- echo '<input type="hidden" name="type" value="' . $_POST['type'] . '" />';
- echo 'Neuer Name: <input type="text" name="newname" value="' . $name . '" size="70" /><br />';
- echo '<input type="submit" class="spaced-top" value="Kopieren" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
- echo '</form>';
- }
- }
- elseif(isset($_POST['rename'])) {
- if($_POST['name']) {
- $name = htmlspecialchars(Unquote($_POST['name']));
-
- $title = '\'' . $name . '\' umbenennen';
-
- echo '<h2>\'' . $name . '\' umbenennen</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Rename') . '">';
- echo '<input type="hidden" name="name" value="' . $name . '" />';
- echo '<input type="hidden" name="type" value="' . $_POST['type'] . '" />';
- echo 'Neuer Name:<br />';
- echo '<input type="text" name="newname" value="' . $name . '" size="70" /><br />';
- echo '<input type="submit" class="spaced-top" value="Umbenennen" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
- echo '</form>';
- }
- }
- elseif(isset($_POST['delete'])) {
- if($_POST['name']) {
- $name = htmlspecialchars(Unquote($_POST['name']));
-
- $title = '\'' . $name . '\' löschen';
-
- echo '<h2>\'' . $name . '\' löschen</h2>';
-
- echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Delete') . '">';
- echo '<input type="hidden" name="name" value="' . $name . '" />';
- echo '<input type="hidden" name="type" value="' . $_POST['type'] . '" />';
- echo 'Wollen Sie die Seite \'' . $name . '\' wirklich löschen?<br />';
- echo '<input type="submit" class="spaced-top" value="Löschen" /> ';
- echo '<input type="submit" class="spaced-top" name="back" value="Zurück" />';
- echo '</form>';
- }
- }
-?>
- ]]>
- </code>
- </data>
-</page>