com web/php: Let's get the IP address, too, because a lot of mirrors aren't going to have FQDNs or even unique hostnames.: mirror-info.php
| From: | Daniel P. Brown | Date: | Wed, 10 Oct 2012 18:43:53 +0000 |
| Subject: | com web/php: Let's get the IP address, too, because a lot of mirrors aren't going to have FQDNs or even unique hostnames.: mirror-info.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-14825@lists.php.net to get a copy of this message | ||
Commit: 5421e405f33a4b5b34e80987a681f043b9b43fdc
Author: Daniel P. Brown <danbrown@php.net> Wed, 10 Oct 2012 14:43:53 -0400
Parents: bc773fe1bec0febed40591c5ee76f77ed36a8f22
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=5421e405f33a4b5b34e80987a681f043b9b43fdc
Log:
Let's get the IP address, too, because a lot of mirrors aren't going to have FQDNs or even
unique hostnames.
Changed paths:
M mirror-info.php
Diff:
diff --git a/mirror-info.php b/mirror-info.php
index 512edd6..7b84ad0 100644
--- a/mirror-info.php
+++ b/mirror-info.php
@@ -39,16 +39,17 @@ if (isset($_GET["token"]) && md5($_GET["token"]) ===
"19a3ec370affe2d899755f005e
}
echo join('|', array(
- $MYSITE, // 0: ServerName problems
- phpversion(), // 1: PHP version overview
- $LAST_UPDATED, // 2: Update problems
- $sqlite, // 3: SQLite support?
- $mirror_stats, // 4: Optional local stats support
- default_language(), // 5: Mirror language
- 'manual-noalias', // 6: /manual alias check is done elsewhere now
- $md5_ok, // 7: Rsync setup problems
- $exts, // 8: List of php extensions separated by comma
- gethostname(), // 9: The configured hostname of the local system
+ $MYSITE, // 0 : CNAME for mirror as accessed (CC, CC1, etc.)
+ phpversion(), // 1 : PHP version overview
+ $LAST_UPDATED, // 2 : Update problems
+ $sqlite, // 3 : SQLite support?
+ $mirror_stats, // 4 : Optional local stats support
+ default_language(), // 5 : Mirror language
+ 'manual-noalias', // 6 : /manual alias check is done elsewhere now
+ $md5_ok, // 7 : Rsync setup problems
+ $exts, // 8 : List of php extensions separated by comma
+ gethostname(), // 9 : The configured hostname of the local system
+ $_SERVER['SERVER_ADDR'], // 10: The IP address under which we're running
));
function run_self_tests() {