';
foreach ($filters->getFilterList() as $filter) {
if (!empty($filter['disable'])) {
$active = _("inactive");
} else {
$active = _("active");
}
$s_categories = $GLOBALS['session']->get('ingo', 'script_categories');
switch ($filter['name']) {
case 'Vacation':
if (in_array(Ingo_Storage::ACTION_VACATION, $s_categories)) {
$html .= '' .
'' .
' | ' .
Ingo_Basic_Vacation::url()->link(array('title' => _("Edit"))) .
_("Vacation") . ' ' . $active .
' |
';
}
break;
case 'Forward':
if (in_array(Ingo_Storage::ACTION_FORWARD, $s_categories)) {
$html .= '' .
'' .
' | ' .
Ingo_Basic_Forward::url()->link(array('title' => _("Edit"))) .
_("Forward") . ' ' . $active;
$data = unserialize($GLOBALS['prefs']->getValue('forward'));
if (!empty($data['a'])) {
$html .= ': ' . implode(' ', $data['a']);
}
$html .= ' |
';
}
break;
case 'Whitelist':
if (in_array(Ingo_Storage::ACTION_WHITELIST, $s_categories)) {
$html .= '' .
'' .
' | ' .
Ingo_Basic_Whitelist::url()->link(array('title' => _("Edit"))) .
_("Whitelist") . ' ' . $active .
' |
';
}
break;
case 'Blacklist':
if (in_array(Ingo_Storage::ACTION_BLACKLIST, $s_categories)) {
$html .= '' .
'' .
' | ' .
Ingo_Basic_Blacklist::url()->link(array('title' => _("Edit"))) .
_("Blacklist") . ' ' . $active .
' |
';
}
break;
case 'Spam Filter':
if (in_array(Ingo_Storage::ACTION_SPAM, $s_categories)) {
$html .= '' .
'' .
' | ' .
Ingo_Basic_Spam::url()->link(array('title' => _("Edit"))) .
_("Spam Filter") . ' ' . $active .
' |
';
}
break;
}
}
return $html . '
';
}
}
ingo-3.1.3/lib/Exception/Pear.php 0000664 0001750 0001750 00000002121 12233762201 014654 0 ustar jan jan
* @category Horde
* @license http://www.horde.org/licenses/apache ASL
* @package Ingo
*/
/**
* Ingo exception class that converts PEAR errors to exceptions.
*
* @author Jan Schneider