[ingo] removing the "forward" default rule

Jan Schneider jan at horde.org
Thu Jun 9 03:08:26 PDT 2005


Zitat von Nicolas Schmitz <Nicolas.Schmitz at ec-nantes.fr>:

>
>>>>
>>>>
>>> Hello,
>>> thanks, but can you tell me exactly where ?
>>> I have tried to remove
>>> i:3;a:2:{s:4:"name";s:7:"Forward";s:6:"action";i:' .
>>> INGO_STORAGE_ACTION_FORWARD . ';}
>>> in $_prefs['rules']
>>>
>>>
>>
>> That's the correct place. But it only works for new users of course.
>>
>> Jan.
>>
>>
> Ok, but I get errors messages when I remove this ...
>
> If I put this in prefs.php :
>
> // filter rules
> $_prefs['rules'] = array(
>     'value' =>
> 'a:4:{i:0;a:2:{s:4:"name";s:9:"Whitelist";s:6:"action";i:' .
> INGO_STORAGE_ACTION_WHITELIST .
> ';}i:1;a:3:{s:4:"name";s:8:"Vacation";s:6:"action";i:' .
> INGO_STORAGE_ACTION_VACATION .
> ';s:7:"disable";b:1;}i:2;a:2:{s:4:"name";s:9:"Blacklist";s:6:"action";i:'
> . INGO_STORAGE_ACTION_BLACKLIST . ';}}',
>
>
> then, I have some php error when I open the filter in horde :
>
> *Notice*: unserialize(): Unexpected end of serialized data in
> */var/www/horde/horde4/ingo/lib/Storage/prefs.php* on line *51*

You should know what you're doing if you hassle with serialized arrays. 
You didn't update the array counter: "'a:4:'" should be "'a:3:'".

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the ingo mailing list