mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
Declare global variables to allow including from inside a function
This commit is contained in:
@@ -21,6 +21,7 @@ if (isset($_GET["file"])) {
|
|||||||
|
|
||||||
include "../adminer/include/functions.inc.php";
|
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;
|
||||||
if (!isset($_SERVER["REQUEST_URI"])) {
|
if (!isset($_SERVER["REQUEST_URI"])) {
|
||||||
$_SERVER["REQUEST_URI"] = $_SERVER["ORIG_PATH_INFO"] . ($_SERVER["QUERY_STRING"] != "" ? "?$_SERVER[QUERY_STRING]" : ""); // IIS 5 compatibility
|
$_SERVER["REQUEST_URI"] = $_SERVER["ORIG_PATH_INFO"] . ($_SERVER["QUERY_STRING"] != "" ? "?$_SERVER[QUERY_STRING]" : ""); // IIS 5 compatibility
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user