|
|
Choosing A Webhost: |
Re: root_url and http_host: msg#00002cms.phpslash.devel
On Tue, Apr 08, 2003 at 08:39:43PM -0400, Mike Gifford wrote: > On Mon, 2003-04-07 at 23:11, > phpslash-devel-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx > 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 <mike-i3Ha2xlg0scJWAZjvljUTg@xxxxxxxxxxxxxxxx> > OpenConcept Consulting http://www.openconcept.ca > ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Phpslash-devel digest, Vol 1 #186 - 1 msg, Mike Gifford |
|---|---|
| Next by Date: | Re: root_url and http_host, Mike Gifford |
| Previous by Thread: | Re: Phpslash-devel digest, Vol 1 #186 - 1 msg, Mike Gifford |
| Next by Thread: | Re: root_url and http_host, Mike Gifford |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |