addJSON(
'message',
PMA_Util::getMessage(
PMA_Message::success(), $sql_query
)
);
}
exit;
} else {
if ($GLOBALS['is_ajax_request'] != true) {
$message = PMA_Message::rawError(PMA_DBI_getError());
} else {
$response = PMA_Response::getInstance();
$response->addJSON(
'message',
PMA_Message::error(
"$sql_query
" . PMA_DBI_getError()
)
);
$response->isSuccess(false);
exit;
}
}
}
// prefill values if not already filled from former submission
$view = array(
'or_replace' => '',
'algorithm' => '',
'name' => '',
'column_names' => '',
'as' => $sql_query,
'with' => array(),
);
if (PMA_isValid($_REQUEST['view'], 'array')) {
$view = array_merge($view, $_REQUEST['view']);
}
$url_params['db'] = $GLOBALS['db'];
$url_params['reload'] = 1;
/**
* Displays the page
*/
$htmlString = ''
. '