diff options
author | neoraider <devnull@localhost> | 2006-12-14 01:06:02 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-12-14 01:06:02 +0100 |
commit | 543336aef16562369c01992817f58e17144c9cad (patch) | |
tree | d49cd8549a836c740df7096ddcf7788ed7920c37 /pages/content/Pages:Handle.xml | |
parent | 93e1133ee88b03e7cae7318cb19761e698e57b86 (diff) | |
download | neon-543336aef16562369c01992817f58e17144c9cad.tar neon-543336aef16562369c01992817f58e17144c9cad.zip |
Base-Type durch Subst-Erweiterungen unnoetig gemacht; Type-Konzept entfernt.
Diffstat (limited to 'pages/content/Pages:Handle.xml')
-rw-r--r-- | pages/content/Pages:Handle.xml | 158 |
1 files changed, 0 insertions, 158 deletions
diff --git a/pages/content/Pages:Handle.xml b/pages/content/Pages:Handle.xml deleted file mode 100644 index 9abc7d9..0000000 --- a/pages/content/Pages:Handle.xml +++ /dev/null @@ -1,158 +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 - Uses('pages', 'links', 'templates'); - - - if($_POST['type'] != 'c' && $_POST['type'] != 'b') - exit(); - - if(isset($_POST['view'])) { - if($_POST['name']) { - header('Location: ' . $GLOBALS['links']->GetNeonLink(Unquote($_POST['name']), null, false)); - exit(); - } - } - elseif(isset($_POST['new'])) { - $title = '{{New page}}'; - ?> - <h2>{{New page}}</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="{{New}}" /> - <input type="submit" class="spaced-top" name="back" value="{{Back}}" /> - </form> - <?PHP - } - elseif(isset($_POST['edit'])) { - if($_POST['name']) { - $data = $GLOBALS['pages']->GetEditor(Unquote($_POST['name']), $_POST['type'], $GLOBALS['links']->GetNeonLink('Pages', null, false)); - - $title = $data['title']; - - echo $data['content']; - } - } - elseif(isset($_POST['privs'])) { - if($_POST['name']) { - $name = htmlspecialchars(Unquote($_POST['name'])); - - $title = '{{Change access to \'' . $name . '\'}}'; - - echo '<h2>{{Change access to \'' . $name . '\'}}</h2>'; - - $access = $GLOBALS['pages']->GetAccess(Unquote($_POST['name']), $_POST['type']); - $groups = $GLOBALS['user']->ListGroups(); - - array_unshift($groups, array(0, '{{Guest}}')); - - 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 '>{{No access}}</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 '>{{Read only}}</option>'; - - echo '<option value="2"'; - if((hexdec($access[1][$group[0]/4]) & (1 << ($group[0]%4))) != 0) echo ' selected="selected"'; - echo '>{{Read and write}}</option>'; - - echo '</select></td></tr>'; - } - - echo '</table>'; - - echo '<input type="submit" class="spaced-top" value="{{Change}}" /> '; - echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />'; - - echo '</form>'; - } - } - elseif(isset($_POST['copy'])) { - if($_POST['name']) { - $name = htmlspecialchars(Unquote($_POST['name'])); - - $title = '{{Copy \'' . $name . '\'}}'; - - echo '<h2>{{Copy \'' . $name . '\'}}</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 '{{New name}}: <input type="text" name="newname" value="' . $name . '" size="70" /><br />'; - echo '<input type="submit" class="spaced-top" value="{{Copy}}" /> '; - echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />'; - echo '</form>'; - } - } - elseif(isset($_POST['rename'])) { - if($_POST['name']) { - $name = htmlspecialchars(Unquote($_POST['name'])); - - $title = '{{Rename \'' . $name . '\'}}'; - - echo '<h2>{{Rename \'' . $name . '\'}}</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 '{{New name}}: <input type="text" name="newname" value="' . $name . '" size="70" /><br />'; - echo '<input type="submit" class="spaced-top" value="{{Rename}}" /> '; - echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />'; - echo '</form>'; - } - } - elseif(isset($_POST['delete'])) { - if($_POST['name']) { - $name = htmlspecialchars(Unquote($_POST['name'])); - - $title = '{{Delete \'' . $name . '\'}}'; - - echo '<h2>{{Delete \'' . $name . '\'}}</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 '{{Do you really want to delete the page \'' . $name . '\'?}}<br />'; - echo '<input type="submit" class="spaced-top" value="{{Delete}}" /> '; - echo '<input type="submit" class="spaced-top" name="back" value="{{Back}}" />'; - echo '</form>'; - } - } -?> - ]]> - </code> - </data> -</page> |