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

ANANT S ATHAVALE asa at ursc.gov.in
Mon Jan 11 04:14:16 UTC 2021


----- Message from Michael J Rubinsky <mrubinsk at horde.org> ---------
     Date: Sat, 09 Jan 2021 16:32:35 +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>:
>
>> ----- 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


----- End message from Michael J Rubinsky <mrubinsk at horde.org> -----

Thank you.  It works.

I had to delete the preference set in mysql table for it to be  
effective (as it was set already in preference).  All other users are  
able to see the Holidays.


-- 
      सादर धन्यवाद/ 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.
------------------------------------------------------------------------------



More information about the horde mailing list