Skip to content

Commit

Permalink
IIS 7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Sep 8, 2011
1 parent 3ed7f45 commit bed3856
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions adminer/include/bootstrap.inc.php
Expand Up @@ -22,8 +22,11 @@
include "../adminer/include/functions.inc.php";

global $adminer, $connection, $drivers, $edit_functions, $enum_length, $error, $functions, $grouping, $HTTPS, $inout, $jush, $LANG, $langs, $on_actions, $structured_types, $token, $translations, $types, $unsigned, $VERSION; // allows including Adminer inside a function
if (!isset($_SERVER["REQUEST_URI"])) {
$_SERVER["REQUEST_URI"] = $_SERVER["ORIG_PATH_INFO"] . ($_SERVER["QUERY_STRING"] != "" ? "?$_SERVER[QUERY_STRING]" : ""); // IIS 5 compatibility
if (!$_SERVER["REQUEST_URI"]) { // IIS 5 compatibility
$_SERVER["REQUEST_URI"] = $_SERVER["ORIG_PATH_INFO"];
}
if (!strpos($_SERVER["REQUEST_URI"], '?') && $_SERVER["QUERY_STRING"] != "") { // IIS 7 compatibility
$_SERVER["REQUEST_URI"] .= "?$_SERVER[QUERY_STRING]";
}
$HTTPS = $_SERVER["HTTPS"] && strcasecmp($_SERVER["HTTPS"], "off");

Expand Down

0 comments on commit bed3856

Please sign in to comment.