cvs: phpweb / search.php /error index.php
| From: | Jim Winstead | Date: | Tue, 23 Jan 2001 22:06:38 +0000 |
| Subject: | cvs: phpweb / search.php /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-3543@lists.php.net to get a copy of this message | ||
jimw Tue Jan 23 14:06:38 2001 EDT
Modified files:
/phpweb search.php
/phpweb/error index.php
Log:
configuration.inc should be in top level, but may not exist
Index: phpweb/search.php
diff -u phpweb/search.php:1.2 phpweb/search.php:1.3
--- phpweb/search.php:1.2 Sun Aug 6 17:28:38 2000
+++ phpweb/search.php Tue Jan 23 14:06:38 2001
@@ -48,7 +48,9 @@
}
}
-include("configuration.inc");
+if (file_exists("configuration.inc")) {
+ include("configuration.inc");
+}
function makeBar($no,$page,$pages,$baseurl,$firstdisplayed,$lastdisplayed) {
global $FONTFACE;
@@ -116,7 +118,7 @@
</FORM>
<? } else {
commonHeader("Search Results");
- if ($HAVE_SEARCH) {
+ if ($HAVE_SEARCH && is_set($htsearch_prog)) {
$form=$PHP_SELF;
} else {
$form="http://uk.php.net/search.php";
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.19 phpweb/error/index.php:1.20
--- phpweb/error/index.php:1.19 Fri Jan 12 21:47:38 2001
+++ phpweb/error/index.php Tue Jan 23 14:06:38 2001
@@ -1,7 +1,9 @@
<?php
require "shared.inc";
-require "configuration.inc";
+if (file_exists("../configuration.inc")) {
+ include "../configuration.inc";
+}
$lang = $MIRRORS[$MYSITE][6];
@@ -120,7 +122,7 @@
if ($show=="source") {
$exclude="/manual";
$restrict=$MYSITE."source";
- $where="PHP 3.0 site source code";
+ $where="PHP site source code";
} elseif ($show=="manual") {
$restrict=$MYSITE."manual";
$exclude="/source";
@@ -128,7 +130,7 @@
} else {
$exclude="/source";
$restrict=$MYSITE;
- $where="PHP 3.0 web site";
+ $where="PHP web site";
}
if (isset($page)) {$off="&page=$page";} else {$off="";}
$query="words=$words&config=$config&exclude=$exclude&restrict=$restrict$off";