summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2010-04-07 03:52:27 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2010-04-07 03:52:27 (GMT)
commit3c12e82b2ce89fd89a14bd60544f0563e6cb63b4 (patch)
tree4e1789314ccf3db523350371acc0028d72ff9918 /lib
parent3b340a857f30affb66c216a3dac70404585a9527 (diff)
downloadkolab-webadmin-3c12e82b2ce89fd89a14bd60544f0563e6cb63b4.tar.gz
Add check for unknown script.
Diffstat (limited to 'lib')
-rw-r--r--lib/KolabAdmin/Sieve.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/KolabAdmin/Sieve.php b/lib/KolabAdmin/Sieve.php
index 0233da4..2f66378 100644
--- a/lib/KolabAdmin/Sieve.php
+++ b/lib/KolabAdmin/Sieve.php
@@ -159,4 +159,19 @@ class KolabAdmin_Sieve
}
return $script;
}
+
+ public function checkUnknownScript()
+ {
+ $known = array(
+ self::SCRIPT,
+ self::OLD_SCRIPT_DELIVERY,
+ self::OLD_SCRIPT_FORWARD,
+ self::OLD_SCRIPT_VACATION,
+ );
+ $active = $this->_sieve->getActive();
+ if (!in_array($active, $known)) {
+ return $active;
+ }
+ return false;
+ }
} \ No newline at end of file