replaced $_ENV with getenv()
This commit is contained in:
@@ -10,8 +10,9 @@ $Source$
|
|||||||
libraries/footer.inc.php, libraries/ip_allow_deny.lib.php,
|
libraries/footer.inc.php, libraries/ip_allow_deny.lib.php,
|
||||||
libraries/common.lib.php, libraries/header.inc.php,
|
libraries/common.lib.php, libraries/header.inc.php,
|
||||||
libraries/grab_globals.lib.php, libraries/auth/cookie.auth.lib.php,
|
libraries/grab_globals.lib.php, libraries/auth/cookie.auth.lib.php,
|
||||||
libraries/auth/http.auth.lib.php, libraries/fpdf/fdpf.php:
|
libraries/auth/http.auth.lib.php, libraries/fpdf/fdpf.php, index.php:
|
||||||
replaced $_SERVER with getenv()
|
replaced $_SERVER and $_ENV with getenv()
|
||||||
|
PMA should now work without registered $_ENV and $_SERVER variables
|
||||||
|
|
||||||
2006-03-04 Marc Delisle <lem9@users.sourceforge.net>
|
2006-03-04 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/swedish: Update, thanks to Björn T. Hallberg - bjornth.
|
* lang/swedish: Update, thanks to Björn T. Hallberg - bjornth.
|
||||||
|
@@ -33,12 +33,12 @@
|
|||||||
/**
|
/**
|
||||||
* Gets core libraries and defines some variables
|
* Gets core libraries and defines some variables
|
||||||
*/
|
*/
|
||||||
require_once('./libraries/common.lib.php');
|
require_once './libraries/common.lib.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Includes the ThemeManager if it hasn't been included yet
|
* Includes the ThemeManager if it hasn't been included yet
|
||||||
*/
|
*/
|
||||||
require_once('./libraries/relation.lib.php');
|
require_once './libraries/relation.lib.php';
|
||||||
|
|
||||||
// free the session file, for the other frames to be loaded
|
// free the session file, for the other frames to be loaded
|
||||||
session_write_close();
|
session_write_close();
|
||||||
@@ -46,9 +46,7 @@ session_write_close();
|
|||||||
// Gets the host name
|
// Gets the host name
|
||||||
// loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
|
// loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
|
||||||
if (empty($HTTP_HOST)) {
|
if (empty($HTTP_HOST)) {
|
||||||
if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) {
|
if (getenv('HTTP_HOST')) {
|
||||||
$HTTP_HOST = $_ENV['HTTP_HOST'];
|
|
||||||
} elseif (@getenv('HTTP_HOST')) {
|
|
||||||
$HTTP_HOST = getenv('HTTP_HOST');
|
$HTTP_HOST = getenv('HTTP_HOST');
|
||||||
} else {
|
} else {
|
||||||
$HTTP_HOST = '';
|
$HTTP_HOST = '';
|
||||||
|
Reference in New Issue
Block a user