Commit: b874392470d09397633270bd7d85ca2a85890bdc Author: Hannes Magnusson <[email protected]> Thu, 26 Dec 2013 17:20:23 -0800 Parents: 4bea3f23a51acc259a5368d38a2696b395351f30 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=b874392470d09397633270bd7d85ca2a85890bdc Log: This hasn't been used in a looong time. Fixes bug #54377 Bugs: https://bugs.php.net/54377 Changed paths: M include/do-download.inc Diff: diff --git a/include/do-download.inc b/include/do-download.inc index bb486ee..0c58e8b 100644 --- a/include/do-download.inc +++ b/include/do-download.inc @@ -41,30 +41,5 @@ function download_file($mirror, $file) // download the file, even if the log server is down echo " "; flush(); - - // Log download on master server (may be a registered - // shutdown function to really run after the file is - // started to download) - // if ($log) { download_log($mirror, $found); } } -// Log downloads on the master server -function download_log($mirror, $file) -{ - // Set referer value - $referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '-'); - - // String to pass on as a query to the remote log - $log_file = "https://master.php.net/log_download.php" . - "?download_file=" . urlencode($file) . - "&mirror=" . urlencode($mirror) . - "&user_referer=" . urlencode($referer) . - "&user_ip=" . urlencode(i2c_realip()); - - // Open the remote log and read some bytes - $remote_log = @fopen($log_file, 'r'); - if ($remote_log) { - fread($remote_log, 1024); - fclose($remote_log); - } -} -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
