6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/20/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4126] Make registry.php webroot path detection more reliable
*
Your Email Address
*
Spam protection
Enter the letters below:
. .\ /.___. .. |_/ >< [__ | || | \/ \| |/\||___
Comment
> I'm still unable to comprehend what I am supposed to do here. This > is what the beginning of my /horde/config/registry.php file looks > like. I get the URL trying to duplicate itself > (/horde/kronolith/month.php/horde/kronolith/month.php) on any > add/update within Turba & Kronolith. These are the 2 apps that we > utilize within the groupware. Server is running PHP4 as CGI. Can > anyone tell me what to change in here to get this corrected? Sorry > for my ignorance on this, but I simply don't know much about this > stuff and what to do with those files attached above. Thank you for > anyone that can help me. > > Joely > > > > if (isset($_SERVER['PHP_SELF'])) { > > $webroot = preg_split(';/;', $_SERVER['PHP_SELF'], 2, > PREG_SPLIT_NO_EMPTY); > > $webroot = strstr(dirname(__FILE__), DIRECTORY_SEPARATOR . > array_shift($webroot)); > > if ($webroot !== false) { > > $webroot = preg_replace(array('/\\\\/', ';/config$;'), > array('/', ''), $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' > > );
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers