-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
59 lines (54 loc) · 1.92 KB
/
search.php
File metadata and controls
59 lines (54 loc) · 1.92 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
require_once("utils.php");
$box = null;
$begin = null;
$end = null;
$insts = null;
$instcats = null;
$ppl = null;
$prjs = null;
$progs = null;
$deps = null;
$awards = null;
$params = null;
$paramcats = null;
$platforms = null;
$limit = 10;
$offset = 0;
$sort = null;
if (@$_GET['bbox'] && @$_GET['bbox'] != '')
$box = explode(";",$_GET['bbox']);
if (@$_GET['startDate'] && @$_GET['startDate'] != '')
$begin = $_GET['startDate'];
if (@$_GET['endDate'] && @$_GET['endDate'] != '')
$end = $_GET['endDate'];
if (@$_GET['instruments'] && @$_GET['instruments'] != '')
$insts = explode(";",$_GET['instruments']);
if (@$_GET['people'] && @$_GET['people'] != '')
$ppl = explode(";",$_GET['people']);
if (@$_GET['projects'] && @$_GET['projects'] != '')
$prjs = explode(";",$_GET['projects']);
if (@$_GET['programs'] && @$_GET['programs'] != '')
$progs = explode(";",$_GET['programs']);
if (@$_GET['deployments'] && @$_GET['deployments'] != '')
$deps = explode(";",$_GET['deployments']);
if (@$_GET['awards'] && @$_GET['awards'] != '')
$awards = explode(";",$_GET['awards']);
if (@$_GET['parameters'] && @$_GET['parameters'] != '')
$params = explode(";",$_GET['parameters']);
if (@$_GET['instcats'] && @$_GET['instcats'] != '')
$instcats = explode(";",$_GET['instcats']);
if (@$_GET['paramcats'] && @$_GET['paramcats'] != '')
$paramcats = explode(";",$_GET['paramcats']);
if (@$_GET['platforms'] && @$_GET['platforms'] != '')
$platforms = explode(";",$_GET['platforms']);
if (@$_GET['limit'] && @$_GET['limit'] != '')
$limit = $_GET['limit'];
if (@$_GET['offset'] && @$_GET['offset'] != '')
$offset = $_GET['offset'];
if (@$_GET['sort'] && @$_GET['sort'] != '')
$sort = $_GET['sort'];
if (@$_GET['request'] && @$_GET['request'] != '')
$type = $_GET['request'];
getResponse(@$box, @$begin, @$end, @$insts, @$instcats, @$ppl, @$prjs, @$progs, @$deps, @$awards, @$params, @$paramcats, @$platforms, @$type, @$limit, @$offset, @$sort);
?>