Commit 9f9db575 authored by Penny Leach's avatar Penny Leach
Browse files

mass commit - fixing up lots of missing define('JSON', 1) in json scripts

and general header noise (output of file_content_check anger)
parent 97512e54
......@@ -25,8 +25,12 @@
*/
define('INTERNAL', 1);
define('JSON', 1);
require(dirname(dirname(__FILE__)) . '/init.php');
json_headers();
$viewid = param_integer('viewid');
require_once('view.php');
......
......@@ -25,8 +25,12 @@
*/
define('INTERNAL', 1);
define('JSON', 1);
require(dirname(dirname(__FILE__)) . '/init.php');
json_headers();
$view = param_integer('view');
$artefact = param_integer('artefact', null);
$limit = param_integer('limit', 5);
......
......@@ -25,8 +25,12 @@
*/
define('INTERNAL', 1);
define('JSON', 1);
require(dirname(dirname(__FILE__)) . '/init.php');
json_headers();
$limit = param_integer('limit', 5);
$offset = param_integer('offset', 0);
......
......@@ -25,9 +25,13 @@
*/
define('INTERNAL', 1);
define('JSON', 1);
require(dirname(dirname(__FILE__)) . '/init.php');
require_once('activity.php');
json_headers();
$data = new StdClass;
$data->view = param_integer('view');
$data->artefact = param_integer('artefact', null);
......
......@@ -25,8 +25,12 @@
*/
define('INTERNAL', 1);
define('JSON', 1);
require(dirname(dirname(__FILE__)) . '/init.php');
json_headers();
$data = new StdClass;
$data->id = param_integer('viewid');
......
......@@ -48,3 +48,5 @@ if(!isset($parsed_template['css'])) {
header('Content-type: text/css');
echo file_get_contents($parsed_template['css']);
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment