We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 822901d commit 6b8a13eCopy full SHA for 6b8a13e
www/status.php
@@ -24,6 +24,20 @@
24
$retVal["sys_getloadavg()"] = sys_getloadavg();
25
$retVal["sys_get_temp_dir()"] = sys_get_temp_dir();
26
27
- header('Content-type: text/plain');
28
- echo json_encode($retVal);
+ if (isset($_REQUEST['callback']))
+ {
29
+ header('content-type: application/javascript; charset=utf-8');
30
+ echo $_REQUEST['callback'];
31
+ echo "(";
32
+ echo json_encode($retVal);
33
+ echo ")";
34
+ }
35
+ else
36
37
+ header('content-type: application/json; charset=utf-8');
38
+ header("Access-Control-Allow-Origin: *");
39
+ header('Access-Control-Allow-Methods: POST, GET');
40
+ header('Access-Control-Max-Age: 604800');
41
42
43
?>
0 commit comments