Ensure the server hostname is find whatever is the php configuration

This commit is contained in:
Loïc Chapeaux
2001-06-10 20:18:45 +00:00
parent f0e1d4f8b8
commit 7a443cd79f
2 changed files with 17 additions and 3 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-06-10 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* index.php3: ensure the server hostname is find whatever is the php
configuration
2001-06-09 Armel Fauveau <armel.fauveau@globalis-ms.com>
* add multiple dump feature (Feature #424176)

View File

@@ -1,11 +1,21 @@
<?php
// Process config file to determine default server (if any)
require('./lib.inc.php3');
// Get the host name
if (empty($HTTP_HOST)) {
if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) {
$HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST'];
}
else if (@getenv('HTTP_HOST')) {
$HTTP_HOST = getenv('HTTP_HOST');
}
}
?>
<html>
<head>
<title>phpMyAdmin - <?php echo getenv('HTTP_HOST') ;?></title>
<title>phpMyAdmin - <?php echo $HTTP_HOST;?></title>
</head>
<frameset cols="150,*" rows="*" border="0" frameborder="0">