Code

Starting move
[gosa.git] / plugins / admin / systems / services / spam / class_goSpamServerRule.inc
diff --git a/plugins/admin/systems/services/spam/class_goSpamServerRule.inc b/plugins/admin/systems/services/spam/class_goSpamServerRule.inc
deleted file mode 100644 (file)
index c8eed5d..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-class goSpamServerRule extends plugin {
-
-       var $attributes = array("name","rule");
-       var $name = "";
-       var $rule = "";
-       
-       var $orig_name = "";
-  var $view_logged  =FALSE;
-       
-       function goSpamServerRule(&$config,$dn,$name = "",$rule ="")
-       {
-               plugin::plugin($config,$dn);
-               $this->name = $this->orig_name= $name;
-               $this->rule = $rule;
-       }
-
-
-       function execute()
-       {
-               $smarty = get_smarty();
-
-    if($this->is_account && !$this->view_logged){
-      $this->view_logged = TRUE;
-      new log("view","server/".get_class($this),$this->dn);
-    }
-
-               foreach($this->attributes as $attr){
-                       $smarty->assign($attr,$this->$attr);
-               }
-               return($smarty->fetch(get_template_path("goSpamServerRule.tpl",TRUE,dirname(__FILE__))));                       
-       }
-
-       function save_object()
-       {
-               plugin::save_object();
-               foreach($this->attributes as $attr){
-                       if(isset($_POST[$attr])){
-                               $this->$attr = $_POST[$attr];
-                       }
-               }
-       }
-
-
-       function save()
-       {
-               $ret =array();
-               $ret['orig_name'] = $this->orig_name;
-               $ret['name'] = $this->name;
-               $ret['rule'] = $this->rule;
-               return($ret);
-       }
-       
-       function check()
-       {
-               $messages = plugin::check();
-               return($messages);
-       }
-}
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
-?>