1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

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...
This commit is contained in:
Gabor Hojtsy
2003-01-18 15:20:27 +00:00
parent 0bd36027a7
commit 0b29dc46fe

View File

@@ -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();
?>