Apparently the mysqldump was not acceptable for import.
[openemr.git] / interface / main / myadmin / index.php
blob77686f6e4af0956801282700888f9d855c0307ce
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
8 /**
9 * Gets core libraries and defines some variables
11 require_once('./libraries/grab_globals.lib.php');
12 require_once('./libraries/common.lib.php');
14 // Gets the default font sizes
15 PMA_setFontSizes();
17 // Gets the host name
18 // loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
19 if (empty($HTTP_HOST)) {
20 if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) {
21 $HTTP_HOST = $_ENV['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 // no longer urlencoded because of html entities in the db name
38 // $db = urldecode($lightm_db);
39 $db = $lightm_db;
40 unset($lightm_db);
42 $url_query = PMA_generate_common_url(isset($db) ? $db : '');
44 header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
46 require_once('./libraries/relation.lib.php');
47 $cfgRelation = PMA_getRelationsParam();
49 if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) {
50 PMA_purgeHistory($cfg['Server']['user']);
53 $phpmain_hash = md5($cfg['PmaAbsoluteUri']);
54 $phpmain_hash_js = time();
56 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
57 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
58 <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; ?>">
59 <head>
60 <title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?></title>
61 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
62 <link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?lang=<?php echo $lang; ?>&amp;js_frame=right" />
63 </head>
65 <?php
66 if ($cfg['QueryFrame']) {
68 if ($cfg['QueryFrameJS']) {
69 echo '<script type="text/javascript">' . "\n";
70 echo '<!--' . "\n";
71 echo ' document.writeln(\'<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">\');' . "\n";
72 echo ' document.writeln(\' <frameset rows="*, 50" framespacing="0" frameborder="0" border="0">\');' . "\n";
73 echo ' document.writeln(\' <frame src="left.php?' . $url_query . '&amp;hash=' . $phpmain_hash . $phpmain_hash_js . '" name="nav" frameborder="0" />\');' . "\n";
74 echo ' document.writeln(\' <frame src="queryframe.php?' . $url_query . '&amp;hash=' . $phpmain_hash . $phpmain_hash_js . '" name="queryframe" frameborder="0" scrolling="no" />\');' . "\n";
75 echo ' document.writeln(\' </frameset>\');' . "\n";
76 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";
77 echo ' document.writeln(\' <noframes>\');' . "\n";
78 echo ' document.writeln(\' <body bgcolor="#FFFFFF">\');' . "\n";
79 echo ' document.writeln(\' <p>' . str_replace("'", "\'", $strNoFrames) . '</p>\');' . "\n";
80 echo ' document.writeln(\' </body>\');' . "\n";
81 echo ' document.writeln(\' </noframes>\');' . "\n";
82 echo ' document.writeln(\'</frameset>\');' . "\n";
83 echo '//-->' . "\n";
84 echo '</script>' . "\n";
85 echo "\n";
86 echo '<noscript>' . "\n";
89 echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">' . "\n";
90 echo ' <frameset rows="*, 50" framespacing="0" frameborder="0" border="0">' . "\n";
91 echo ' <frame src="left.php?' . $url_query . '&amp;hash=' . $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
92 echo ' <frame src="queryframe.php?' . $url_query . '&amp;hash=' . $phpmain_hash . '" name="queryframe" frameborder="0" scrolling="no" />' . "\n";
93 echo ' </frameset>' . "\n";
94 echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . '" frameborder="0" />' . "\n";
96 } else {
98 echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">' . "\n";
99 echo ' <frame src="left.php?' . $url_query . '&amp;hash=' . $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
100 echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . '" frameborder="1" />' . "\n";
105 <noframes>
106 <body bgcolor="#FFFFFF">
107 <p><?php echo $strNoFrames; ?></p>
108 </body>
109 </noframes>
110 </frameset>
111 <?php
112 if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
113 echo '</noscript>' . "\n";
117 </html>