1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

Send all forms by AJAX

This commit is contained in:
Jakub Vrana
2010-11-23 11:50:53 +01:00
parent 0e29a6a783
commit 38894b2977
5 changed files with 33 additions and 25 deletions

View File

@@ -14,6 +14,9 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
$title_page = $title_all . (SERVER != "" && SERVER != "localhost" ? h(" - " . SERVER) : "") . " - " . $adminer->name();
if (is_ajax()) {
header("X-AJAX-Title: " . rawurlencode($title_page));
if ($_GET["ajax"]) {
header("X-AJAX-Redirect: " . remove_from_uri("ajax"));
}
} else {
$protocol = ($HTTPS ? "https" : "http");
?>