blob: ca1f41a287fed9538ac070618e179616092f3506 (
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);
?>
|