cvs: phpweb / search.php
| From: | Rasmus Lerdorf | Date: | Fri, 22 Nov 2002 18:52:17 +0000 |
| Subject: | cvs: phpweb / search.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-13789@lists.php.net to get a copy of this message | ||
rasmus Fri Nov 22 13:52:17 2002 EDT
Modified files:
/phpweb search.php
Log:
Just a little hack to be able to specify that an unofficial mirror has
search capabilities.
Index: phpweb/search.php
diff -u phpweb/search.php:1.35 phpweb/search.php:1.36
--- phpweb/search.php:1.35 Thu Oct 24 09:51:54 2002
+++ phpweb/search.php Fri Nov 22 13:52:17 2002
@@ -7,6 +7,10 @@
mirror (or emulate it on your own website).
*/
+if (file_exists("configuration.inc")) {
+ include_once 'configuration.inc';
+}
+
/* we don't want magic slashes in pattern or base */
if (isset($pattern) && get_magic_quotes_gpc())
$pattern = stripslashes($pattern);
@@ -53,17 +57,13 @@
exit;
}
- if (!have_search()) {
+ if (!have_search() && !isset(local_search_override)) {
$location="http://www.php.net/search.php";
$query =
"show=".$show."&pattern=".urlencode($pattern)."&sourceurl=".urlencode($MYSITE);
header("Location: ".$location."?".$query);
exit;
}
}
-
-if (file_exists("configuration.inc")) {
- include_once 'configuration.inc';
-}
function makeBar($page,$pages,$baseurl,$firstdisplayed,$lastdisplayed) {
$last = $next = ' ';