ChangeSet ID: 31347 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2007/08/24 23:17:21
Modified files: include : sidebar.php Added files: . : search_results.php
Log message: Chris Morgan cmorgan@alum.wpi.edu Redirect google custom search results to an appdb page to keep a consistent look-and-feel
Patch: http://cvs.winehq.org/patch.py?id=31347
Old revision New revision Changes Path Added 1.1 +0 -0 appdb/search_results.php 1.35 1.36 +3 -3 appdb/include/sidebar.php
Index: appdb/search_results.php diff -u -p /dev/null appdb/search_results.php:1.1 --- /dev/null 25 Aug 2007 4:17:21 -0000 +++ appdb/search_results.php 25 Aug 2007 4:17:21 -0000 @@ -0,0 +1,39 @@ +<?php +/** + * Application browser. + * + * Optional parameters: + * - iCatId, shows applications that belong to the category identified by iCatId + */ + +// application environment +require("path.php"); +require(BASE."include/"."incl.php"); +require_once(BASE."include/"."appdb.php"); +require_once(BASE."include/"."category.php"); + +//output header +apidb_header("Search results"); + +echo "<div class='default_container'>\n"; + +echo ' +<!-- Google Search Result Snippet Begins --> + <div id="results_013271970634691685804:bc-56dvxydi"></div> + <script type="text/javascript"> + var googleSearchIframeName = "results_013271970634691685804:bc-56dvxydi"; + var googleSearchFormName = "searchbox_013271970634691685804:bc-56dvxydi"; + var googleSearchFrameWidth = 600; + var googleSearchFrameborder = 0; + var googleSearchDomain = "www.google.com"; + var googleSearchPath = "/cse"; + </script> + <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> +<!-- Google Search Result Snippet Ends --> +'; + +echo "</div>\n"; + +apidb_footer(); + +?> Index: appdb/include/sidebar.php diff -u -p appdb/include/sidebar.php:1.35 appdb/include/sidebar.php:1.36 --- appdb/include/sidebar.php:1.35 25 Aug 2007 4:17:21 -0000 +++ appdb/include/sidebar.php 25 Aug 2007 4:17:21 -0000 @@ -48,10 +48,10 @@ function app_search_box($q = '') // Chris Morgan cmorgan@alum.wpi.edu maintains // the search engine settings $sSearchStr = ' -<!-- Google CSE Search Box Begins --> - <form id="searchbox_013271970634691685804:bc-56dvxydi" action="http://www.google.com/cse"> +<!-- Google CSE Search Box Begins --> + <form id="searchbox_013271970634691685804:bc-56dvxydi" action="http://appdb.winehq.org/search_results.php"> <input type="hidden" name="cx" value="013271970634691685804:bc-56dvxydi" /> - <input type="hidden" name="cof" value="FORID:0" /> + <input type="hidden" name="cof" value="FORID:11" /> <input name="q" type="text" size="20" /> <input type="submit" name="sa" value="Search" /> </form>