require_once("sb_functions.php"); global $HTTP_POST_VARS; $action = $HTTP_POST_VARS["action"]; $query = $HTTP_POST_VARS["query"]; if ($query) { $queryString = ""; $queryString .= ($action == "Search Shitbag!com")?"q=site:www.shitbag.com+":"q="; $queryString .= ereg_replace(" ","+",ereg_replace("^ ","",$query)); $queryString .= $GLOBALS["customGoogle"]; #$queryString .= "&cof=T:000000;L:http://www.shitbag.com/images/Homebutton.jpg;BGC:FFFFFF;AH:left;AWFID:580e1015ada1f205;"; # http://www.google.com/custom?site=search&hl=en&lr=lang_en|lang_es&safe=off&cof="L:http://www.shitbag.com/images/Homebutton.jpg;BGC:FFFFFF;T:000000;AH:left;"&q=+site:www.shitbag.com+shitbag header("Location: http://www.google.com/custom?$queryString"); exit; } else { sb_printHeader("Search"); ?> Google search:
sb_printFooter(); } ?>