2.3.3
[phpmyadmin/crack.git] / index.php3
blobcbbd5e15e805fe118e7cf28eb6354ac2fdfafaf3
1 <?php
2 /* $Id$ */
5 /**
6 * Gets core libraries and defines some variables
7 */
8 require('./libraries/grab_globals.lib.php3');
9 require('./libraries/common.lib.php3');
11 // Gets the default font sizes
12 PMA_setFontSizes();
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'];
20 else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) {
21 $HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST'];
23 else if (@getenv('HTTP_HOST')) {
24 $HTTP_HOST = getenv('HTTP_HOST');
26 else {
27 $HTTP_HOST = '';
32 /**
33 * Defines the frameset
35 // loic1: If left light mode -> urldecode the db name
36 if (isset($lightm_db)) {
37 $db = urldecode($lightm_db);
38 unset($lightm_db);
40 $url_query = 'lang=' . $lang
41 . '&amp;convcharset=' . $convcharset
42 . '&amp;server=' . $server
43 . (empty($db) ? '' : '&amp;db=' . urlencode($db));
45 header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
47 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
48 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
49 <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; ?>">
50 <head>
51 <title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?></title>
52 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
53 <style type="text/css">
54 <!--
55 body {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>}
56 //-->
57 </style>
58 </head>
60 <frameset cols="<?php echo $cfg['LeftWidth']; ?>,*" rows="*">
61 <frame src="left.php3?<?php echo $url_query; ?>" name="nav" frameborder="1" />
62 <frame src="<?php echo (empty($db)) ? 'main.php3' : $cfg['DefaultTabDatabase']; ?>?<?php echo $url_query; ?>" name="phpmain" />
64 <noframes>
65 <body bgcolor="#FFFFFF">
66 <p><?php echo $strNoFrames; ?></p>
67 </body>
68 </noframes>
69 </frameset>
71 </html>