libraries/mult_submits.inc.php -> sql.php
// -> db_structure.php and if we got an error on the multi submit,
// we must display it here and not call again mult_submits.inc.php
if (! isset($error) || FALSE === $error) {
require './libraries/mult_submits.inc.php';
}
if (empty($message)) {
$message = PMA_Message::success();
}
}
require './libraries/db_common.inc.php';
$url_query .= '&goto=db_structure.php';
// Gets the database structure
$sub_part = '_structure';
require './libraries/db_info.inc.php';
require_once './libraries/replication.inc.php';
}
require_once './libraries/bookmark.lib.php';
require_once './libraries/mysql_charsets.lib.php';
$db_collation = PMA_getDbCollation($db);
// in a separate file to avoid redeclaration of functions in some code paths
require_once './libraries/db_structure.lib.php';
$titles = array();
if (true == $cfg['PropertiesIconic']) {
$titles['Browse'] = '';
$titles['NoBrowse'] = '
';
$titles['Search'] = '
';
$titles['NoSearch'] = '
';
$titles['Insert'] = '
';
$titles['NoInsert'] = '
';
$titles['Structure'] = '
';
$titles['Drop'] = '
';
$titles['NoDrop'] = '
';
$titles['Empty'] = '
';
$titles['NoEmpty'] = '
';
if ('both' === $cfg['PropertiesIconic']) {
$titles['Browse'] .= $strBrowse;
$titles['Search'] .= $strSearch;
$titles['NoBrowse'] .= $strBrowse;
$titles['NoSearch'] .= $strSearch;
$titles['Insert'] .= $strInsert;
$titles['NoInsert'] .= $strInsert;
$titles['Structure'] .= $strStructure;
$titles['Drop'] .= $strDrop;
$titles['NoDrop'] .= $strDrop;
$titles['Empty'] .= $strEmpty;
$titles['NoEmpty'] .= $strEmpty;
}
} else {
$titles['Browse'] = $strBrowse;
$titles['Search'] = $strSearch;
$titles['NoBrowse'] = $strBrowse;
$titles['NoSearch'] = $strSearch;
$titles['Insert'] = $strInsert;
$titles['NoInsert'] = $strInsert;
$titles['Structure'] = $strStructure;
$titles['Drop'] = $strDrop;
$titles['NoDrop'] = $strDrop;
$titles['Empty'] = $strEmpty;
$titles['NoEmpty'] = $strEmpty;
}
// 1. No tables
if ($num_tables == 0) {
echo '
' . $strNoTablesFound . '
' . "\n"; // Routines require './libraries/db_routines.inc.php'; // Events if (PMA_MYSQL_INT_VERSION > 50100) { require './libraries/db_events.inc.php'; } if (empty($db_is_information_schema)) { require './libraries/display_create_table.lib.php'; } // end if (Create Table dialog) /** * Displays the footer */ require_once './libraries/footer.inc.php'; exit; } // else // 2. Shows table informations /** * Displays the tables list */ $_url_params = array( 'pos' => $pos, 'db' => $db); // Add the sort options if they exists if (isset($_REQUEST['sort'])) { $_url_params['sort'] = $_REQUEST['sort']; } if (isset($_REQUEST['sort_order'])) { $_url_params['sort_order'] = $_REQUEST['sort_order']; } PMA_listNavigator($total_num_tables, $pos, $_url_params, 'db_structure.php', 'frame_content', $GLOBALS['cfg']['MaxTableList']); ?>';
echo '';
if ($cfg['PropertiesIconic']) {
echo '';
}
echo $strPrintView . ' ';
echo '';
if ($cfg['PropertiesIconic']) {
echo '
';
}
echo $strDataDict . '';
echo '