Files
phpmyadmin/index.php3
2001-07-30 21:21:19 +00:00

46 lines
1.1 KiB
PHP
Executable File

<?php
/* $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');
}
}
/**
* 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>
</head>
<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>
</noframes>
</html>