trying out some search stuff...

This commit is contained in:
Dan Olson 2000-06-18 20:40:55 +00:00
parent 6f7442a010
commit 81b0ff25f6

View file

@ -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