mirror of
https://git.code.sf.net/p/quake/website
synced 2025-02-25 21:21:33 +00:00
trying out some search stuff...
This commit is contained in:
parent
6f7442a010
commit
81b0ff25f6
1 changed files with 14 additions and 10 deletions
|
@ -13,6 +13,7 @@
|
||||||
$parseMe = dbmfetch($dbm, $string);
|
$parseMe = dbmfetch($dbm, $string);
|
||||||
}
|
}
|
||||||
dbmclose($dbm);
|
dbmclose($dbm);
|
||||||
|
if ($parseMe) {
|
||||||
$filenames = preg_split("/&&/", $parseMe);
|
$filenames = preg_split("/&&/", $parseMe);
|
||||||
for ($i = 0;$i < sizeof($filenames);$i++) {
|
for ($i = 0;$i < sizeof($filenames);$i++) {
|
||||||
$temp = $filenames[$i];
|
$temp = $filenames[$i];
|
||||||
|
@ -25,6 +26,9 @@
|
||||||
while (list($key,$val) = each ($files)) {
|
while (list($key,$val) = each ($files)) {
|
||||||
echo "<P><A HREF=\"$key\">$key</A> - $val hits";
|
echo "<P><A HREF=\"$key\">$key</A> - $val hits";
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
echo "<P>Sorry, no pages found containing $string";
|
||||||
|
}
|
||||||
require("parts/postamble.php"); // Finish this sucker up
|
require("parts/postamble.php"); // Finish this sucker up
|
||||||
else {
|
else {
|
||||||
// Preamble
|
// Preamble
|
||||||
|
|
Loading…
Reference in a new issue