mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-10 15:22:13 +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
24
search.php
24
search.php
|
@ -13,18 +13,22 @@
|
|||
$parseMe = dbmfetch($dbm, $string);
|
||||
}
|
||||
dbmclose($dbm);
|
||||
$filenames = preg_split("/&&/", $parseMe);
|
||||
for ($i = 0;$i < sizeof($filenames);$i++) {
|
||||
$temp = $filenames[$i];
|
||||
if ($files[$temp]) {
|
||||
$files[$temp]++;
|
||||
} else {
|
||||
$files[$temp] = 0;
|
||||
if ($parseMe) {
|
||||
$filenames = preg_split("/&&/", $parseMe);
|
||||
for ($i = 0;$i < sizeof($filenames);$i++) {
|
||||
$temp = $filenames[$i];
|
||||
if ($files[$temp]) {
|
||||
$files[$temp]++;
|
||||
} else {
|
||||
$files[$temp] = 0;
|
||||
}
|
||||
}
|
||||
while (list($key,$val) = each ($files)) {
|
||||
echo "<P><A HREF=\"$key\">$key</A> - $val hits";
|
||||
}
|
||||
} else {
|
||||
echo "<P>Sorry, no pages found containing $string";
|
||||
}
|
||||
while (list($key,$val) = each ($files)) {
|
||||
echo "<P><A HREF=\"$key\">$key</A> - $val hits";
|
||||
}
|
||||
require("parts/postamble.php"); // Finish this sucker up
|
||||
else {
|
||||
// Preamble
|
||||
|
|
Loading…
Reference in a new issue