summaryrefslogtreecommitdiff
path: root/includes/js/dojox/rpc/tests/resources/jsonpEcho.phps
blob: 15d9aaaeacaab18e5c517343ea990ed3525808f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
	$jsonp = false;
	$result = "";

	if ($_REQUEST["testCallbackParam"]){
		$jsonp=true;
		$result .= $_REQUEST['testCallbackParam'] . "('";
	}

	if (!$_REQUEST["message"]){
		$result .= "ERROR: message property not found";
	}

	$result .= $_REQUEST["message"];

	if ($jsonp) {
		$result .= "');";
	}

	print $result;


?>