[dev] webroot of horde (and one channel in Jonah)

Jon Parise jon@horde.org
Wed, 28 Nov 2001 11:38:02 -0500


On Wed, Nov 28, 2001 at 11:28:47AM -0500, Scott A. Sibert wrote:

> I'm running the new RELENG branches on /horde but I also want to run the 
> HEAD.  Problem is that there are many, many places in 
> horde/config/registry.php where the webroot is redefined.
> 
> Is there any way to have ONE place where the webroot base is defined and 
> then have each part (ie. imp, turba, etc) have its webroot based on the 
> main defined one?  Also, the icon definitions have the webroot 
> hard-coded in each time.

It's sort of a tradeoff.  The way I see it, one doesn't spend all
that much time editing the config/register.php file, so once it's
set, it just sits there and works.  Otherwise, we need to make
sure relative paths and stuff work, or provide some sort of
programmatic mechanism to propagate a single webroot to all of
the entries.

If you want, because the file is a PHP script, you can just
create a variable at the top of the file named $webroot and
all of the entries in terms of that variable or something.

Or you could just search and replace the entries in a text
editor.

Having the explicit paths in there also helps alleviate the
confusion between virtual web paths and physical file system
paths.
 
> Also, the kernel-list channel in jonah/config/channels.php needs to be 
> changed from:
> @vger.rutgers.edu
> to:
> @vger.kernel.org
 
Thanks, fixed in cvs.

-- 
Jon Parise (jon@csh.rit.edu)  .  Information Technology (2001)
http://www.csh.rit.edu/~jon/  :  Computer Science House Member