1
xoops-2.0.9.2 && php-4.3.10
After new install on Win 2k IIS 5 when you click on anything in the system admin menu you get:
Quote:
find in include/common.php:
Even though the 'REQUEST_URI' appears to be nul, isset is returning 1.
From phpinfo();
Quote:
change to:
After new install on Win 2k IIS 5 when you click on anything in the system admin menu you get:
Quote:
Selected module does not exist!
find in include/common.php:
if ( !isset( $_SERVER[ 'REQUEST_URI' ] ) ) { // Not defined by IIS
// Under some configs, IIS makes SCRIPT_NAME point to php.exe :-(
if ( !( $_SERVER[ 'REQUEST_URI' ] = @$_SERVER['PHP_SELF'] ) ) {
$_SERVER[ 'REQUEST_URI' ] = $_SERVER['SCRIPT_NAME'];
}
if ( isset( $_SERVER[ 'QUERY_STRING' ] ) ) {
$_SERVER[ 'REQUEST_URI' ] .= '?' . $_SERVER[ 'QUERY_STRING' ];
}
}
Even though the 'REQUEST_URI' appears to be nul, isset is returning 1.
From phpinfo();
Quote:
_SERVER["REQUEST_URI"] no value
change to:
if ( !$_SERVER[ 'REQUEST_URI' ] ) { // Not defined by IIS - isset returns 1 even when blank
// Under some configs, IIS makes SCRIPT_NAME point to php.exe :-(
if ( !( $_SERVER[ 'REQUEST_URI' ] = @$_SERVER['PHP_SELF'] ) ) {
$_SERVER[ 'REQUEST_URI' ] = $_SERVER['SCRIPT_NAME'];
}
if ( isset( $_SERVER[ 'QUERY_STRING' ] ) ) {
$_SERVER[ 'REQUEST_URI' ] .= '?' . $_SERVER[ 'QUERY_STRING' ];
}
}