back to the welcome page if (!empty($db)) { $is_db = PMA_DBI_select_db($db); } if (empty($db) || !$is_db) { header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); exit; } } // end if (ensures db exists) /** * Changes database charset if requested by the user */ if (isset($submitcollation) && !empty($db_collation) && PMA_MYSQL_INT_VERSION >= 40101) { list($db_charset) = explode('_', $db_collation); $sql_query = 'ALTER DATABASE ' . PMA_backquote($db) . ' DEFAULT' . PMA_generateCharsetQueryPart($db_collation); $result = PMA_DBI_query($sql_query); $message = $strSuccess; unset($db_charset, $db_collation); } // Displays headers if (!isset($message)) { $js_to_run = 'functions.js'; require_once('./header.inc.php'); // Reloads the navigation frame via JavaScript if required if (isset($reload) && $reload) { echo "\n"; ?>