[Openfirst-cvscommit] search index.php,1.9,1.10
Brought to you by:
xtimg
From: <xt...@us...> - 2004-02-08 14:51:49
|
Update of /cvsroot/openfirst/search In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29344 Modified Files: index.php Log Message: Add some additional condition checking. Fixes Bug IDs #66, 67 Index: index.php =================================================================== RCS file: /cvsroot/openfirst/search/index.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** index.php 28 Dec 2003 05:03:20 -0000 1.9 --- index.php 8 Feb 2004 14:48:44 -0000 1.10 *************** *** 37,40 **** --- 37,41 ---- //redirect to Google if needed if (isset($_GET["q"]) == true && $_GET["type"] == "google") { + if(! isset($_GET["domains"])) { $_GET["domains"] = $_SERVER["HTTP_HOST"]; } header("Location: http://www.google.com/search?q=".urlencode($_GET["q"])."+site:".$_GET["domains"]); } elseif (isset($_GET["q"]) == true && $_GET["type"] == "wwwgoogle") { |