back to the welcome page if (!empty($db)) { $is_db = @PMA_mysql_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($submitcharset) && PMA_MYSQL_INT_VERSION >= 40101) { $sql_query = 'ALTER DATABASE ' . PMA_backquote($db) . ' DEFAULT CHARACTER SET ' . $db_charset; $result = PMA_mysql_query($sql_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), $sql_query, '', $err_url); $message = $strSuccess; } // 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"; ?>