obsolete
authorPierre Habouzit <madcoder@debian.org>
Wed, 10 Sep 2003 14:36:20 +0000 (14:36 +0000)
committerPierre Habouzit <madcoder@debian.org>
Wed, 10 Sep 2003 14:36:20 +0000 (14:36 +0000)
philter/philter/include/action.inc.php [deleted file]
philter/philter/include/match.inc.php [deleted file]
philter/philter/include/philter.inc.php

diff --git a/philter/philter/include/action.inc.php b/philter/philter/include/action.inc.php
deleted file mode 100644 (file)
index 8383159..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-/********************************************************************************
-* include/action.inc.php : The class representing an Action
-* ----------------------
-*
-* This file is part of the philter distribution
-* Copyright: See COPYING files that comes with this distribution
-*
-* vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100:
-* $Id$
-********************************************************************************/
-
-class Action extends CoreObject {
-    function Action() {
-        $this->CoreObject();
-    }
-
-    function to_string() {
-        return "";
-    }
-}
-
-?>
diff --git a/philter/philter/include/match.inc.php b/philter/philter/include/match.inc.php
deleted file mode 100644 (file)
index 3e4c160..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-/********************************************************************************
-* include/match.inc.php : The class representing a procmail Match rule
-* ---------------------
-*
-* This file is part of the philter distribution
-* Copyright: See COPYING files that comes with this distribution
-*
-* vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100:
-* $Id$
-********************************************************************************/
-
-class Match extends CoreObject {
-    function Match() {
-        $this->CoreObject();
-    }
-
-    function to_string() {
-        return "";
-    }
-}
-
-?>
index c626a0f..ca0b2a8 100644 (file)
@@ -27,11 +27,22 @@ class Philter {
             'path'    => array('procmail', 'spool'),
             'match_plugins' => array(),
             'action_plugins' => array(),
-            'global_plugin' => array()
+            'global_plugin' => array(),
+            'i18n' => array()
         );
         $this->err = "";
     }
 
+    /** returns the i18n string
+     * @param   $_index   the index of the string
+     * @returns the string or false
+     */
+    function i18n($_index) {
+        if(isset($this->confg[$_index]))
+            return $this->confg[$_index];
+        return false;
+    }
+
     /** returns the error.
      * @return  the error string
      */