Update search results.
This commit is contained in:
parent
1a4c8faaa1
commit
4649d5b546
2 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Configuration.
|
# Configuration.
|
||||||
STORAGE_PREFIX="/storage/md0"
|
#STORAGE_PREFIX="/storage/md0"
|
||||||
|
STORAGE_PREFIX="/data/mirrors"
|
||||||
LOCATE_DB="/tmp/mirrors.db"
|
LOCATE_DB="/tmp/mirrors.db"
|
||||||
DEF_RESULTS=500
|
DEF_RESULTS=500
|
||||||
MAX_RESULTS=3000
|
MAX_RESULTS=3000
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@
|
||||||
$type = strtok ($result_line, " ");
|
$type = strtok ($result_line, " ");
|
||||||
$entry = strtok ("\0");
|
$entry = strtok ("\0");
|
||||||
if ($type == "f" || $type == "l" || $type == "o") {
|
if ($type == "f" || $type == "l" || $type == "o") {
|
||||||
print ('• <a href="' . $entry . '" title="View $entry">' . $entry . '</a><br>');
|
print ('• <a href="' . $entry . '" title="View $entry">' . $entry . '</a> (<a href="' . dirname($entry) . '" title="Visit containing directory">Visit containing directory</a>)<br>');
|
||||||
$count++;
|
$count++;
|
||||||
} elseif ($type == "d") {
|
} elseif ($type == "d") {
|
||||||
print ('• <a href="' . $entry . '" title="Directory ' . $entry . '">' . $entry . '</a> (<a href="/search?l=' . $_GET["l"] . '&p=' . urlencode ($entry) . '&q=' . urlencode ($_GET["q"]) . '" title="Repeat search in this directory">Repeat search in this directory</a>)<br>');
|
print ('• <a href="' . $entry . '" title="Directory ' . $entry . '">' . $entry . '</a> (<a href="/search?l=' . $_GET["l"] . '&p=' . urlencode ($entry) . '&q=' . urlencode ($_GET["q"]) . '" title="Repeat search in this directory">Repeat search in this directory</a>)<br>');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue