From: hickert Date: Wed, 7 Jun 2006 08:09:13 +0000 (+0000) Subject: Save to conitnue for service add X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=50cbc2bb7ec4052d300cc48bc06a9a22e3e0e841;p=gosa.git Save to conitnue for service add Fixed hooks for gomailserver renamed basic actions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3667 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/ServiceAddDialog.tpl b/plugins/admin/systems/ServiceAddDialog.tpl index 386e1ee08..6046c328b 100755 --- a/plugins/admin/systems/ServiceAddDialog.tpl +++ b/plugins/admin/systems/ServiceAddDialog.tpl @@ -30,7 +30,7 @@

- +  
diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc index d6ae1a903..cdab67ce1 100644 --- a/plugins/admin/systems/class_goMailServer.inc +++ b/plugins/admin/systems/class_goMailServer.inc @@ -54,22 +54,24 @@ class goMailServer extends plugin{ $this->TransportProtocols =array("smtp"=>"SMTP"); $this->RestrictionFilters = array("FILTER"=>"FILTER"); foreach(array("ADDITIONALRESTRICTIONFILTERS"=>"RestrictionFilters", - "ADDITIONALPROTOCOLLS" =>"TransportProtocols") as $file => $var){ - $file = $this->config->data['MAIN'][$file]; - if((isset($file)) && is_readable($file)){ - $tmp = file_get_contents($file); - $tmp2= split("\n",$tmp); - foreach($tmp2 as $entry){ - if(empty($entry)) continue; - if(preg_match("/:/",$entry)){ - $tmp3 = split(":",$entry); - $r = $this->$var; - $r[$tmp3[0]]=$tmp3[1]; - $this->$var = $r; - }else{ - $r = $this->$var; - $r[$entry] =$entry; - $this->$var = $r; + "ADDITIONALPROTOCOLLS" =>"TransportProtocols") as $file => $var){ + if(isset($this->config->data['MAIN'][$file])){ + $file = $this->config->data['MAIN'][$file]; + if((isset($file)) && is_readable($file)){ + $tmp = file_get_contents($file); + $tmp2= split("\n",$tmp); + foreach($tmp2 as $entry){ + if(empty($entry)) continue; + if(preg_match("/:/",$entry)){ + $tmp3 = split(":",$entry); + $r = $this->$var; + $r[$tmp3[0]]=$tmp3[1]; + $this->$var = $r; + }else{ + $r = $this->$var; + $r[$entry] =$entry; + $this->$var = $r; + } } } } diff --git a/plugins/admin/systems/class_serverService.inc b/plugins/admin/systems/class_serverService.inc index f0360e9a1..bfdb7373c 100644 --- a/plugins/admin/systems/class_serverService.inc +++ b/plugins/admin/systems/class_serverService.inc @@ -4,9 +4,9 @@ define("START_SERVICE",1); define("STOP_SERVICE",2); define("RESET_SERVICE",3); -define("SERVICE_STOPPED","stopped"); -define("SERVICE_STARTED","started"); -define("SERVICE_RESETTED","resetted"); +define("SERVICE_STOPPED",_("Stop")); +define("SERVICE_STARTED",_("Start")); +define("SERVICE_RESETTED",_("Restart")); define("ALL_SERVICES",100);