From 8bf32cbeb399f9ef142ab771fea147e659d5aecb Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 19 Mar 2006 13:15:56 +0000 Subject: [PATCH] bug #1444025, dead code about DOCUMENT_ROOT --- ChangeLog | 1 + db_details_importdocsql.php | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index f0b342e33..a9b289f59 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ $Source$ same display units * lang/english*, /french*: use IEC binary units; use "B" for Bytes and "o" for "Octets" in French + * db_details_importdocsql.php: bug #1444025, dead code about DOCUMENT_ROOT 2006-03-17 Marc Delisle * libraries/dbi/mysqli.dbi.lib.php: if $cfg['Servers'][$i]['nopassword'] diff --git a/db_details_importdocsql.php b/db_details_importdocsql.php index 38c3c1c74..8701b976d 100644 --- a/db_details_importdocsql.php +++ b/db_details_importdocsql.php @@ -118,22 +118,6 @@ if (isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])) { } // end working on table } - /** - * Try to get the "$DOCUMENT_ROOT" variable whatever is the register_globals - * value - */ - if (empty($DOCUMENT_ROOT)) { - if (!empty($_SERVER) && isset($_SERVER['DOCUMENT_ROOT'])) { - $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT']; - } elseif (!empty($_ENV) && isset($_ENV['DOCUMENT_ROOT'])) { - $DOCUMENT_ROOT = $_ENV['DOCUMENT_ROOT']; - } elseif (@getenv('DOCUMENT_ROOT')) { - $DOCUMENT_ROOT = getenv('DOCUMENT_ROOT'); - } else { - $DOCUMENT_ROOT = '.'; - } - } // end if - /** * Executes import if required */