/** * start HTTP/HTML output */ require_once './libraries/header_http.inc.php'; require_once './libraries/header_meta_style.inc.php'; require_once './libraries/header_scripts.inc.php'; ?> </head> <body id="bodyquerywindow"> <div id="querywindowcontainer"> <?php if ($tabs) { echo PMA_getTabs($tabs, array()); unset($tabs); } PMA_sqlQueryForm($query_to_display, $querydisplay_tab); // Hidden forms and query frame interaction stuff $_sql_history = PMA_getHistory($GLOBALS['cfg']['Server']['user']); if (! empty($_sql_history) && ($querydisplay_tab == 'history' || $querydisplay_tab == 'full')) { $tab = $querydisplay_tab != 'full' ? 'sql' : 'full'; echo $GLOBALS['strQuerySQLHistory'] . ':<br />' . "\n" .'<ul>'; foreach ($_sql_history as $query) { echo '<li>' . "\n";
$tabs['binlog']['link'] = 'server_binlog.php'; $tabs['binlog']['text'] = $strBinaryLog; $tabs['process']['icon'] = '../../../../' . $pmaThemeImage . 's_process.png'; $tabs['process']['link'] = 'server_processlist.php'; $tabs['process']['text'] = 'caution'; $tabs['process']['class'] = 'caution'; $tabs['export']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png'; $tabs['export']['text'] = 'disabled'; $tabs['export2']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png'; $tabs['export2']['text'] = 'disabled caution'; $tabs['export2']['class'] = 'caution'; $tabs['import']['icon'] = '../../../../' . $pmaThemeImage . 'b_import.png'; $tabs['import']['link'] = 'server_import.php'; $tabs['import']['text'] = 'active'; $tabs['import']['class'] = 'active'; echo PMA_getTabs($tabs); unset($tabs); if (@file_exists($pmaThemeImage . 'logo_right.png')) { ?> <img id="pmalogoright" src="../<?php echo $pmaThemeImage; ?> logo_right.png" alt="phpMyAdmin" /> <?php } ?> <h1> <?php echo sprintf($strWelcome, '<bdo dir="ltr" xml:lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>'); ?>
* Displays tab links */ $tabs = array(); $tabs[] =& $tab_structure; $tabs[] =& $tab_sql; $tabs[] =& $tab_search; $tabs[] =& $tab_qbe; $tabs[] =& $tab_export; if (!$db_is_information_schema) { $tabs[] =& $tab_import; if ($cfgRelation['designerwork']) { $tabs[] =& $tab_designer; } $tabs[] =& $tab_operation; if ($is_superuser) { $tabs[] =& $tab_privileges; } if ($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase']) { $tabs[] =& $tab_drop; } } $url_params['db'] = $db; echo PMA_getTabs($tabs, $url_params); unset($tabs); /** * Displays a message */ if (!empty($message)) { PMA_showMessage($message); unset($message); }