24 lines
326 B
PHP
24 lines
326 B
PHP
|
<?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;
|
||
|
|
||
|
|
||
|
?>
|