From 98e01e89b9e0c6b3fb3348ecaa4c9cc27a81dbac Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 16 Mar 2010 15:00:51 +0000 Subject: [PATCH] Updated class sudo git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16710 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../sudo/admin/sudo/class_sudoGeneric.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc index 8cd30842a..794542239 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc @@ -277,7 +277,7 @@ class sudo extends plugin foreach($_POST as $name => $value){ if(preg_match("/^neg_/",$name)){ $attr = preg_replace("/^neg_([^_]*)_.*$/","\\1",$name); - $value= preg_replace("/^neg_[^_]*_([0-9]*)_.*$/","\\1",$name); + $value= preg_replace("/^neg_[^_]*_([0-9]*)$/","\\1",$name); if($this->acl_is_writeable($attr)){ $attrs = $this->$attr; @@ -300,8 +300,8 @@ class sudo extends plugin *********************/ foreach($_POST as $name => $value){ if(preg_match("/^del_/",$name)){ - $attr = preg_replace("/^del_([^_]*)_.*$/","\\1",$name); - $value= preg_replace("/^del_[^_]*_([0-9]*)_.*$/","\\1",$name); + $attr = preg_replace("/^del_([^_]*).*$/","\\1",$name); + $value= preg_replace("/^del_[^_]*_([0-9]*)$/","\\1",$name); if($this->acl_is_writeable($attr)){ $attrs = $this->$attr; if(isset( $attrs[$value])){ @@ -395,9 +395,9 @@ class sudo extends plugin /* Fill divlists */ - $neg_img= "!"; - $option = ""; - $option.= ""; + $neg_img= image('plugins/sudo/images/negate.png','','!'); + $option = image('plugins/sudo/images/negate.png','neg_%ATTR%_%KEY%'); + $option.= image('images/lists/trash.png', 'del_%ATTR%_%KEY%'); foreach(array("sudoCommand","sudoHost","sudoRunAs") as $attr){ if($this->acl_is_readable($attr)){ foreach($this->$attr as $key => $entry){ @@ -418,8 +418,8 @@ class sudo extends plugin } foreach(array("sudoUser") as $attr){ - $img1 = ""._("User").""; - $img2 = ""._("Group").""; + $img1 = image('plugins/users/images/select_user.png','',_("User")); + $img2 = image('plugins/groups/images/select_group.png','',_("Group")); if($this->acl_is_readable($attr)){ foreach($this->$attr as $key => $entry){ $neg = ""; -- 2.30.2