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

Add local search support test, so we can update the searchable mirrors

list automatically, without needed human intervention
This commit is contained in:
Gabor Hojtsy
2003-01-03 21:41:13 +00:00
parent ec14c77253
commit 351bf7a98b

View File

@@ -1,4 +1,20 @@
<?php
require_once 'prepend.inc';
echo "$MYSITE|", phpversion(), "|$LAST_UPDATED|";
// Define $MYSITE and $LAST_UPDATED variables
include_once "prepend.inc";
// Try to find out if local search is possible
unset($htsearch_prog);
if (file_exists("configuration.inc")) {
include_once 'configuration.inc';
}
if (isset($_SERVER['HTSEARCH_PROG'])) {
$htsearch_prog = $_SERVER['HTSEARCH_PROG'];
}
if (!is_executable($htsearch_prog)) {
unset($htsearch_prog);
}
echo "$MYSITE|", phpversion(), "|$LAST_UPDATED|" . ((int) isset($htsearch_prog));
?>