cvs: phpweb / mirror-info.php
| From: | Gabor Hojtsy | Date: | Sat, 18 Jan 2003 15:20:27 +0000 |
| Subject: | cvs: phpweb / mirror-info.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15126@lists.php.net to get a copy of this message | ||
goba Sat Jan 18 10:20:27 2003 EDT
Modified files:
/phpweb mirror-info.php
Log:
Provide information about local stats (using new setenv). As not all sites are
updated to use this setting, we cannot be sure, that no env var means no local
stats, so provide "2" as a status code in that case...
Also provide default langauge setting (enhanced with env var setting now) back
to the central server...
Index: phpweb/mirror-info.php
diff -u phpweb/mirror-info.php:1.7 phpweb/mirror-info.php:1.8
--- phpweb/mirror-info.php:1.7 Fri Jan 10 04:59:23 2003
+++ phpweb/mirror-info.php Sat Jan 18 10:20:27 2003
@@ -20,6 +20,13 @@
$searchtype = 0;
}
-echo "$MYSITE|", phpversion(), "|$LAST_UPDATED|$searchtype";
+// Provide information on local stats setup
+if (isset($_SERVER['MIRROR_STATS'])) {
+ $mirror_stats = 1; // Yes
+} else {
+ $mirror_stats = 2; // Don't know
+}
+
+echo "$MYSITE|", phpversion(), "|$LAST_UPDATED|$searchtype|$mirror_stats|" ,
default_language();
?>