From 1a78cfbd3315897aa84b7a5d6735d54d94a590a1 Mon Sep 17 00:00:00 2001 From: neoraider Date: Sun, 16 Apr 2006 22:14:02 +0000 Subject: /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. --- code/pages.inc.php | 26 -------------------------- 1 file changed, 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); -- cgit v1.2.3