From: hickert Date: Fri, 19 Mar 2010 15:05:06 +0000 (+0000) Subject: Updated apache service X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f51e9d6ddfa0ca14b48870be7b0bb607b5939fa3;p=gosa.git Updated apache service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16959 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/admin/systems/services/mail/class_goMailServer.inc b/gosa-plugins/mail/admin/systems/services/mail/class_goMailServer.inc index 45dcee06c..c1f2e1b43 100644 --- a/gosa-plugins/mail/admin/systems/services/mail/class_goMailServer.inc +++ b/gosa-plugins/mail/admin/systems/services/mail/class_goMailServer.inc @@ -220,9 +220,8 @@ class goMailServer extends goService{ $s_entry = preg_replace("/_[xy]$/","",$s_entry); } } - - if(preg_match("/^TranslationUp_/",$name) && $once && ($this->acl_is_writeablei("postfixTransportTableACL"))){ + if(preg_match("/^TranslationUp_/",$name) && $once && ($this->acl_is_writeable("postfixTransportTableACL"))){ $once = false; $key = preg_replace("/^TranslationUp_/","",$name); $key = preg_replace("/_[xy]$/","",$key); @@ -368,20 +367,11 @@ class goMailServer extends goService{ $divTranslation->SetHeight(90); foreach($this->postfixTransportTable as $key => $entry){ $img = ""; - - if($key != 0 && $this->acl_is_writeable("postfixTransportTable")){ - $img.= " "; - }else{ - $img.= ""; - } - if(($key+1) < count($this->postfixTransportTable) && $this->acl_is_writeable("postfixTransportTable")){ - $img.= " "; - }else{ - $img.= ""; - } + $img.= image('images/lists/sort-up.png','TranslationUp_'.$key); + $img.= image('images/lists/sort-down.png','TranslationDown_'.$key); if($this->acl_is_writeable("postfixTransportTable")){ - $img.= " "; + $img.= image('images/lists/trash.png','TranslationDel_'.$key); } $field1 = array("string"=> $entry['src']); $field2 = array("string"=> $entry['dst']); @@ -397,20 +387,11 @@ class goMailServer extends goService{ $DivSenderRestrict->SetHeight(90); foreach($this->postfixSenderRestrictions as $key => $entry){ $img =""; - - if($key != 0 && $this->acl_is_writeable("postfixSenderRestrictions")){ - $img.= " "; - }else{ - $img.= ""; - } - if(($key+1) < count($this->postfixSenderRestrictions) && $this->acl_is_writeable("postfixSenderRestrictions")){ - $img.= " "; - }else{ - $img.= ""; - } + $img.= image('images/lists/sort-up.png','SenderRestrictUp_'.$key); + $img.= image('images/lists/sort-down.png','SenderRestrictDown_'.$key); if($this->acl_is_writeable("postfixSenderRestrictions")){ - $img.= " "; + $img.= image('images/lists/trash.png','SenderRestrictDel_'.$key); } $field1 = array("string"=> $entry['src']); @@ -428,19 +409,11 @@ class goMailServer extends goService{ foreach($this->postfixRecipientRestrictions as $key => $entry){ $img = ""; - if($key != 0 && $this->acl_is_writeable("postfixRecipientRestrictions")){ - $img.= " "; - }else{ - $img.= ""; - } - if(($key+1) < count($this->postfixRecipientRestrictions) && $this->acl_is_writeable("postfixRecipientRestrictions")){ - $img.= " "; - }else{ - $img.= ""; - } + $img.= image('images/lists/sort-up.png','RecipientRestrictUp_'.$key); + $img.= image('images/lists/sort-down.png','RecipientRestrictDown_'.$key); if($this->acl_is_writeable("postfixRecipientRestrictions")){ - $img.= " "; + $img.= image('images/lists/trash.png','RecipientRestrictDel_'.$key); } $field1 = array("string"=> $entry['src']); $field2 = array("string"=> $entry['dst']); diff --git a/gosa-plugins/mail/admin/systems/services/mail/goMailServer.tpl b/gosa-plugins/mail/admin/systems/services/mail/goMailServer.tpl index c6ad7e0e2..a0156b56f 100644 --- a/gosa-plugins/mail/admin/systems/services/mail/goMailServer.tpl +++ b/gosa-plugins/mail/admin/systems/services/mail/goMailServer.tpl @@ -1,12 +1,12 @@

{t}Generic{/t}

- + +
- +
- +
{t}Visible full qualified hostname{/t} - {t}Visible full qualified hostname{/t} {render acl=$postfixMyhostnameACL} @@ -56,7 +56,7 @@ - +
{t}Local networks{/t}
@@ -89,7 +89,7 @@
- +
{t}Domains to accept mail for{/t}
@@ -115,7 +115,7 @@
- +
{t}Transports{/t}
@@ -151,7 +151,7 @@
- +
{t}Restrictions for sender{/t}
@@ -179,7 +179,7 @@
- +
{t}Restrictions for recipient{/t}
@@ -223,16 +223,14 @@ {html_options options=$Actions} - +
-
- -   +
+ - -

+