Problem with IIS [message #1194] |
Mon, 17 December 2007 12:18 |
theos
Messages: 3 Registered: December 2007
|
Junior Member |
|
|
First, i'm sorry my bad english.
In radicore v1.18.0 released:
fixed bug in the logon screen when run with Microsoft IIS which caused it to use HTTPS even when an HTTPS server had not been specified.
In my case, v1.18 and v1.31, the logon screen not applied css, and the next screen link to https.
My solution:
..../includes/config.inc
$_SERVER['HTTPS']="";
The reason:
In ..../includes/include.xml.php5.inc
if (!empty($_SERVER['HTTPS']))
It was always true
In manual php:
$_SERVER['HTTPS']
Set to a non-empty value if the script was queried through the HTTPS protocol.
Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol.
Is there another solution?
Thanks and congratulation for this great work.
|
|
|
Re: Problem with IIS [message #1195 is a reply to message #1194] |
Mon, 17 December 2007 13:07 |
AJM
Messages: 2369 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
It is always a problem when different web servers produce different results.
I have amended the code inside initSession() so that if $_SERVER['HTTPS'] is empty it will be set to 'off', and each line which reads if (!empty($_SERVER['HTTPS'])) { has been changed to if (is_True($_SERVER['HTTPS'])) {
These fixes are in the attached file, so can you try them and let me know how you get on?.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|
Re: Problem with IIS [message #1199 is a reply to message #1198] |
Tue, 18 December 2007 05:55 |
AJM
Messages: 2369 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I don't think it's a good idea to use $_SERVER['PHP_SELF'] to provide a value for $_SERVER['DOCUMENT_ROOT'] as a script may be run from any subdirectory below the root directory. This would make $_SERVER['DOCUMENT_ROOT'] variable when in fact it is constant for the entire installation.
I never use any web server other than Apache (the industry standard) so I never encounter these problems.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|