cvs: phpweb / mirror-info.php /manual mirror-info.php

From: Date: Sat, 20 Aug 2005 12:48:45 +0000
Subject: cvs: phpweb / mirror-info.php /manual mirror-info.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-29039@lists.php.net to get a copy of this message
goba Sat Aug 20 08:48:45 2005 EDT Added files: /phpweb/manual mirror-info.php Modified files: /phpweb mirror-info.php Log: start moving mirror-info.php to the manual folder, to overcome Apache specific virtual() usage, which ties the mirror sites to Apache and running PHP as an Apache module. This is just a start, so that the bot is continually working, until all mirror sites update, when we can start to step further. Also discontinue checks for the local search setup, which is a leftover from the old days. http://cvs.php.net/diff.php/phpweb/mirror-info.php?r1=1.18&r2=1.19&ty=u Index: phpweb/mirror-info.php diff -u phpweb/mirror-info.php:1.18 phpweb/mirror-info.php:1.19 --- phpweb/mirror-info.php:1.18 Mon May 23 10:53:37 2005 +++ phpweb/mirror-info.php Sat Aug 20 08:48:41 2005 @@ -1,45 +1 @@ -<?php - -// 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=ISO-8859-1"); - -// Try to find out if local search is possible -unset($htsearch_prog); -if (file_exists("configuration.inc")) { - include_once 'configuration.inc'; - $searchtype = 2; -} -if (isset($_SERVER['HTSEARCH_PROG'])) { - $htsearch_prog = $_SERVER['HTSEARCH_PROG']; - $searchtype = 1; -} -if (!@is_executable($htsearch_prog)) { - unset($htsearch_prog); -} -if (!isset($htsearch_prog)) { - $searchtype = 0; -} - -// Provide information on local stats setup -if (isset($_SERVER['MIRROR_STATS']) && $_SERVER['MIRROR_STATS'] == '1') { - $mirror_stats = 1; -} else { - $mirror_stats = 0; -} - -echo "$MYSITE|", phpversion(), "|$LAST_UPDATED|$searchtype|$mirror_stats|" , default_language(), "|"; - -// Try to flush an output buffer which was -// started in php.ini, so the virtual() is really -// output after the info above -ob_flush(); - -// Test if there is a /manual alias -$correctmanual = @virtual("/manual/noalias.txt"); -if (!$correctmanual) { echo "manual-alias"; } - -// Check for for an exe file (rsnyc settings) -echo "|" . ((int) file_exists($_SERVER['DOCUMENT_ROOT'] . '/distributions/php-5.0.4-installer.exe')); +<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/manual/mirror-info.php'; http://cvs.php.net/co.php/phpweb/manual/mirror-info.php?r=1.1&p=1 Index: phpweb/manual/mirror-info.php +++ phpweb/manual/mirror-info.php <?php // 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=ISO-8859-1"); // No search support on mirror sites currently $searchtype = 0; // Provide information on local stats setup if (isset($_SERVER['MIRROR_STATS']) && $_SERVER['MIRROR_STATS'] == '1') { $mirror_stats = 1; } else { $mirror_stats = 0; } echo "$MYSITE|", phpversion(), "|$LAST_UPDATED|$searchtype|$mirror_stats|" , default_language(), "|"; // Try to flush an output buffer which was // started in php.ini, so the virtual() is really // output after the info above ob_flush(); // Test if there is a /manual alias $correctmanual = @virtual("/manual/noalias.txt"); if (!$correctmanual) { echo "manual-alias"; } // Check for for an exe file (rsnyc settings) echo "|" . ((int) file_exists($_SERVER['DOCUMENT_ROOT'] . '/distributions/php-5.0.4-installer.exe'));

« previous php.mirrors (#29039) next »