[horde] Trailer Text per instance

Michael J Rubinsky mrubinsk at horde.org
Mon Mar 13 16:46:55 UTC 2017


Quoting David Cunningham <dcunningham at additionnetworks.net>:

>> On Mar 13, 2017, at 12:23 PM, Michael J Rubinsky <mrubinsk at horde.org> wrote:
>>
>>
>> Quoting David Cunningham <dcunningham at additionnetworks.net>:
>>
>>> Hi All,
>>>
>>> I am having a hard time figuring out the syntax of a hooks-url.php
>>
>> The correct syntax is hooks-servername.php. However, I don't  
>> remember off-hand if hooks are handled this way since the file is a  
>> class definition. You may have to just use $conf['server']['name]  
>> or something from the $_SERVER super global and add some logic to  
>> the trailer hook.
>>
>
> Yes, the class thing is exactly the problem I am having.  I am  
> getting an error that I cannot define that class again.

Yeah, thought that was the case. You can't load hooks this way. You'll  
have to use logic in the hook itself to sniff out the  
domain/host/whatever you are switching on.


>
>>
>>> entry to set the trailer text based on the url being used.  For  
>>> example, I need one url to have no trailer added, one url to have  
>>> one text added and another to have a different text added.
>>>
>>> Thanks for your help!
>>> --
>>> 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
>> --
>> 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: smime.p7s
Type: application/pkcs7-signature
Size: 3282 bytes
Desc: S/MIME Signature
URL: <https://lists.horde.org/archives/horde/attachments/20170313/b3654203/attachment.bin>


More information about the horde mailing list