From 0b29dc46feebea492b092e9ff60401b893e2dc6b Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Sat, 18 Jan 2003 15:20:27 +0000 Subject: [PATCH] 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... --- mirror-info.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mirror-info.php b/mirror-info.php index 96c30401e..11b727cf8 100644 --- a/mirror-info.php +++ b/mirror-info.php @@ -20,6 +20,13 @@ if (!isset($htsearch_prog)) { $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(); ?> \ No newline at end of file