Redirect google custom search results to an appdb page to keep a consistent look-and-feel
This commit is contained in:
@@ -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>
|
||||
|
||||
39
search_results.php
Normal file
39
search_results.php
Normal file
@@ -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();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user