phpgroupware-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [ 100880 ] allow url subdirectories


From: nobody
Subject: [Phpgroupware-tracker] [ 100880 ] allow url subdirectories
Date: Thu, 09 May 2002 01:38:48 -0400

Support Request #100880, was updated on 2002-May-09 01:38
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100880&group_id=509

Category: Feature Request
Status: Open
Priority: 5
Summary: allow url subdirectories

By: pric0112
Date: 2002-May-09 01:38

Message:
Logged In: NO 
Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 6.0  [en]

I have added this feature to my copy of PHP. I would like to see it 
added to the distribution if possible.

Heres what the new 
feature is and why it was necessary:
The new feature allows you to 
place all of the files and subdirectories in one phpgroupware 
folder. 
Prior to this fix either the webserver root needed to be 
set to the phpgroupware folder, or the contents of the 
phpgroupware folder needed to be dumped into the webserver root. 

Before: clicking login button on 
http://localhost/phpgroupware/login.php gave CGI header 
error and URL appears to be http://localhost/login.php
Now it 
works, hitting the login button actually logs you in.

Heres 
what I did:
added these two lines near the top of 
\phpgroupware\header.inc.php:
define( 'PHPGW_URL_ROOT', 
'http://sequoia/phpgroupware/' 
);
$GLOBALS['phpgw_info']['server']['webserver_url'] = 
PHPGW_URL_ROOT;

modified this if() statement in 
\phpgroupware\phpgwapi\inc\functions.inc.php (around line 
660)
if(@$GLOBALS['phpgw_info']['server']['cache_phpgw_info'] 
&& $server_info_cache)
to 
include:
$GLOBALS['phpgw_info']['server']['webserver_url'] 
= PHPGW_URL_ROOT;
as the last line in the if 
statement.

(this second step shouldn't be necessary, I 
think, but unserialize() doesn't seem to work on my 
setup)

Thats it, it was a fairly easy fix, due to the 
$GLOBALS['phpgw_info']['server']['webserver_url'] 
variable's existence. (It is obvious one of the developers has 
though of this already)

----------------------------------------------------------------------
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100880&group_id=509



reply via email to

[Prev in Thread] Current Thread [Next in Thread]