cvs: phpweb / do_download.php
| From: | James Cox | Date: | Thu, 16 May 2002 19:31:42 +0000 |
| Subject: | cvs: phpweb / do_download.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-10256@lists.php.net to get a copy of this message | ||
imajes Thu May 16 15:31:42 2002 EDT
Modified files:
/phpweb do_download.php
Log:
changing to master.php.net
Index: phpweb/do_download.php
diff -u phpweb/do_download.php:1.8 phpweb/do_download.php:1.9
--- phpweb/do_download.php:1.8 Tue May 14 17:46:17 2002
+++ phpweb/do_download.php Thu May 16 15:31:40 2002
@@ -1,5 +1,8 @@
<?php
+$LOG_SERVER = "http://master.php.net/";
+$LOG_FILE = "log_download.php";
+
// If there is no file, then drop out an invalid file error message
if (!isset($download_file)
|| !file_exists("distributions/$download_file")) {
@@ -30,14 +33,14 @@
// Try to open remote log on php.net
$remote_log =
- @fopen("http://www.php.net/log_download.php".
+ @fopen($LOG_SERVER . $LOG_FILE .
"?download_file=" . urlencode($download_file).
"&mirror=" . urlencode($SERVER_NAME).
"&user_referer=" . urlencode($HTTP_REFERER).
"&user_ip=" . urlencode($remote_addr),
'r');
- // If we can open it, read from it, and close (jut to make sure it runs)
+ // If we can open it, read from it, and close (just to make sure it runs) ???
if ($remote_log) {
fread($remote_log, 1024);
fclose($remote_log);