addParam($new_db); $GLOBALS['db'] = $new_db; if($GLOBALS['is_ajax_request'] == true) { $extra_data['sql_query'] = PMA_showMessage(NULL, $sql_query, 'success'); //Construct the html for the new database, so that it can be appended to the list of databases on server_databases.php $db_url_params['db'] = $new_db; $is_superuser = PMA_isSuperuser(); $new_db_string = ''; if ($is_superuser || $cfg['AllowUserDropDatabase']) { $new_db_string .= ''; $new_db_string .= ''; $new_db_string .=''; } $new_db_string .= ''; $new_db_string .= ''; $new_db_string .= $new_db . ''; $new_db_string .= ''; if($is_superuser) { $db_url_params['checkprivs'] = $new_db; $new_db_string .= ''; $new_db_string .= ''; $new_db_string .= ($cfg['PropertiesIconic'] ? ' ' . __('Check Privileges') . ' ' : __('Check Privileges')) . ''; $new_db_string .= ''; } $new_db_string .= ''; $extra_data['new_db_string'] = $new_db_string; PMA_ajaxResponse($message, true, $extra_data); } require_once './libraries/header.inc.php'; require_once './' . $cfg['DefaultTabDatabase']; } ?>