demoqueue - Switch from `runAllViaWeb()` to `runAllInteractive()`
[civicrm-core.git] / extern / rest.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12require_once '../civicrm.config.php';
d523d24a 13CRM_Core_Config::singleton();
6a488035 14
ba1e1ab6 15if (defined('PANTHEON_ENVIRONMENT')) {
2af2cd60 16 ini_set('session.save_handler', 'files');
17}
6a488035
TO
18$rest = new CRM_Utils_REST();
19
3eec106c
CW
20// Json-appropriate header will be set by CRM_Utils_Rest
21// But we need to set header here for non-json
22if (empty($_GET['json'])) {
6a488035
TO
23 header('Content-Type: text/xml');
24}
4dc9d216 25echo $rest->bootAndRun();