[horde] FW: horde expects default root

Helen Biernacki coach at halinasplace.com.au
Fri Aug 4 01:50:19 PDT 2006


How do I change this?

if (isset($_SERVER['PHP_SELF'])) {
    $webroot = preg_split(';/;', $_SERVER['PHP_SELF'], 2,
PREG_SPLIT_NO_EMPTY);
    $webroot = strstr(dirname(__FILE__), '/' . array_shift($webroot));
    if ($webroot !== false) {
        $webroot = preg_replace(';/config$;', '', $webroot);
    } elseif ($webroot === false) {
        $webroot = '';
    } else {
        $webroot = '/horde';
    }
} else {
    $webroot = '/horde';
}

$this->applications['horde'] = array(
    'fileroot' => dirname(__FILE__) . '/..',
    'webroot' => $webroot,
    'initial_page' => 'login.php',
    'name' => _("Horde"),
    'status' => 'active',
    'templates' => dirname(__FILE__) . '/../templates',
    'provides' => 'horde'
);

------------------------------------
Halina's Place Pty Ltd
Helen Biernacki
Performance Consultant & Coach
coach at halinasplace.com.au
GPO Private Box 4916,
Melbourne 3001
tel: 0410 441 757
fax: 03 9343 5359
mobile: 0410 441 757
www.halinasplace.com.au
------------------------------------

-----Original Message-----
From: horde-bounces at lists.horde.org [mailto:horde-bounces at lists.horde.org]
On Behalf Of Jan Schneider
Sent: Friday, 4 August 2006 6:42 PM
To: horde at lists.horde.org
Subject: Re: [horde] horde expects default root

Zitat von Helen Biernacki <coach at halinasplace.com.au>:

> I'm working with the horde base and it keeps removing /horde as my sub 
> directory when re-directing me to other pages.
>
> Where  do I change this so it recognizes that I'm running in a 
> subdirectory /horde.
>
> I've checked the faq's and they seem to be referring to other versions 
> of horde.

config/registry.php

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/

--
Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail:
horde-unsubscribe at lists.horde.org






More information about the horde mailing list