blob: 2d2526e38e494961eb15397ba045a45137d90c6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
/**
* Elgg JSON output pageshell
*
* @package Elgg
* @subpackage Core
* @author Curverider Ltd
* @link http://elgg.org/
*
*/
if(stristr($_SERVER["HTTP_ACCEPT"],"application/json")) {
header("Content-Type: application/json");
} else {
header("Content-Type: application/javascript");
}
// echo $vars['body'];
global $jsonexport;
echo json_encode($jsonexport);
?>
|