mirror of
https://github.com/php/web-php.git
synced 2026-03-24 07:12:16 +01:00
26 lines
1016 B
PHP
26 lines
1016 B
PHP
<?php
|
|
// $Id$
|
|
|
|
// Define $MYSITE and $LAST_UPDATED variables
|
|
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
|
|
|
// Text/plain content type for better readability in browsers
|
|
header("Content-type: text/plain; charset=utf-8");
|
|
|
|
// Provide information on local stats setup
|
|
$mirror_stats = (int) (isset($_SERVER['MIRROR_STATS']) && $_SERVER['MIRROR_STATS'] == '1');
|
|
|
|
// Check for an existing exe file (identifies rsync setup problems)
|
|
$exefile = (int) file_exists($_SERVER['DOCUMENT_ROOT'] . '/distributions/php-5.1.5-installer.exe');
|
|
|
|
echo join('|', array(
|
|
$MYSITE, // 0: ServerName problems
|
|
phpversion(), // 1: PHP version overview
|
|
$LAST_UPDATED, // 2: Update problems
|
|
0, // 3: Search support is not tracked anymore
|
|
$mirror_stats, // 4: Optional local stats support
|
|
default_language(), // 5: Mirror language
|
|
'manual-noalias', // 6: /manual alias check is done elsewhere now
|
|
$exefile // 7: Rsync setup problems
|
|
));
|