IIS 6.0 compatibility
This commit is contained in:
@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2002-09-28 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
|
* libraries/common.lib.php3: $cfg['PmaAbsoluteURI'] detection did not work
|
||||||
|
properly on IIS 6.0.
|
||||||
|
* libraries/config_import.lib.php3: Fixed an inconsitence.
|
||||||
|
|
||||||
2002-09-27 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2002-09-27 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* db_details_qbe.php3: PHP3 fixes & coding standards.
|
* db_details_qbe.php3: PHP3 fixes & coding standards.
|
||||||
* db_details_importdocsql.php3: optimization, xhtml fixes & coding
|
* db_details_importdocsql.php3: optimization, xhtml fixes & coding
|
||||||
|
@@ -467,7 +467,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
|
|||||||
// page.
|
// page.
|
||||||
if (empty($cfg['PmaAbsoluteUri'])) {
|
if (empty($cfg['PmaAbsoluteUri'])) {
|
||||||
$port_in_HTTP_HOST = (strpos($HTTP_SERVER_VARS['HTTP_HOST'], ':') > 0);
|
$port_in_HTTP_HOST = (strpos($HTTP_SERVER_VARS['HTTP_HOST'], ':') > 0);
|
||||||
$cfg['PmaAbsoluteUri'] = (!empty($HTTP_SERVER_VARS['HTTPS']) ? 'https' : 'http') . '://'
|
$cfg['PmaAbsoluteUri'] = ((!empty($HTTP_SERVER_VARS['HTTPS']) && strtolower($HTTP_SERVER_VARS['HTTPS']) != 'off') ? 'https' : 'http') . '://'
|
||||||
. $HTTP_SERVER_VARS['HTTP_HOST']
|
. $HTTP_SERVER_VARS['HTTP_HOST']
|
||||||
. ((!empty($HTTP_SERVER_VARS['SERVER_PORT']) && !$port_in_HTTP_HOST) ? ':' . $HTTP_SERVER_VARS['SERVER_PORT'] : '')
|
. ((!empty($HTTP_SERVER_VARS['SERVER_PORT']) && !$port_in_HTTP_HOST) ? ':' . $HTTP_SERVER_VARS['SERVER_PORT'] : '')
|
||||||
. substr($PHP_SELF, 0, strrpos($PHP_SELF, '/') + 1);
|
. substr($PHP_SELF, 0, strrpos($PHP_SELF, '/') + 1);
|
||||||
|
@@ -30,6 +30,9 @@ if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')){
|
|||||||
|
|
||||||
if (isset($cfg['Servers'])) {
|
if (isset($cfg['Servers'])) {
|
||||||
for ($i=1; (!empty($cfg['Servers'][$i]['host']) || (isset($cfg['Servers'][$i]['connect_type']) && $cfg['Servers'][$i]['connect_type'] == 'socket')); $i++) {
|
for ($i=1; (!empty($cfg['Servers'][$i]['host']) || (isset($cfg['Servers'][$i]['connect_type']) && $cfg['Servers'][$i]['connect_type'] == 'socket')); $i++) {
|
||||||
|
if (!isset($cfg['Servers'][$i]['host'])) {
|
||||||
|
$cfg['Servers'][$i]['host'] = '';
|
||||||
|
}
|
||||||
if (!isset($cfg['Servers'][$i]['port'])) {
|
if (!isset($cfg['Servers'][$i]['port'])) {
|
||||||
$cfg['Servers'][$i]['port'] = '';
|
$cfg['Servers'][$i]['port'] = '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user