3 // vim: expandtab sw=4 ts=4 sts=4:
7 * Gets the variables sent to this script, retains the db name that may have
8 * been defined as startup option and include a core library
10 require('./libraries/grab_globals.lib.php3');
17 * Gets a core script and starts output buffering work
19 require('./libraries/common.lib.php3');
20 require('./libraries/ob.lib.php3');
22 $ob_mode = PMA_outBufferModeGet();
24 PMA_outBufferPre($ob_mode);
28 // garvin: For re-usability, moved http-headers
29 // to a seperate file. It can now be included by header.inc.php3,
30 // queryframe.php3, querywindow.php3.
32 include('./libraries/header_http.inc.php3');
37 // Gets the font sizes to use
40 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
41 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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; ?>">
45 <title
>phpMyAdmin
</title
>
46 <meta http
-equiv
="Content-Type" content
="text/html; charset=<?php echo $charset; ?>" />
47 <base
<?php
if (!empty($cfg['PmaAbsoluteUri'])) echo ' href="' . $cfg['PmaAbsoluteUri'] . '"'; ?
> />
48 <link rel
="stylesheet" type
="text/css" href
="./css/phpmyadmin.css.php3?lang=<?php echo $lang; ?>&js_frame=left&num_dbs=0" />
50 if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
52 <script type
="text/javascript" language
="javascript">
55 function open_querywindow(url
) {
57 if (!querywindow
.closed
&& querywindow
.location
) {
60 querywindow
=window
.open(url +
'&db=' + document
.queryframeform
.db
.value +
'&table=' + document
.queryframeform
.table
.value
, 'js_querywindow','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width=<?php echo $cfg['QueryWindowWidth
']; ?>,height=<?php echo $cfg['QueryWindowHeight
']; ?>');
63 if (!querywindow
.opener
) {
64 querywindow
.opener
= self
;
79 <body bgcolor
="<?php echo $cfg['LeftBgColor']; ?>">
80 <form name
="queryframeform" action
="queryframe.php3" method
="get">
81 <input type
="hidden" name
="db" value
="" />
82 <input type
="hidden" name
="table" value
="" />
83 <input type
="hidden" name
="framename" value
="queryframe" />
87 $anchor = 'querywindow.php3?' . PMA_generate_common_url('', '');
88 if ($cfg['QueryFrameJS']) {
91 $onclick = 'onClick="javascript:open_querywindow(\'' . $anchor . '\'); return false;"';
94 $target = 'target="phpmain"';
99 <a href
="<?php echo $href; ?>" <?php
echo $target . ' ' . $onclick; ?
>><?php
echo $strQueryFrame; ?
></a
>
107 * Close MySql connections
109 if (isset($dbh) && $dbh) {
112 if (isset($userlink) && $userlink) {
113 @mysql_close
($userlink);
118 * Sends bufferized data
120 if (isset($cfg['OBGzip']) && $cfg['OBGzip']
121 && isset($ob_mode) && $ob_mode) {
122 PMA_outBufferPost($ob_mode);