Documentation TYPO3 par Ameos

index.php

00001 <?php
00002 /* $Id: index.php,v 2.2 2003/11/26 22:52:24 rabus Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 
00009 require_once('./libraries/grab_globals.lib.php');
00010 require_once('./libraries/common.lib.php');
00011 
00012 // Gets the default font sizes
00013 PMA_setFontSizes();
00014 
00015 // Gets the host name
00016 // loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
00017 if (empty($HTTP_HOST)) {
00018     if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) {
00019         $HTTP_HOST = $_ENV['HTTP_HOST'];
00020     }
00021     else if (@getenv('HTTP_HOST')) {
00022         $HTTP_HOST = getenv('HTTP_HOST');
00023     }
00024     else {
00025         $HTTP_HOST = '';
00026     }
00027 }
00028 
00029 
00033 // loic1: If left light mode -> urldecode the db name
00034 if (isset($lightm_db)) {
00035 // no longer urlencoded because of html entities in the db name
00036 //    $db    = urldecode($lightm_db);
00037     $db    = $lightm_db;
00038     unset($lightm_db);
00039 }
00040 $url_query = PMA_generate_common_url(isset($db) ? $db : '');
00041 
00042 header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
00043 
00044 require_once('./libraries/relation.lib.php');
00045 $cfgRelation = PMA_getRelationsParam();
00046 
00047 if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) {
00048     PMA_purgeHistory($cfg['Server']['user']);
00049 }
00050 
00051 $phpmain_hash = md5($cfg['PmaAbsoluteUri']);
00052 $phpmain_hash_js = time();
00053 ?>
00054 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
00055     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
00056 <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; ?>">
00057 <head>
00058 <title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?></title>
00059 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
00060 <link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?lang=<?php echo $lang; ?>&amp;js_frame=right" />
00061 </head>
00062 
00063 <?php
00064 if ($cfg['QueryFrame']) {
00065 
00066     if ($cfg['QueryFrameJS']) {
00067         echo '<script type="text/javascript">' . "\n";
00068         echo '<!--' . "\n";
00069         echo '    document.writeln(\'<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">\');' . "\n";
00070         echo '    document.writeln(\'    <frameset rows="*, 50" framespacing="0" frameborder="0" border="0">\');' . "\n";
00071         echo '    document.writeln(\'        <frame src="left.php?' . $url_query . '&amp;hash=' . $phpmain_hash . $phpmain_hash_js . '" name="nav" frameborder="0" />\');' . "\n";
00072         echo '    document.writeln(\'        <frame src="queryframe.php?' . $url_query . '&amp;hash=' . $phpmain_hash . $phpmain_hash_js . '" name="queryframe" frameborder="0" scrolling="no" />\');' . "\n";
00073         echo '    document.writeln(\'    </frameset>\');' . "\n";
00074         echo '    document.writeln(\'    <frame src="' . (empty($db) ? $cfg['DefaultTabServer']  : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . $phpmain_hash_js . '" border="0" frameborder="0" />\');' . "\n";
00075         echo '    document.writeln(\'    <noframes>\');' . "\n";
00076         echo '    document.writeln(\'        <body bgcolor="#FFFFFF">\');' . "\n";
00077         echo '    document.writeln(\'            <p>' . str_replace("'", "\'", $strNoFrames) . '</p>\');' . "\n";
00078         echo '    document.writeln(\'        </body>\');' . "\n";
00079         echo '    document.writeln(\'    </noframes>\');' . "\n";
00080         echo '    document.writeln(\'</frameset>\');' . "\n";
00081         echo '//-->' . "\n";
00082         echo '</script>' . "\n";
00083         echo "\n";
00084         echo '<noscript>' . "\n";
00085     }
00086 
00087     echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*"  border="1" frameborder="1" framespacing="0">' . "\n";
00088     echo '    <frameset rows="*, 50" framespacing="0" frameborder="0" border="0">' . "\n";
00089     echo '        <frame src="left.php?' . $url_query . '&amp;hash=' . $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
00090     echo '        <frame src="queryframe.php?' . $url_query . '&amp;hash=' . $phpmain_hash . '" name="queryframe" frameborder="0" scrolling="no" />' . "\n";
00091     echo '    </frameset>' . "\n";
00092     echo '    <frame src="' . (empty($db) ? $cfg['DefaultTabServer']  : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . '" frameborder="0" />' . "\n";
00093 
00094 } else {
00095 
00096     echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">' . "\n";
00097     echo '    <frame src="left.php?' . $url_query . '&amp;hash=' . $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
00098     echo '    <frame src="' . (empty($db) ? $cfg['DefaultTabServer']  : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . '" frameborder="1" />' . "\n";
00099 
00100 }
00101 ?>
00102 
00103     <noframes>
00104         <body bgcolor="#FFFFFF">
00105             <p><?php echo $strNoFrames; ?></p>
00106         </body>
00107     </noframes>
00108 </frameset>
00109 <?php
00110 if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
00111     echo '</noscript>' . "\n";
00112 }
00113 ?>
00114 
00115 </html>


Généré par TYPO3 Ameos avec  doxygen 1.4.6