summaryrefslogtreecommitdiffstats
path: root/pages/Privileges.c.xml
diff options
context:
space:
mode:
Diffstat (limited to 'pages/Privileges.c.xml')
-rw-r--r--pages/Privileges.c.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/pages/Privileges.c.xml b/pages/Privileges.c.xml
index 7374abb..dd263ac 100644
--- a/pages/Privileges.c.xml
+++ b/pages/Privileges.c.xml
@@ -3,7 +3,7 @@
<info>
<name>Privileges</name>
<template>phpexec</template>
- <access>00</access>
+ <access>0</access>
<type>c</type>
</info>
<data>
@@ -59,16 +59,18 @@
foreach($pages as $page) {
if($page[strlen($page)-1] != $type) continue;
- $pagedata = $GLOBALS['pages']->GetPageData(substr($page, 0, -2), $type);
+ $page = substr($page, 0, -2);
+
+ $access = $GLOBALS['pages']->GetAccess($page, $type);
echo '<tr class="line' . ($linex ? '1' : '2') . '">';
$linex = !$linex;
- echo '<td class="page">' . $pagedata['name'] . '</td>';
+ echo '<td class="page">' . $page . '</td>';
foreach($groups as $group) {
- echo '<td><input type="checkbox" name="' . $pagedata['name'] . ':' . $group[0] . '" value="true" ';
- if((hexdec(substr($pagedata['access'], ($group[0]/8)*2, 2)) & (1 << ($group[0]%8))) != 0) echo 'checked="checked" ';
+ echo '<td><input type="checkbox" name="' . $page . ':' . $group[0] . '" value="true" ';
+ if((hexdec($access[$group[0]/4]) & (1 << ($group[0]%4))) != 0) echo 'checked="checked" ';
echo '/></td>';
}