mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Provide one more search type
This commit is contained in:
@@ -7,14 +7,19 @@ include_once "prepend.inc";
|
||||
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;
|
||||
}
|
||||
|
||||
echo "$MYSITE|", phpversion(), "|$LAST_UPDATED|" . ((int) isset($htsearch_prog));
|
||||
echo "$MYSITE|", phpversion(), "|$LAST_UPDATED|$searchtype";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user