[horde] FW: horde expects default root
Christian Hernmarck
news-NO.SPAM at lists.hernmarck.ch
Fri Aug 4 14:55:30 PDT 2006
Helen Biernacki schrieb am Freitag, 4. August 2006 10:50 im Beitrag
<003101c6b7a3$03729130$0a57b390$@com.au>:
> 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';
> }
add this line here:
$webroot = '/horde';
this will override the value set above...
> $this->applications['horde'] = array(
> 'fileroot' => dirname(__FILE__) . '/..',
> 'webroot' => $webroot,
> 'initial_page' => 'login.php',
> 'name' => _("Horde"),
> 'status' => 'active',
> 'templates' => dirname(__FILE__) . '/../templates',
> 'provides' => 'horde'
> );
/Christian
More information about the horde
mailing list