home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / akce / web / phptriad / phptriad2-2-1.exe / htdocs / phpmyadmin / index.php < prev    next >
PHP Script  |  2002-01-06  |  2KB  |  64 lines

  1. <?php
  2. /* $Id: index.php,v 1.24 2001/11/25 12:20:49 loic1 Exp $ */
  3.  
  4.  
  5. /**
  6.  * Gets core libraries and defines some variables
  7.  */
  8. require('./libraries/grab_globals.lib.php');
  9. require('./libraries/common.lib.php');
  10.  
  11. // Gets the default font sizes
  12. PMA_setFontSizes();
  13.  
  14. // Gets the host name
  15. // loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
  16. if (empty($HTTP_HOST)) {
  17.     if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) {
  18.         $HTTP_HOST = $_ENV['HTTP_HOST'];
  19.     }
  20.     else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) {
  21.         $HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST'];
  22.     }
  23.     else if (@getenv('HTTP_HOST')) {
  24.         $HTTP_HOST = getenv('HTTP_HOST');
  25.     }
  26.     else {
  27.         $HTTP_HOST = '';
  28.     }
  29. }
  30.  
  31.  
  32. /**
  33.  * Defines the frameset
  34.  */
  35. $url_query = 'lang=' . $lang
  36.            . '&server=' . $server
  37.            . (empty($db) ? '' : '&db=' . urlencode($db));
  38. ?>
  39. <!DOCTYPE html
  40.     PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
  41.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  42. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>">
  43. <head>
  44. <title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?></title>
  45. <style type="text/css">
  46. <!--
  47. body  {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>}
  48. //-->
  49. </style>
  50. </head>
  51.  
  52. <frameset cols="<?php echo $cfgLeftWidth; ?>,*" rows="*">
  53.     <frame src="left.php?<?php echo $url_query; ?>" name="nav" frameborder="1" />
  54.     <frame src="<?php echo (empty($db)) ? 'main.php' : 'db_details.php'; ?>?<?php echo $url_query; ?>" name="phpmain" />
  55.  
  56.     <noframes>
  57.         <body bgcolor="#FFFFFF">
  58.             <p><?php echo $strNoFrames; ?></p>
  59.         </body>
  60.     </noframes>
  61. </frameset>
  62.  
  63. </html>
  64.