From: hickert Date: Tue, 26 Sep 2006 04:07:43 +0000 (+0000) Subject: Fixed virus service X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=023631c12a538c1b3531f5b6172535e4f4a94ade;p=gosa.git Fixed virus service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4767 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_goVirusServer.inc b/plugins/admin/systems/class_goVirusServer.inc index 2a4fc187c..442ebb6ea 100644 --- a/plugins/admin/systems/class_goVirusServer.inc +++ b/plugins/admin/systems/class_goVirusServer.inc @@ -69,31 +69,9 @@ class govirusserver extends goService{ $smarty->assign($name."ACL",$this->getacl($name)); } - if(get_class($this->parent) == "servtabs"){ - - $smarty->assign("servtabs",TRUE); - - /* Do we need to flip is_account state? */ - if (isset($_POST['modify_state'])) { - $this->is_account = !$this->is_account; - } - - /* Show tab dialog headers */ - if ($this->is_account) { - /* call Add Acoount to add account */ - $display = $this->show_header(_("Remove anti virus extension"), - _("This server has anti virus features enabled. You can disable them by clicking below.")); - } else { - /* call remove Account */ - $display = $this->show_header(_("Add anti virus service"), - _("This server has anti virus features disabled. You can enable them by clicking below.")); - return ($display); - } - }else{ - $display = ""; - $smarty->assign("servtabs",FALSE); - $this->is_account = true; - } + $display = ""; + $smarty->assign("servtabs",FALSE); + $this->is_account = true; /* Assign smarty vars */ foreach($this->attributes as $attr){ diff --git a/plugins/admin/systems/goVirusServer.tpl b/plugins/admin/systems/goVirusServer.tpl index 7df14ea2d..790d07d82 100644 --- a/plugins/admin/systems/goVirusServer.tpl +++ b/plugins/admin/systems/goVirusServer.tpl @@ -163,7 +163,6 @@ -{if !$servtabs}

 

@@ -172,5 +171,4 @@

-{/if}