[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5485 - GNUnet-docs/WWW/test
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5485 - GNUnet-docs/WWW/test |
Date: |
Tue, 14 Aug 2007 13:33:16 -0600 (MDT) |
Author: durner
Date: 2007-08-14 13:33:12 -0600 (Tue, 14 Aug 2007)
New Revision: 5485
Added:
GNUnet-docs/WWW/test/search.php
Modified:
GNUnet-docs/WWW/test/menu.php3
Log:
search
Modified: GNUnet-docs/WWW/test/menu.php3
===================================================================
--- GNUnet-docs/WWW/test/menu.php3 2007-08-14 19:00:39 UTC (rev 5484)
+++ GNUnet-docs/WWW/test/menu.php3 2007-08-14 19:33:12 UTC (rev 5485)
@@ -12,14 +12,12 @@
</ul>
</div>
<div id="searcher">
- <form method="post" action="http://www.gnu.org/cgi-bin/htsearch">
+ <form method="post" action="search.php">
<div><label for="words">Search:</label>
<input type="hidden" name="method" id="method" value="and" />
<input name="words" id="words" type="text" size="20" accesskey="4" />
<input type="submit" value="Go" />
- <input type="hidden" name="format" value="builtin-long" />
-
- <input type="hidden" name="config" value="htdig" /></div>
+ </div>
</form>
<p> </p>
</div>
Added: GNUnet-docs/WWW/test/search.php
===================================================================
--- GNUnet-docs/WWW/test/search.php (rev 0)
+++ GNUnet-docs/WWW/test/search.php 2007-08-14 19:33:12 UTC (rev 5485)
@@ -0,0 +1,6 @@
+<?php
+ $sstr = str_replace("+", "%2B", $_POST["words"]);
+ $sstr = str_replace("-", "%3A", $sstr);
+ $sstr = ereg_replace("[[:space:]]+", "+", $sstr);
+ header("http://www.google.de/search?q=site%3Agnunet.org+" + $sstr);
+?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5485 - GNUnet-docs/WWW/test,
gnunet <=