Ensure the server hostname is find whatever is the php configuration
This commit is contained in:
@@ -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)
|
||||
|
||||
|
12
index.php3
12
index.php3
@@ -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">
|
||||
|
Reference in New Issue
Block a user