summaryrefslogtreecommitdiffstats
path: root/pages/content/Pages:Privs.xml
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-12-14 01:06:02 +0100
committerneoraider <devnull@localhost>2006-12-14 01:06:02 +0100
commit543336aef16562369c01992817f58e17144c9cad (patch)
treed49cd8549a836c740df7096ddcf7788ed7920c37 /pages/content/Pages:Privs.xml
parent93e1133ee88b03e7cae7318cb19761e698e57b86 (diff)
downloadneon-543336aef16562369c01992817f58e17144c9cad.tar
neon-543336aef16562369c01992817f58e17144c9cad.zip
Base-Type durch Subst-Erweiterungen unnoetig gemacht; Type-Konzept entfernt.
Diffstat (limited to 'pages/content/Pages:Privs.xml')
-rw-r--r--pages/content/Pages:Privs.xml60
1 files changed, 0 insertions, 60 deletions
diff --git a/pages/content/Pages:Privs.xml b/pages/content/Pages:Privs.xml
deleted file mode 100644
index 318e7a2..0000000
--- a/pages/content/Pages:Privs.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<page>
- <info>
- <name>Pages:Privs</name>
- <template>phpexec</template>
- <access>0:0</access>
- <type>c</type>
- </info>
- <data>
- <code>
- <![CDATA[
-<?PHP
- Uses('pages', 'links', 'util');
-
-
- if($_POST['type'] != 'c' && $_POST['type'] != 'b')
- exit();
-
- if($_POST['back']) {
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Pages', null, false));
- exit();
- }
-
- if(!$_POST['name']) exit();
-
- $groups = $GLOBALS['user']->ListGroups();
- array_unshift($groups, array(0));
-
- $group_max = $groups[count($groups)-1][0];
-
- $readaccess = implode('', array_fill(0, $group_max/4 + 1, '0'));
- $writeaccess = $readaccess;
-
- foreach($groups as $group) {
- if(!isset($_POST['group_' . $group[0]])) exit();
-
- switch($_POST['group_' . $group[0]]) {
- case 0:
- break;
- case 1:
- $readaccess[$group[0]/4] = dechex(hexdec($readaccess[$group[0]/4]) | (1 << ($group[0]%4)));
- break;
- case 2:
- $readaccess[$group[0]/4] = dechex(hexdec($readaccess[$group[0]/4]) | (1 << ($group[0]%4)));
- $writeaccess[$group[0]/4] = dechex(hexdec($writeaccess[$group[0]/4]) | (1 << ($group[0]%4)));
- break;
- default:
- exit();
- }
- }
-
- $GLOBALS['pages']->SetAccess(Unquote($_POST['name']), $_POST['type'], array($readaccess, $writeaccess));
-
- header('Location: ' . $GLOBALS['links']->GetNeonLink('Pages', null, false));
- exit();
-?>
- ]]>
- </code>
- </data>
-</page>