583 lines
21 KiB
PHP
583 lines
21 KiB
PHP
<?php
|
|
/* $Id$ */
|
|
// vim: expandtab sw=4 ts=4 sts=4:
|
|
/**
|
|
* display db and table selection
|
|
*/
|
|
|
|
/**
|
|
* Gets the variables sent to this script, retains the db name that may have
|
|
* been defined as startup option and include a core library
|
|
*/
|
|
require_once('./libraries/grab_globals.lib.php');
|
|
|
|
// free the session file, for the other frames to be loaded
|
|
session_write_close();
|
|
|
|
if (!empty($db)) {
|
|
$db_start = $db;
|
|
} else {
|
|
$db_start = '';
|
|
}
|
|
|
|
$db = isset( $db ) ? $db : '';
|
|
$table = isset( $table ) ? $table : '';
|
|
|
|
/**
|
|
* Gets a core script and starts output buffering work
|
|
*/
|
|
require_once('./libraries/common.lib.php');
|
|
require_once('./libraries/ob.lib.php');
|
|
if ($GLOBALS['cfg']['OBGzip']) {
|
|
$ob_mode = PMA_outBufferModeGet();
|
|
if ($ob_mode) {
|
|
PMA_outBufferPre($ob_mode);
|
|
}
|
|
}
|
|
|
|
require_once('./libraries/bookmark.lib.php');
|
|
require_once('./libraries/relation.lib.php');
|
|
$cfgRelation = PMA_getRelationsParam();
|
|
|
|
/**
|
|
* Get the list and number of available databases.
|
|
* Skipped if no server selected: in this case no database should be displayed
|
|
* before the user choose among available ones at the welcome screen.
|
|
*/
|
|
if ($server > 0) {
|
|
// this function is defined in "common.lib.php"
|
|
// it defines $num_dbs and $dblist
|
|
PMA_availableDatabases();
|
|
} else {
|
|
$num_dbs = 0;
|
|
}
|
|
|
|
|
|
// garvin: For re-usability, moved http-headers
|
|
// to a seperate file. It can now be included by header.inc.php,
|
|
// queryframe.php, querywindow.php.
|
|
|
|
require_once('./libraries/header_http.inc.php');
|
|
|
|
/**
|
|
* Displays the frame
|
|
*/
|
|
// remove vertical scroll bar bug in ie
|
|
echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">";
|
|
?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<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; ?>">
|
|
|
|
<head>
|
|
<title>phpMyAdmin</title>
|
|
<meta http-equiv="Content-Type"
|
|
content="text/html; charset=<?php echo $charset; ?>" />
|
|
<base href="<?php echo $GLOBALS['cfg']['PmaAbsoluteUri']; ?>"
|
|
target="phpmain<?php echo $_SESSION['window_name_hash']; ?>" />
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
<!--
|
|
var table = '<?php echo $GLOBALS['table']; ?>';
|
|
var db = '<?php echo $GLOBALS['db']; ?>';
|
|
var querywindowurl = 'querywindow.php?<?php
|
|
echo PMA_generate_common_url('','','&'); ?>';
|
|
var querywindow = '';
|
|
|
|
// sets current selected table (called from footer.inc.php)
|
|
function setTable( new_db, new_table ) {
|
|
if ( new_db != db ) {
|
|
if ( typeof( document.getElementById( new_db ) ) == 'undefined' ) {
|
|
goTo('left.php?<?php echo PMA_generate_common_url('','','&');?>&db=' + new_db + '&table=' + new_table);
|
|
return;
|
|
}
|
|
db = new_db;
|
|
}
|
|
|
|
if ( new_table != table ) {
|
|
if ( typeof( document.getElementById( new_db + '.' + new_table ) ) == 'undefined' ) {
|
|
goTo('left.php?<?php echo PMA_generate_common_url('','','&');?>&db=' + new_db + '&table=' + new_table);
|
|
return;
|
|
}
|
|
table = new_table;
|
|
}
|
|
}
|
|
|
|
// opens selected db in left and main frame
|
|
function openDb( db, nomain ) {
|
|
goTo('left.php?<?php echo PMA_generate_common_url('','','&');?>&db=' + db);
|
|
if ( !nomain ) {
|
|
goTo(
|
|
'<?php echo $GLOBALS['cfg']['DefaultTabDatabase'] . '?'
|
|
. PMA_generate_common_url('','','&');?>&db=' + db,
|
|
window.parent.frames[1] );
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
function open_querywindow( url ) {
|
|
if ( ! url ) {
|
|
url = querywindowurl + '&db=' + db + '&table=' + table;
|
|
}
|
|
|
|
if (!querywindow.closed && querywindow.location) {
|
|
querywindow.focus();
|
|
} else {
|
|
querywindow=window.open( url, '',
|
|
'toolbar=0,location=0,directories=0,status=1,menubar=0,' +
|
|
'scrollbars=yes,resizable=yes,' +
|
|
'width=<?php echo $GLOBALS['cfg']['QueryWindowWidth']; ?>,' +
|
|
'height=<?php echo $GLOBALS['cfg']['QueryWindowHeight']; ?>');
|
|
}
|
|
|
|
if (!querywindow.opener) {
|
|
querywindow.opener = blank;
|
|
}
|
|
|
|
if (window.focus) {
|
|
querywindow.focus();
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
function toggle( id, only_open ) {
|
|
el = document.getElementById('subel' + id);
|
|
if ( ! el ) {
|
|
return false;
|
|
}
|
|
|
|
img = document.getElementById('el' + id + 'Img');
|
|
|
|
if ( el.style.display == 'none' || only_open ) {
|
|
el.style.display = '';
|
|
if ( img ) {
|
|
img.src = '<?php echo $pmaThemeImage; ?>b_minus.png';
|
|
img.alt = '-';
|
|
}
|
|
} else {
|
|
el.style.display = 'none';
|
|
if ( img ) {
|
|
img.src = '<?php echo $pmaThemeImage; ?>b_plus.png';
|
|
img.alt = '+';
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function goTo( targeturl, target ) {
|
|
if ( target == 'main' ) {
|
|
target = window.parent.frames[1];
|
|
} else if ( target == 'query' ) {
|
|
//target = window.parent.frames[1];
|
|
return open_querywindow( targeturl );
|
|
} else if ( ! target ) {
|
|
target = window.parent.frames[0];
|
|
}
|
|
|
|
if ( target ) {
|
|
if ( target.location.href == targeturl ) {
|
|
return true;
|
|
} else if ( target.location.href == '<?php echo $GLOBALS['cfg']['PmaAbsoluteUri']; ?>' + targeturl ) {
|
|
return true;
|
|
}
|
|
<?php if (PMA_USR_BROWSER_AGENT != 'SAFARI') { ?>
|
|
target.location.replace(targeturl);
|
|
<?php } else { ?>
|
|
target.location.href = targeturl;
|
|
<?php } ?>
|
|
}
|
|
|
|
return true;
|
|
}
|
|
//-->
|
|
</script>
|
|
<link rel="stylesheet" type="text/css"
|
|
href="./css/phpmyadmin.css.php?js_frame=left" />
|
|
</head>
|
|
|
|
<body id="body_leftFrame">
|
|
<?php
|
|
require 'libraries/left_header.inc.php';
|
|
|
|
if ( $num_dbs === 0 ) {
|
|
// no database available, so we break here
|
|
echo '<p>' . $strNoDatabases . '</p></body></html>';
|
|
|
|
/**
|
|
* Close MySql connections
|
|
*/
|
|
if (isset($dbh) && $dbh) {
|
|
@PMA_DBI_close($dbh);
|
|
}
|
|
if (isset($userlink) && $userlink) {
|
|
@PMA_DBI_close($userlink);
|
|
}
|
|
|
|
/**
|
|
* Sends bufferized data
|
|
*/
|
|
if ( $GLOBALS['cfg']['OBGzip'] && isset( $ob_mode ) && $ob_mode ) {
|
|
PMA_outBufferPost( $ob_mode );
|
|
}
|
|
exit();
|
|
} elseif ( $GLOBALS['cfg']['LeftFrameLight'] && $num_dbs > 1 ) {
|
|
// more than one database available and LeftFrameLight is true
|
|
// display db selectbox
|
|
|
|
$_location = PMA_generate_common_url( '', '' );
|
|
?>
|
|
<div id="databaseList">
|
|
<form method="post" action="index.php" target="_parent" id="left"
|
|
onsubmit="
|
|
<?php /* open database in main window */ ?>
|
|
goTo( '<?php echo $GLOBALS['cfg']['DefaultTabDatabase'] . '?'
|
|
. $_location; ?>&db=' + this.value, 'main' );
|
|
<?php /* refresh left frame with tables from selected db */ ?>
|
|
goTo( 'left.php?<?php echo $_location; ?>&db=' + this.value);
|
|
return false;">
|
|
<label for="lightm_db"><?php echo $strDatabase; ?></label>
|
|
<?php
|
|
echo PMA_generate_common_hidden_inputs() . "\n";
|
|
echo PMA_getHtmlSelectDb( $db ) . "\n";
|
|
echo '<noscript>' . "\n"
|
|
.'<input type="submit" name="Go" value="' . $strGo . '" />' . "\n"
|
|
.'</noscript>' . "\n"
|
|
.'</form>' . "\n"
|
|
.'</div>' . "\n";
|
|
unset( $_location );
|
|
}
|
|
?>
|
|
<!-- Databases and tables list -->
|
|
<div id="left_tableList">
|
|
<?php
|
|
// Don't display expansible/collapsible database info if:
|
|
// 1. $server == 0 (no server selected)
|
|
// This is the case when there are multiple servers and
|
|
// '$GLOBALS['cfg']['ServerDefault'] = 0' is set. In that case, we want the welcome
|
|
// screen to appear with no database info displayed.
|
|
// 2. there is only one database available (ie either only one database exists
|
|
// or $GLOBALS['cfg']['Servers']['only_db'] is defined and is not an array)
|
|
// In this case, the database should not be collapsible/expandable
|
|
|
|
// Light mode -> beginning of the select combo for databases
|
|
// Note: When javascript is active, the frameset will be changed from
|
|
// within left.php. With no JS (<noscript>) the whole frameset will
|
|
// be rebuilt with the new target frame.
|
|
|
|
$img_plus = '<img id="el%dImg" src="' . $pmaThemeImage . 'b_plus.png"'
|
|
.' width="9" height="9" alt="+" />';
|
|
$img_minus = '<img id="el%dImg" src="' . $pmaThemeImage . 'b_minus.png"'
|
|
.' width="9" height="9" alt="-" />';
|
|
|
|
$href_left = '<a onclick="if ( toggle(\'%d\') ) return false;"'
|
|
.' href="left.php?%s" target="_self">';
|
|
|
|
$element_counter = 0;
|
|
|
|
if ( $GLOBALS['cfg']['LeftFrameLight'] && ! empty( $db ) ) {
|
|
$common_url_query = PMA_generate_common_url( $db );
|
|
$table_list = PMA_getTableList( $db );
|
|
if ( count( $table_list ) > 0 ) {
|
|
PMA_displayTableList( $table_list, true, '', $db );
|
|
} else {
|
|
echo $strNoTablesFound;
|
|
}
|
|
unset( $table_list );
|
|
} elseif ( $GLOBALS['cfg']['LeftFrameLight'] ) {
|
|
echo '<p>' . $GLOBALS['strSelectADb'] . '</p>' . "\n";
|
|
} else {
|
|
$common_url_query = PMA_generate_common_url();
|
|
PMA_displayDbList( PMA_getDbList() );
|
|
}
|
|
|
|
/**
|
|
* displays collapsable db list
|
|
*
|
|
* @uses $_REQUEST['dbgroup']
|
|
* @uses $GLOBALS['cfg']['DefaultTabDatabase']
|
|
* @uses $GLOBALS['strSelectADb']
|
|
* @uses strpos()
|
|
* @uses urlencode()
|
|
* @uses printf()
|
|
* @uses htmlspecialchars()
|
|
* @uses PMA_generate_common_url()
|
|
* @uses PMA_getTableList()
|
|
* @uses PMA_displayTableList()
|
|
* @global $element_counter
|
|
* @global $img_minus
|
|
* @global $img_plus
|
|
* @global $href_left
|
|
* @global $num_dbs
|
|
* @global $db_start
|
|
* @global $common_url_query
|
|
* @param array $ext_dblist extended db list
|
|
*/
|
|
function PMA_displayDbList( $ext_dblist ) {
|
|
global $element_counter, $img_minus, $img_plus, $href_left, $num_dbs,
|
|
$db_start, $common_url_query;
|
|
|
|
$url_dbgroup = '';
|
|
echo '<ul id="leftdatabaselist">';
|
|
$close_db_group = false;
|
|
foreach ( $ext_dblist as $group => $db_group ) {
|
|
if ( $num_dbs > 1 ) {
|
|
if ( $close_db_group ) {
|
|
$url_dbgroup = '';
|
|
echo '</ul>';
|
|
echo '</li>';
|
|
$close_db_group = false;
|
|
}
|
|
if ( count( $db_group ) > 1 ) {
|
|
$close_db_group = true;
|
|
$url_dbgroup = '&dbgroup=' . urlencode( $group );
|
|
$common_url_query = PMA_generate_common_url() . $url_dbgroup;
|
|
$element_counter++;
|
|
echo '<li class="dbgroup">';
|
|
if ( ( ! empty( $_REQUEST['dbgroup'] ) && $_REQUEST['dbgroup'] == $group )
|
|
|| $db_start == $group || strpos( $db_start, $group ) === 0 ) {
|
|
// display + only if this db(group) is not preselected
|
|
printf( $href_left, $element_counter, PMA_generate_common_url() );
|
|
printf( $img_minus, $element_counter );
|
|
} else {
|
|
printf( $href_left, $element_counter, $common_url_query );
|
|
printf( $img_plus, $element_counter );
|
|
}
|
|
echo '</a> ' . $group . "\n";
|
|
if ( ( ! empty( $_REQUEST['dbgroup'] ) && $_REQUEST['dbgroup'] == $group )
|
|
|| $db_start == $group || strpos( $db_start, $group ) === 0 ) {
|
|
echo '<ul id="subel' . $element_counter . '">' . "\n";
|
|
} else {
|
|
echo '<ul id="subel' . $element_counter . '"'
|
|
.' style="display: none">' . "\n";
|
|
}
|
|
}
|
|
}
|
|
foreach ( $db_group as $db ) {
|
|
$common_url_query = PMA_generate_common_url( $db['name'] ) . $url_dbgroup;
|
|
|
|
$element_counter++;
|
|
// Displays the database name
|
|
echo '<li>' . "\n";
|
|
|
|
if ( $num_dbs > 1 ) {
|
|
// only with more than one db we need collapse ...
|
|
if ( $db_start != $db['name'] || $db['num_tables'] < 1 ) {
|
|
// display + only if this db is not preselected
|
|
// or table count is 0
|
|
printf( $href_left, $element_counter, $common_url_query );
|
|
printf( $img_plus, $element_counter );
|
|
} else {
|
|
printf( $href_left, $element_counter,
|
|
PMA_generate_common_url() . $url_dbgroup );
|
|
printf( $img_minus, $element_counter );
|
|
}
|
|
echo '</a>';
|
|
|
|
// ... and we need to refresh both frames on db selection
|
|
?>
|
|
<a class="item"
|
|
id="<?php echo $db['name']; ?>"
|
|
href="index.php?<?php echo $common_url_query; ?>"
|
|
target="_parent"
|
|
title="<?php echo htmlspecialchars( $db['comment'] ); ?>"
|
|
onclick="
|
|
if ( ! toggle('<?php echo $element_counter; ?>', true) )
|
|
goTo( './left.php?<?php echo $common_url_query; ?>' );
|
|
goTo( './<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
|
|
. '?' . $common_url_query; ?>', 'main' );
|
|
return false;">
|
|
<?php echo htmlspecialchars( $db['disp_name'] ); ?>
|
|
(<?php echo $db['num_tables']; ?>)
|
|
</a>
|
|
<?php
|
|
} else {
|
|
// with only 1 db available we dont need to refresh left frame
|
|
// on db selection, only phpmain
|
|
?>
|
|
<a href="<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
|
|
. '?' . $common_url_query; ?>"
|
|
id="<?php echo $db['name']; ?>"
|
|
title="<?php echo htmlspecialchars( $db['comment'] ); ?>">
|
|
<?php echo htmlspecialchars( $db['disp_name'] ); ?>
|
|
(<?php echo $db['num_tables']; ?>)
|
|
</a>
|
|
<?php
|
|
}
|
|
if ( $db['num_tables'] ) {
|
|
$tables = PMA_getTableList( $db['name'] );
|
|
$child_visible =
|
|
(bool) ($num_dbs === 1 || $db_start == $db['name']);
|
|
PMA_displayTableList( $tables, $child_visible, '', $db['name'] );
|
|
} elseif ( $GLOBALS['cfg']['LeftFrameLight'] ) {
|
|
// no tables and LeftFrameLight:
|
|
// display message no tables in selected db
|
|
echo '<p>' . $GLOBALS['strSelectADb'] . '</p>' . "\n";
|
|
}
|
|
echo '</li>' . "\n";
|
|
} // end foreach db
|
|
} // end foreach group
|
|
|
|
if ( $close_db_group ) {
|
|
$url_dbgroup = '';
|
|
echo '</ul>';
|
|
echo '</li>';
|
|
$close_db_group = false;
|
|
}
|
|
|
|
echo '</ul>' . "\n";
|
|
}
|
|
|
|
/**
|
|
* display unordered list of tables
|
|
* calls itself recursively if table in given list
|
|
* is a list itself
|
|
*
|
|
* @uses is_array()
|
|
* @uses count()
|
|
* @uses urlencode()
|
|
* @uses strpos()
|
|
* @uses printf()
|
|
* @uses htmlspecialchars()
|
|
* @uses strlen()
|
|
* @uses is_array()
|
|
* @uses PMA_displayTableList()
|
|
* @uses $_REQUEST['tbl_group']
|
|
* @uses $GLOBALS['common_url_query']
|
|
* @uses $GLOBALS['table']
|
|
* @uses $GLOBALS['pmaThemeImage']
|
|
* @uses $GLOBALS['cfg']['LeftFrameTableSeparator']
|
|
* @uses $GLOBALS['cfg']['DefaultTabDatabase']
|
|
* @uses $GLOBALS['cfg']['DefaultTabTable']
|
|
* @uses $GLOBALS['strRows']
|
|
* @uses $GLOBALS['strBrowse']
|
|
* @global $element_counter
|
|
* @global $img_minus
|
|
* @global $img_plus
|
|
* @global $href_left
|
|
* @param array $tables array of tables/tablegroups
|
|
* @param boolean $visible wether the list is visible or not
|
|
* @param string $tab_group_full full tab group name
|
|
* @param string $table_db db of this table
|
|
*/
|
|
function PMA_displayTableList( $tables, $visible = false,
|
|
$tab_group_full = '', $table_db = '' ) {
|
|
|
|
if ( ! is_array( $tables ) || count( $tables ) === 0 ) {
|
|
return;
|
|
}
|
|
|
|
global $element_counter, $img_minus, $img_plus, $href_left;
|
|
$sep = $GLOBALS['cfg']['LeftFrameTableSeparator'];
|
|
|
|
if ( $visible ) {
|
|
echo '<ul id="subel' . $element_counter . '">';
|
|
} else {
|
|
echo '<ul id="subel' . $element_counter . '" style="display: none">';
|
|
}
|
|
foreach( $tables as $group => $table ) {
|
|
if ( isset( $table['is' . $sep . 'group'] ) ) {
|
|
$common_url_query = $GLOBALS['common_url_query']
|
|
. '&tbl_group=' . urlencode( $tab_group_full . $group );
|
|
|
|
$element_counter++;
|
|
echo '<li>' . "\n";
|
|
if ( $visible &&
|
|
(( isset( $_REQUEST['tbl_group'] )
|
|
&& ( strpos( $_REQUEST['tbl_group'], $group ) === 0
|
|
|| strpos( $_REQUEST['tbl_group'], $sep . $group ) !== false ) )
|
|
||
|
|
( isset( $GLOBALS['table'] )
|
|
&& strpos( $GLOBALS['table'], $group ) === 0 ) ) ) {
|
|
printf( $href_left, $element_counter,
|
|
$GLOBALS['common_url_query'] . '&tbl_group=' . $tab_group_full );
|
|
printf( $img_minus, $element_counter );
|
|
} else {
|
|
printf( $href_left, $element_counter, $common_url_query );
|
|
printf( $img_plus, $element_counter );
|
|
}
|
|
echo '</a>';
|
|
|
|
?>
|
|
<a href="index.php?<?php echo $common_url_query; ?>"
|
|
target="_parent"
|
|
onclick="
|
|
if ( ! toggle('<?php echo $element_counter; ?>', true) )
|
|
goTo( './left.php?<?php echo $common_url_query; ?>' );
|
|
goTo( './<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
|
|
. '?' . $common_url_query; ?>', 'main' );
|
|
return false;">
|
|
<?php echo htmlspecialchars( substr( $group, 0, strlen( $group ) - strlen( $sep ) ) ); ?>
|
|
(<?php echo $table['tab_count']; ?>)
|
|
</a>
|
|
<?php
|
|
|
|
unset( $table['is' . $sep . 'group'] );
|
|
unset( $table['tab' . $sep . 'group'] );
|
|
unset( $table['tab' . $sep . 'count'] );
|
|
|
|
if ( $visible &&
|
|
(( isset( $_REQUEST['tbl_group'] )
|
|
&& ( strpos( $_REQUEST['tbl_group'], $group ) === 0
|
|
|| strpos( $_REQUEST['tbl_group'], $sep . $group ) !== false ) )
|
|
||
|
|
( isset( $GLOBALS['table'] )
|
|
&& strpos( $GLOBALS['table'], $group ) === 0 ) ) ) {
|
|
PMA_displayTableList( $table, true,
|
|
$tab_group_full . $group, $table_db );
|
|
} else {
|
|
PMA_displayTableList( $table, false, '', $table_db );
|
|
}
|
|
echo '</li>' . "\n";
|
|
} elseif ( is_array( $table ) ) {
|
|
$href = $GLOBALS['cfg']['DefaultTabTable'] . '?'
|
|
.$GLOBALS['common_url_query'] . '&table='
|
|
.urlencode( $table['Name'] );
|
|
echo '<li>' . "\n";
|
|
echo '<a title="' . $GLOBALS['strBrowse'] . ': '
|
|
. htmlspecialchars( $table['Comment'] )
|
|
.' (' . $table['Rows'] . ' ' . $GLOBALS['strRows'] . ')"'
|
|
.' id="' . htmlspecialchars( $table_db . '.' . $table['Name'] ) . '"'
|
|
.' href="sql.php?' . $GLOBALS['common_url_query']
|
|
.'&table=' . urlencode( $table['Name'] )
|
|
.'&goto=' . $GLOBALS['cfg']['DefaultTabTable']
|
|
.'&sql_query=' . urlencode('SELECT * FROM `'
|
|
. $table['Name'] . '`') . '" '
|
|
.' >'
|
|
.'<img src="' . $GLOBALS['pmaThemeImage'] . 'b_sbrowse.png"'
|
|
.' width="10" height="10" alt="*" /></a>' . "\n"
|
|
.'<a href="' . $href . '" title="' . $table['Comment']
|
|
.' (' . $table['Rows'] . ' ' . $GLOBALS['strRows'] . ')">'
|
|
. htmlspecialchars( $table['disp_name'] ) . '</a>';
|
|
echo '</li>' . "\n";
|
|
}
|
|
}
|
|
echo '</ul>' . "\n";
|
|
}
|
|
?>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<?php
|
|
/**
|
|
* Close MySql connections
|
|
*/
|
|
if (isset($dbh) && $dbh) {
|
|
@PMA_DBI_close($dbh);
|
|
}
|
|
if (isset($userlink) && $userlink) {
|
|
@PMA_DBI_close($userlink);
|
|
}
|
|
|
|
/**
|
|
* Sends bufferized data
|
|
*/
|
|
if ( $GLOBALS['cfg']['OBGzip'] && isset( $ob_mode ) && $ob_mode ) {
|
|
PMA_outBufferPost( $ob_mode );
|
|
}
|
|
?>
|