[ingo] What syntax for prefs.php ? (was: How to populate a filter to all accounts ?)

Jan Schneider jan at horde.org
Wed Feb 10 23:16:29 UTC 2010


Zitat von Bruno Costacurta <techie at costacurta.org>:

>
>> Zitat von Bruno Costacurta <techie at costacurta.org>:
>>
>>> Hello,
>>>
>>> as the Horde administrator, I wrote a spam filter (based on X-Spam-Level).
>>> How to install it on all users accounts, making it a default one ?
>>
>> config/prefs.php
>>
>
> I found the following in .../ingo/config/prefs.php
>
> $_prefs['rules'] = array( 'value' =>
> 'a:5:{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 . ';}i:3;a:3:{s:4:"name";s:11:"Spam  
> Filter";s:6:"action";i:' . INGO_STORAGE_ACTION_SPAM .  
> ';s:7:"disable";b:1;}i:4;a:2:{s:4:"name";s:7:"Forward";s:6:"action";i:' .  
> INGO_STORAGE_ACTION_FORWARD . ';}}',
>    'locked' => false,
>    'shared' => false,
>    'type' => 'implicit'
>
>
> But what is the syntax of a such 'value' field ?
> Is there any documentation about a such syntax ?
> Thanks for your help.

http://www.php.net/serialize

Jan.

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



More information about the ingo mailing list