[horde] Can I insert an X-Horde-Authenticated as header
Patrick Boutilier
boutilpj at ednet.ns.ca
Fri Mar 28 01:22:04 UTC 2008
ram wrote:
> On Thu, 2008-03-27 at 00:45 -0700, Huaqing Zheng wrote:
>> On Wed, Mar 26, 2008 at 10:33 PM, Kevin Konowalec <webadmin at ualberta.ca> wrote:
>>> We did exactly that. Simply edit compose.php and add something
>>> similar to the following:
>> <SNIP>
>>
>> It's probably better to edit imp/config/header.php instead to avoid
>> patching the main source tree.
>>
>> --
>> Huaqing Zheng
>> Code Wrangler
>
>
> Any example for what I should put ?
>
Last line is what you are interested in.
/* Add your custom entries below this line. */
/* Add the IP of the remote browser */
$_header['X-Originating-IP'] = $_SERVER['REMOTE_ADDR'];
/* Add the Browser information of the remote browser */
$_header['X-Remote-Browser'] = $_SERVER['HTTP_USER_AGENT'];
/* Add the logged in user, just in case */
$_header['X-Horde-Authenticated'] = Auth::getAuth();
More information about the horde
mailing list