cvs: phpweb / search.php
| From: | Gabor Hojtsy | Date: | Sun, 15 Dec 2002 18:29:09 +0000 |
| Subject: | cvs: phpweb / search.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14209@lists.php.net to get a copy of this message | ||
goba Sun Dec 15 13:29:09 2002 EDT
Modified files:
/phpweb search.php
Log:
Another check if the htsearch program is really an executable
(is in place, and PHP can excute it).
Still commented, so my mails sent out recently will still
be valid ;). After those problems are sorted out, this
can be uncommented, and will provide another check for
local search mirror sites before they go into an error.
Index: phpweb/search.php
diff -u phpweb/search.php:1.44 phpweb/search.php:1.45
--- phpweb/search.php:1.44 Sat Dec 14 13:37:30 2002
+++ phpweb/search.php Sun Dec 15 13:29:09 2002
@@ -25,6 +25,13 @@
$htsearch_prog = $_SERVER['HTSEARCH_PROG'];
}
+// If the program to use to search is not excutable, we cannot
+// get search results, regardless of what we do (uncomment as the
+// real local search providers are known [Goba])
+//if (!is_executable($htsearch_prog)) {
+// unset($htsearch_prog);
+//}
+
/* Form parameters expected:
pattern - search keywords
lang - language to limit search to [this is not used currently!!!]