[horde] how to set holiday_drivers value in prefs.local.php

Michael J Rubinsky mrubinsk at horde.org
Sat Jan 9 16:32:35 UTC 2021


Quoting ANANT S ATHAVALE <asa at ursc.gov.in>:

> ----- Message from Michael J Rubinsky <mrubinsk at horde.org> ---------
>     Date: Tue, 05 Jan 2021 14:13:14 +0000
>     From: Michael J Rubinsky <mrubinsk at horde.org>
> Reply-To: mrubinsk at horde.org
>  Subject: Re: [horde] how to set holiday_drivers value in prefs.local.php
>       To: horde at lists.horde.org, Michael J Rubinsky <mrubinsk at horde.org>
>
>
>> Quoting ANANT S ATHAVALE <asa at ursc.gov.in>:
>>
>>> All,
>>>
>>> I have added one holiday caledar and it is stored as
>>>
>>> | asa at ursc.gov.in | kronolith  | holiday_drivers                 |  
>>> a:1:{i:0;s:3:"USA";}
>>>
>>> I want that, this should be effective for all users
>>>
>>> How do set the same in prefs.local.php?
>>>
>>> Adding following line in prefs.local.php is not helping...
>>>
>>> $_prefs['holiday_drivers']['value'] = json_encode(array('USA'));
>>
>>
>> That is not a json encoded array, it's serialized using php's serialization.
>>
>> https://www.php.net/serialize

Just paste the value that you saw in the database. I.e,:

$_prefs['holiday_drivers']['value'] = 'a:1:{i:0;s:3:"USA";}';

It's a php serialized array, so it would be same as doing this:

$_prefs['holiday_drivers']['value'] = serialize(array('USA'));


>>
>>> or
>>>
>>> $_prefs['holiday_drivers']['value'] = '["USA"]';
>>>
>>> Is it possible to make it default preference for all (without locking)....
>>>
>>> Please guide.
>>>
>>>
>>>
>>>
>>> -- 
>>>    सादर धन्यवाद/ Thanks & Regards
>>>         अनंत / Anant
>>> ------------------------------------------------------------------------------
>>> IMPORTANT NOTE:
>>>
>>> ISRO Satellite Centre (ISAC) was renamed as U R Rao Satellite  
>>> Centre (URSC).
>>> Hence, the existing domain (isac.gov.in) is changed to new domain  
>>> ursc.gov.in
>>> resulting into change of e-mail address from user at isac.gov.in to  
>>> user at ursc.gov.in.
>>> Please note this change and update your contact details for new  
>>> domain (ursc.gov.in).
>>> ------------------------------------------------------------------------------
>>> Confidentiality Notice: This e-mail message, including any  
>>> attachments, is for
>>> the sole use of the intended recipient(s) and may contain confidential and
>>> privileged information. Any unauthorized review, use, disclosure or
>>> distribution is prohibited. If you are not the intended recipient, please
>>> contact the sender by reply e-mail and destroy all copies of the original
>>> message.
>>> ------------------------------------------------------------------------------
>>>
>>> -- 
>>> Horde mailing list
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>
>>
>>
>> -- 
>> mike
>> The Horde Project
>> http://www.horde.org
>> https://www.facebook.com/hordeproject
>> https://www.twitter.com/hordeproject
>
>
> ----- End message from Michael J Rubinsky <mrubinsk at horde.org> -----
>
> So, how can I achieve that? please guide.
>
> A sample config line will help me to set it up.
>
>
>
>
> -- 
>      सादर धन्यवाद/ Thanks & Regards
>           अनंत / Anant
> ------------------------------------------------------------------------------
> IMPORTANT NOTE:
>
> ISRO Satellite Centre (ISAC) was renamed as U R Rao Satellite Centre (URSC).
> Hence, the existing domain (isac.gov.in) is changed to new domain ursc.gov.in
> resulting into change of e-mail address from user at isac.gov.in to  
> user at ursc.gov.in.
> Please note this change and update your contact details for new  
> domain (ursc.gov.in).
> ------------------------------------------------------------------------------
> Confidentiality Notice: This e-mail message, including any  
> attachments, is for
> the sole use of the intended recipient(s) and may contain confidential and
> privileged information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of the original
> message.
> ------------------------------------------------------------------------------
>
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/horde/attachments/20210109/d09ce6f3/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/horde/attachments/20210109/d09ce6f3/attachment.sig>


More information about the horde mailing list