<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
require_once 'CRM/Core/Config.php';
$config = CRM_Core_Config::singleton();
+session_start();
require_once 'CRM/Utils/REST.php';
$rest = new CRM_Utils_REST();
-$rest->loadCMSBootstrap();
-
if (isset($_GET['json']) && $_GET['json']) {
header('Content-Type: text/javascript');
}
else {
header('Content-Type: text/xml');
}
-echo $rest->run();
+echo $rest->bootAndRun();