… | |
… | |
15 | # |
15 | # |
16 | # You should have received a copy of the GNU General Public License |
16 | # You should have received a copy of the GNU General Public License |
17 | # along with cfmaps; if not, write to the Free Software |
17 | # along with cfmaps; if not, write to the Free Software |
18 | # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
18 | # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 | |
19 | |
20 | VERSION=2.001 |
20 | VERSION=2.002 |
21 | |
21 | |
22 | umask 022 |
22 | umask 022 |
23 | |
23 | |
24 | SRC=/root/src/cfmaps |
24 | SRC=/root/src/cfmaps |
25 | PATH="$SRC:$PATH" |
25 | PATH="$SRC:$PATH" |
… | |
… | |
50 | export dir |
50 | export dir |
51 | cd "./$dir" || exit 68 |
51 | cd "./$dir" || exit 68 |
52 | { |
52 | { |
53 | cat >&7 <<-EOF |
53 | cat >&7 <<-EOF |
54 | <?xml version='1.0' encoding='utf-8'?> |
54 | <?xml version='1.0' encoding='utf-8'?> |
55 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
55 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
56 | <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> |
56 | <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> |
57 | <head> |
57 | <head> |
58 | <title>Deliantra Maps Directory "$dir"</title> |
58 | <title>Deliantra Maps Directory "$dir"</title> |
59 | <link rel='stylesheet' type='text/css' media='all' href='/common.css'/> |
59 | <link rel='stylesheet' type='text/css' media='all' href='/common.css'/> |
60 | </head> |
60 | </head> |
61 | <body> |
61 | <body> |
62 | <p>Keyword Search Over All Maps</p> |
62 | <p>Keyword Search Over All Maps</p> |
63 | <p><form action='/search'> |
63 | <form action='/search'><p> |
64 | <input type='text' name='k'/> |
64 | <input type='text' name='k'/> |
65 | <input type='submit'/> |
65 | <input type='submit'/> |
66 | </form></p> |
66 | </p></form> |
67 | <h1>Deliantra Maps Directory "$dir"</h1><ul> |
67 | <h1>Deliantra Maps Directory "$dir"</h1><ul> |
68 | <li><a href='..'><parent></a></li></ul><h2>This Directory</h2><ul> |
68 | <li><a href='..'><parent></a></li></ul><h2>This Directory</h2><ul> |
69 | EOF |
69 | EOF |
70 | for file in *; do |
70 | for file in *; do |
71 | if [ -f "$file" ]; then |
71 | if [ -f "$file" ]; then |