merge Loic's version
This commit is contained in:
42
index.php3
42
index.php3
@@ -1,31 +1,45 @@
|
||||
<?php
|
||||
// Process config file to determine default server (if any)
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
/**
|
||||
* Gets core libraries and processes config file to determine default server
|
||||
* (if any)
|
||||
*/
|
||||
require('./grab_globals.inc.php3');
|
||||
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');
|
||||
}
|
||||
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');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
/**
|
||||
* Defines the frameset
|
||||
*/
|
||||
$url_query = 'lang=' . $lang
|
||||
. '&server=' . urlencode($server)
|
||||
. (empty($db) ? '' : '&db=' . urlencode($db));
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>phpMyAdmin <?php echo PHPMYADMIN_VERSION; ?> - <?php echo $HTTP_HOST;?></title>
|
||||
<title>phpMyAdmin <?php echo PHPMYADMIN_VERSION; ?> - <?php echo $HTTP_HOST; ?></title>
|
||||
</head>
|
||||
|
||||
<frameset cols="<?php echo $cfgLeftWidth;?>,*" rows="*" border="0" frameborder="0">
|
||||
<frame src="left.php3?server=<?php echo $server;?>&lang=<?php echo $lang; echo (empty($db)) ? '' : '&db=' . urlencode($db); ?>" name="nav">
|
||||
<frame src="<?php echo (empty($db)) ? 'main.php3' : 'db_details.php3'; ?>?server=<?php echo $server;?>&lang=<?php echo $lang; echo (empty($db)) ? '' : '&db=' . urlencode($db); ?>" name="phpmain">
|
||||
<frameset cols="<?php echo $cfgLeftWidth;?>,*" rows="*" border="0" frameborder="0">
|
||||
<frame src="left.php3?<?php echo $url_query; ?>" name="nav">
|
||||
<frame src="<?php echo (empty($db)) ? 'main.php3' : 'db_details.php3'; ?>?<?php echo $url_query; ?>" name="phpmain">
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
<body bgcolor="#FFFFFF">
|
||||
|
||||
</body>
|
||||
</body>
|
||||
</noframes>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user