cvs: phpweb /include do-download.inc

From: Date: Sat, 09 Aug 2003 11:54:51 +0000
Subject: cvs: phpweb /include do-download.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-20049@lists.php.net to get a copy of this message
goba Sat Aug 9 07:54:51 2003 EDT Modified files: /phpweb/include do-download.inc Log: No need to make $_SERVER global anymore, we have 4.1.x+ as a requirement currently... Index: phpweb/include/do-download.inc diff -u phpweb/include/do-download.inc:1.2 phpweb/include/do-download.inc:1.3 --- phpweb/include/do-download.inc:1.2 Sat May 17 09:57:32 2003 +++ phpweb/include/do-download.inc Sat Aug 9 07:54:51 2003 @@ -1,6 +1,6 @@ <?php -// $Id: do-download.inc,v 1.2 2003/05/17 13:57:32 goba Exp $ +// $Id: do-download.inc,v 1.3 2003/08/09 11:54:51 goba Exp $ /* This code redirects the user to the exact file to @@ -11,8 +11,6 @@ // Download a file from a mirror site function download_file($mirror, $file) { - global $_SERVER; - // Quit if the requested file is not availabe localy if (!file_exists($_SERVER['DOCUMENT_ROOT'] . '/distributions/' . $file)) { exit("Invalid file requested for download!"); @@ -39,8 +37,6 @@ // Log downloads on the master server function download_log($mirror, $file) { - global $_SERVER; - // Set referer value $referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '-');

« previous php.mirrors (#20049) next »