-
Notifications
You must be signed in to change notification settings - Fork 0
/
search_json.php
36 lines (29 loc) · 932 Bytes
/
search_json.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
include('common.php');
include('functions.php');
?>
<?php
$GLOBALS['debugLogging'] = false;
if(isset($_GET['condition'])) {
$condition = $_GET['condition'];
} else {
$condition = "";
}
if(isset($_GET['intervention'])) {
$intervention = $_GET['intervention'];
} else {
$intervention = "";
}
if(isset($_GET['outcome'])) {
$outcome = $_GET['outcome'];
} else {
$outcome = "";
}
debugLog('Condition: '.$condition);
debugLog('Intervention: '.$intervention);
debugLog('Outcome: '.$outcome);
$allXMLs = getData($condition, $intervention, $outcome);
$result = analyze($allXMLs, $condition, $intervention, $outcome);
header('Content-Type: application/json');
echo $result;
?>