From: Jakub Vrana Date: Wed, 15 Dec 2010 16:41:04 +0000 (+0100) Subject: Declare global variables to allow including from inside a function X-Git-Tag: v3.2.0~94 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=c29562d369b262c337f1bf06dd50bce3457b1d18;p=adminer.git Declare global variables to allow including from inside a function --- diff --git a/adminer/include/bootstrap.inc.php b/adminer/include/bootstrap.inc.php index 70966859..f141bd40 100644 --- a/adminer/include/bootstrap.inc.php +++ b/adminer/include/bootstrap.inc.php @@ -21,6 +21,7 @@ if (isset($_GET["file"])) { 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"])) { $_SERVER["REQUEST_URI"] = $_SERVER["ORIG_PATH_INFO"] . ($_SERVER["QUERY_STRING"] != "" ? "?$_SERVER[QUERY_STRING]" : ""); // IIS 5 compatibility }