[horde] Horde initial application
garnier@embratel.com.br
garnier at embratel.com.br
Wed Nov 30 04:37:32 PST 2005
Hi Chuck, thanks for the answer.
I´m not sure what you mean by "honors the initial_application preference
itself". When I change horde initial_application to imp, it doesn´t "honor
the initial_application preference", it just goes to horde initial screen,
ignoring initial_application.
Inside horde/index.php:
$main_page = Util::getFormData('url');
if (!$main_page) {
$main_page = Horde::initialPage();
}
On the first line, $main_page is always getting something, and it never gets Horde::initialPage() (which actually gets initial_application).
I´ve also tried to change the above code to just:
$main_page = Horde::initialPage();
It also worked, but I guess the previous code is there for a reason.
>Date: Tue, 29 Nov 2005 14:45:52 -0500
>From: Chuck Hagenbuch <chuck at horde.org>
>Subject: Re: [horde] Horde initial application
>To: horde at lists.horde.org
>Message-ID: <20051129144552.0fxq6r6idoo40cs4 at marina.horde.org>
>Content-Type: text/plain; charset=ISO-8859-1; format="flowed"
>
>Quoting garnier at embratel.com.br:
>
>> I?m trying to configure IMP (4.0.3) as Horde (3.0.5) initial
application.
>> I?ve already changed $_prefs['initial_application'] on
>> horde/config/prefs.php to 'imp', but it didn?t work.
>> I?ve found that inside function _newSessionUrl (on
horde/imp/redirect.php),
>> if Horde authentication provider is IMP (my case), $url variable is set
to:
>> $url = Horde::applicationUrl($GLOBALS['registry']->get('webroot',
'horde')
>> . '/', true);
>>
>> I changed this line to:
>> $url = Horde::applicationUrl($GLOBALS['registry']->get('webroot', 'imp')
.
>> '/', true);
>>
>> And it worked. Did I do anything I shouldn?t?
>
>Yes.
>
>> Is there a reason why $url is set to horde application, and not
>> $_prefs['initial_application']?
>
>Because Horde makes sure you're in the frameset (if requested), and
>honors the initial_application preference itself.
>
>-chuck
More information about the horde
mailing list