Imported search frontend/backend from www.infodrom.org
authorJoey Schulze <joey@infodrom.org>
Wed, 13 Aug 2003 19:32:50 +0000 (19:32 +0000)
committerJoey Schulze <joey@infodrom.org>
Wed, 13 Aug 2003 19:32:50 +0000 (19:32 +0000)
src/search.html.de.wml [new file with mode: 0644]
src/search.html.en.wml [new file with mode: 0644]
src/search.php3 [new file with mode: 0644]

diff --git a/src/search.html.de.wml b/src/search.html.de.wml
new file mode 100644 (file)
index 0000000..4a8d238
--- /dev/null
@@ -0,0 +1,36 @@
+#include <infodrom.style>
+#include <quote.style>
+
+<page title="Infodrom Oldenburg" menubgcolor=<bgcolor>>
+
+<p><flaglink url=search.html.en.html lang=en>
+<h1 align=center><font face="Helvetica,Arial">Infodrom Oldenburg</font></h1><line height=2 width=90% color=<menu-fgcolor> align=center><br>
+
+<center>
+<table width=85% bgcolor=#ffffff><tr><td><font face="Helvetica,Arial">
+
+<p>In unserer Site mit Google suchen.
+
+<p><center><a href="http://www.google.de/">\
+<img width=300 height=105 src="http://www.google.de/images/de_home_title.gif" border=0 alt="Google">\
+</a></center>
+
+<center>
+<form method=post action=search.php3>
+
+<input type=hidden name=site value=www.google.de>
+<input name=keyword size=40 maxlength=100>
+
+<br><input type=submit value="Search!">
+</form>
+</center>
+
+</font></td></tr></table></center><p>
+
+<frontad>
+
+</page>
+
+# Local variables:
+# mode: indented-text
+# end:
diff --git a/src/search.html.en.wml b/src/search.html.en.wml
new file mode 100644 (file)
index 0000000..4e31df5
--- /dev/null
@@ -0,0 +1,36 @@
+#include <infodrom.style>
+#include <quote.style>
+
+<page title="Infodrom Oldenburg" menubgcolor=<bgcolor>>
+
+<p><flaglink url=search.html.de.html lang=de>
+<h1 align=center><font face="Helvetica,Arial">Infodrom Oldenburg</font></h1><line height=2 width=90% color=<menu-fgcolor> align=center><br>
+
+<center>
+<table width=85% bgcolor=#ffffff><tr><td><font face="Helvetica,Arial">
+
+<p>Search our site through Google.
+
+<p><center><a href="http://www.google.com/">\
+<img width=276 height=110 src="http://www.google.com/images/logo.gif" border=0 alt="Google">\
+</a></center>
+
+<center>
+<form method=post action=search.php3>
+
+<input type=hidden name=site value=www.google.com>
+<input name=keyword size=40 maxlength=100>
+
+<br><input type=submit value="Search!">
+</form>
+</center>
+
+<font></td></tr></table></center><p>
+
+<frontad>
+
+</page>
+
+# Local variables:
+# mode: indented-text
+# end:
diff --git a/src/search.php3 b/src/search.php3
new file mode 100644 (file)
index 0000000..175a056
--- /dev/null
@@ -0,0 +1,13 @@
+<?
+  if ($keyword && $site) {
+    $url = "http://" . $site . "/search?q=site%3Awww.infodrom.org+" . ereg_replace (" ", "+", $keyword);
+    header ("Location: $url");
+    mail ("joey@luonnotar.infodrom.org", "http://www.infodrom.org/search.php3",
+"Site    : $site
+Keywords: $keyword
+Host    : " . ($REMOTE_HOST?$REMOTE_HOST:$REMOTE_ADDR) . "
+URL     : " . $url . "\n", "From: Infodrom Webserver <www-data@luonnotar.infodrom.org>");
+  } else {
+    header ("Location: search.html");
+  }
+?>