[Phpslash-devel] Re: root_url and http_host
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-04-09 14:29:49
|
On Tue, Apr 08, 2003 at 08:39:43PM -0400, Mike Gifford wrote: > On Mon, 2003-04-07 at 23:11, > php...@li... wrote: > > <snip> > > > Worked OK except for the scripts in the admin directory. The rooturl > > changed and screwed it all up. The rooturl has /admin appended. Then > > adminurl appends /admin again. Anybody got any good ideas? I sure > > don't. > > Now the convention is (I think) that all of the scripts in the /admin/ > directory call on 'config.php' in that directory which calls up the > '../config.php' script, right? So couldn't you just fillet out the > extra rooturl? > > $_PSL['rooturl'] = str_replace('/admin/', "/", $_PSL['rooturl']); > > Or am I missing something... > The navbar arrays are defined in rooturl/config.php. So their links are screwed up when in the admin directory. This is inside the called config.php. So defining rooturl in the admin/config.php before or after won't help. > <snip> > > Mike > -- > Mike Gifford <mi...@op...> > OpenConcept Consulting http://www.openconcept.ca > |