diff options
author | neoraider <devnull@localhost> | 2006-04-17 00:14:02 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-04-17 00:14:02 +0200 |
commit | 1a78cfbd3315897aa84b7a5d6735d54d94a590a1 (patch) | |
tree | 639370f6e70098015c179dae852526ff578307b3 /code | |
parent | bde164393aa3b8c59ee15c0ae80c4268b236fb47 (diff) | |
download | neon-1a78cfbd3315897aa84b7a5d6735d54d94a590a1.tar neon-1a78cfbd3315897aa84b7a5d6735d54d94a590a1.zip |
/code/pages.inc.php: SetAccess() ?berpr?ft jetzt nicht mehr, ob sich die Rechte ge?ndert haben, da das durch die neue Rechteverwaltung nicht mehr n?tig ist.
Diffstat (limited to 'code')
-rw-r--r-- | code/pages.inc.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/code/pages.inc.php b/code/pages.inc.php index c696836..129167a 100644 --- a/code/pages.inc.php +++ b/code/pages.inc.php @@ -262,32 +262,6 @@ return true; } - $pagedata = $this->GetPageData($page, $type); - - $changed = false; - - if(strlen($access[0]) > strlen($pagedata['access'][0])) { - if(!eregi('^' . $pagedata['access'][0] . '0+$', $access[0])) $changed = true; - } - elseif(strlen($access[0]) < strlen($pagedata['access'][0])) { - if(!eregi('^' . $access[0] . '0+$', $pagedata['access'][0])) $changed = true; - } - else { - if(strcasecmp($access[0], $pagedata['access'][0]) != 0) $changed = true; - } - - if(!$changed) { - if(strlen($access[1]) > strlen($pagedata['access'][1])) { - if(eregi('^' . $pagedata['access'][1] . '0+$', $access[1])) return true; - } - elseif(strlen($access[1]) < strlen($pagedata['access'][1])) { - if(eregi('^' . $access[1] . '0+$', $pagedata['access'][1])) return true; - } - else { - if(strcasecmp($access[1], $pagedata['access'][1]) == 0) return true; - } - } - $GLOBALS['db']->Execute('INSERT INTO privs (name, type, readaccess, writeaccess) VALUES (?, ?, ?, ?)', array($page, $type, $access[0], $access[1])); return ($GLOBALS['db']->Affected_Rows() > 0); |