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:
@@ -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();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user