add($db, $table); if ($tmp_result === true) { echo ''; } else { $error = $tmp_result; $error->display(); } } /** * This is not an Ajax request so we need to generate all this output. */ if (isset($GLOBALS['is_ajax_request']) && !$GLOBALS['is_ajax_request']) { if (empty($GLOBALS['is_header_sent'])) { /** * Gets a core script and starts output buffering work */ include_once './libraries/ob.lib.php'; PMA_outBufferPre(); // if database storage for user preferences is transient, offer to load // exported settings from localStorage (detection will be done in JavaScript) $userprefs_offer_import = $GLOBALS['PMA_Config']->get('user_preferences') == 'session' && ! isset($_SESSION['userprefs_autoload']); if ($userprefs_offer_import) { $GLOBALS['js_include'][] = 'config.js'; } // For re-usability, moved http-headers and stylesheets // to a seperate file. It can now be included by header.inc.php, // querywindow.php. include_once './libraries/header_http.inc.php'; include_once './libraries/header_meta_style.inc.php'; include_once './libraries/header_scripts.inc.php'; /* remove vertical scroll bar bug in ie */ ?> display(); } echo "\n"; // offer to load user preferences from localStorage if ($userprefs_offer_import) { include_once './libraries/user_preferences.lib.php'; PMA_userprefs_autoload_header(); } // add recently used table and reload the navigation if (strlen($GLOBALS['table']) && $GLOBALS['cfg']['LeftRecentTable'] > 0) { PMA_addRecentTable($GLOBALS['db'], $GLOBALS['table']); } if (! defined('PMA_DISPLAY_HEADING')) { define('PMA_DISPLAY_HEADING', 1); } // pass configuration for hint tooltip display // (to be used by PMA_createqTip in js/functions.js) if (! $GLOBALS['cfg']['ShowHint']) { echo ''; } /** * Display heading if needed. Design can be set in css file. */ if (PMA_DISPLAY_HEADING && $GLOBALS['server'] > 0) { PMA_Menu::getInstance()->display(); } } /** * Sets a variable to remember headers have been sent */ $GLOBALS['is_header_sent'] = true; //end if (!$GLOBALS['is_ajax_request']) } else { if (empty($GLOBALS['is_header_sent'])) { include_once './libraries/header_http.inc.php'; $GLOBALS['is_header_sent'] = true; } } ?>