com web/php: This hasn't been used in a looong time. Fixes bug #54377: include/do-download.inc
| From: | Hannes Magnusson | Date: | Fri, 27 Dec 2013 01:20:23 +0000 |
| Subject: | com web/php: This hasn't been used in a looong time. Fixes bug #54377: include/do-download.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17814@lists.php.net to get a copy of this message | ||
Commit: 7d161939a959c6410ac0a0f5313244c7e40e3e6f
Author: Hannes Magnusson <bjori@mongodb.com> Thu, 26 Dec 2013 17:20:23 -0800
Parents: f237cd07bfa914a40eaee6db199a20766f3d097a
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=7d161939a959c6410ac0a0f5313244c7e40e3e6f
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);
- }
-}