Subversion Repositories Applications.papyrus

Rev

Rev 2091 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2091 Rev 2102
Line 23... Line 23...
23
	if($tab_applette_arguments[1] == 'results') {
23
	if($tab_applette_arguments[1] == 'results') {
24
		return <<<EOF
24
		return <<<EOF
25
<gcse:searchresults-only queryParameterName="r"></gcse:searchresults-only>
25
<gcse:searchresults-only queryParameterName="r"></gcse:searchresults-only>
26
EOF;
26
EOF;
27
	}
27
	}
-
 
28
	$host = 'http://www.tela-botanica.org';
28
	$url = $_SERVER['REDIRECT_URL'];
29
	$url = $_SERVER['REDIRECT_URL'];
29
	/*$d = array();
30
	/*$d = array();
30
	parse_str($_SERVER['QUERY_STRING'], $d);
31
	parse_str($_SERVER['QUERY_STRING'], $d);
31
	var_dump(urldecode(http_build_query($d)));die;*/
32
	var_dump(urldecode(http_build_query($d)));die;*/
32
	$script = file_get_contents(dirname(__FILE__) . '/google.html');
33
	$script = file_get_contents(dirname(__FILE__) . '/google.html');
33
	return <<<EOF
34
	return <<<EOF
34
<link href="/papyrus/applettes/google/google.css" rel="stylesheet" type="text/css" />
35
<link href="/papyrus/applettes/google/google.css" rel="stylesheet" type="text/css" />
35
$script
36
$script
36
<!-- <gcse:search></gcse:search> -->
37
<!-- <gcse:search></gcse:search> -->
37
<gcse:searchbox-only resultsUrl="http://papy$url" queryParameterName="r"></gcse:searchbox-only>
38
<gcse:searchbox-only resultsUrl="$host$url" queryParameterName="r"></gcse:searchbox-only>
38
EOF;
39
EOF;
39
}
40
}