forked from klaubert/waf-fle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
filtershow.php
390 lines (358 loc) · 29.3 KB
/
filtershow.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
<?PHP
require_once("../session.php");
if (isset($_SESSION['filter'])) {
$showFilter = "<div>";
$showFilter .= "<div class=\"ui-widget\">";
$showFilter .= "<div class=\"ui-state-highlight ui-corner-all\" style=\"margin-top: 1px; margin-bottom: 1px; padding: 0 .7em; padding-top: 3px; padding-bottom: 3px;\">";
$showFilter .= "<span class=\"ui-icon ui-icon-search\" style=\"float: left; margin-right: .3em;\"></span>";
$showFilter .= "<strong>Current Filter: { </strong>";
if (isset($_SESSION['filter']['StDate']) AND isset($_SESSION['filter']['StTime']) AND isset($_SESSION['filter']['FnDate']) AND isset($_SESSION['filter']['FnTime'])) {
$showFilter .= "Date: ".$_SESSION['filter']['StDate'] ." ".$_SESSION['filter']['StTime'] ." Until ".$_SESSION['filter']['FnDate'] ." ".$_SESSION['filter']['FnTime'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?StDate=X&StTime=X&FnDate=X&FnTime=X\" title=\"Reset Filter Date\" class=\"filter_control\">Reset for Today</a>)</span> ";
}
if (isset($_SESSION['filter']['ruleid'])) {
if ($_SESSION['filter']['ruleid'] == " ") {
$eventID = "Space";
} else {
$eventID = $_SESSION['filter']['ruleid'];
}
if ($_SESSION['filter']['Not_ruleid']) {
$showFilter .= "| Rule ID: <span class=\"Negate\">".$eventID ."</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?ruleid=$eventID&Not_ruleid=0\" title=\"Negate the Rule ID from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Rule ID: ".$eventID ;
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?ruleid=$eventID&Not_ruleid=1\" title=\"Negate the Rule ID from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?ruleid=x\" title=\"Clear Rule ID Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['esrc'])) {
if (isset($_SESSION['filter']['Not_esrc']) AND $_SESSION['filter']['Not_esrc']) {
$showFilter .= "| Client IP: <span class=\"Negate\">".$_SESSION['filter']['esrc'] . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?esrc=".$_SESSION['filter']['esrc']."&Not_esrc=0\" title=\"Exclude the Client IP from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Client IP: ".$_SESSION['filter']['esrc'] ;
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?esrc=".$_SESSION['filter']['esrc']."&Not_esrc=1\" title=\"Exclude the Client IP from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?esrc=x\" title=\"Clear Client IP Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['ipcc'])) {
if (isset($_SESSION['filter']['Not_ipcc']) AND $_SESSION['filter']['Not_ipcc']) {
$showFilter .= "| Client IP Country Code: <span class=\"Negate\">".$_SESSION['filter']['ipcc'] . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?ipcc=".$_SESSION['filter']['ipcc']."&Not_ipcc=0\" title=\"Exclude the Client IP Country Code from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Client IP Country Code: ".$_SESSION['filter']['ipcc'] ;
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?ipcc=".$_SESSION['filter']['ipcc']."&Not_ipcc=1\" title=\"Exclude the Client IP Country Code from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?ipcc=x\" title=\"Clear Client IP Country Code Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['ipasn'])) {
if (isset($_SESSION['filter']['Not_ipasn']) AND $_SESSION['filter']['Not_ipasn']) {
$showFilter .= "| Client IP Autonomous System Number: <span class=\"Negate\">".$_SESSION['filter']['ipasn'] . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?ipasn=".$_SESSION['filter']['ipasn']."&Not_ipasn=0\" title=\"Exclude the Client IP Autonomous System Number from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Client IP Autonomous System Number: ".$_SESSION['filter']['ipasn'] ;
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?ipasn=".$_SESSION['filter']['ipasn']."&Not_ipasn=1\" title=\"Exclude the Client IP Autonomous System Number from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?ipasn=x\" title=\"Clear Client IP Country Code Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['web_Hostname'])) {
if (isset($_SESSION['filter']['Not_web_Hostname']) AND $_SESSION['filter']['Not_web_Hostname']) {
$showFilter .= "| Web Hostname: <span class=\"Negate\">".getWebHostName($_SESSION['filter']['web_Hostname']) . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?web_Hostname=".$_SESSION['filter']['web_Hostname']."&Not_web_Hostname=0\" title=\"Exclude the Web Hostname from Search\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Web Hostname: ".getWebHostName($_SESSION['filter']['web_Hostname']) ;
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?web_Hostname=".$_SESSION['filter']['web_Hostname']."&Not_web_Hostname=1\" title=\"Exclude the Web Hostname from Search\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?web_Hostname=x\" title=\"Clear Web Hostname Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['src_sensor'])) {
$sensor = getsensorname($_SESSION['filter']['src_sensor']);
if (isset($_SESSION['filter']['Not_src_sensor']) AND $_SESSION['filter']['Not_src_sensor']) {
$showFilter .= "| Sensor: <span class=\"Negate\">".$sensor['name']."</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?src_sensor=".$_SESSION['filter']['src_sensor']."&Not_src_sensor=0\" title=\"Exclude the Sensor from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Sensor: ".$sensor['name'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?src_sensor=".$_SESSION['filter']['src_sensor']."&Not_src_sensor=1\" title=\"Exclude the Sensor from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?src_sensor=x\" title=\"Clear Sensor Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['method'])) {
if (isset($_SESSION['filter']['Not_method']) AND $_SESSION['filter']['Not_method']) {
$showFilter .= "| Method: <span class=\"Negate\">".$_SESSION['filter']['method']."</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?method=".$_SESSION['filter']['method']."&Not_method=0\" title=\"Exclude the Method from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Method: ".$_SESSION['filter']['method'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?method=".$_SESSION['filter']['method']."&Not_method=1\" title=\"Exclude the Method from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?method=x\" title=\"Clear Method Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['http_Status'])) {
if (isset($_SESSION['filter']['Not_http_Status']) AND $_SESSION['filter']['Not_http_Status']) {
$showFilter .= "| HTTP Status: <span class=\"Negate\">".$_SESSION['filter']['http_Status'] . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?http_Status=".$_SESSION['filter']['http_Status']."&Not_http_Status=0\" title=\"Exclude this HTTP Status from Filter\" class=\"filter_control\">Not</a>)" ;
} else {
$showFilter .= "| HTTP Status: ".$_SESSION['filter']['http_Status'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?http_Status=".$_SESSION['filter']['http_Status']."&Not_http_Status=1\" title=\"Exclude this HTTP Status from Filter\" class=\"filter_control\">Not</a>)" ;
}
$showFilter .= " (<a href=\"$thisPage?http_Status=x\" title=\"Clear HTTP Status Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['actionstatus'])) {
if (isset($_SESSION['filter']['Not_actionstatus']) AND $_SESSION['filter']['Not_actionstatus']) {
if (preg_match('/^\d{1,2}$/',$_SESSION['filter']['actionstatus'])) {
$showFilter .= "| Action: <span class=\"Negate\">".$ActionStatus[$_SESSION['filter']['actionstatus']] . "</span>";
} else {
$showFilter .= "| Action: <span class=\"Negate\">".$_SESSION['filter']['actionstatus'] . "</span>";
}
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?actionstatus=".$_SESSION['filter']['actionstatus']."&Not_actionstatus=0\" title=\"Exclude this Action from Filter\" class=\"filter_control\">Not</a>)";
} else {
if (preg_match('/^\d{1,2}$/',$_SESSION['filter']['actionstatus'])) {
$showFilter .= "| Action: ".$ActionStatus[$_SESSION['filter']['actionstatus']];
} else {
$showFilter .= "| Action: ".$_SESSION['filter']['actionstatus'];
}
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?actionstatus=".$_SESSION['filter']['actionstatus']."&Not_actionstatus=1\" title=\"Exclude this Action from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?actionstatus=x\" title=\"Clear Action Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['engineMode'])) {
if (isset($_SESSION['filter']['Not_engineMode']) AND $_SESSION['filter']['Not_engineMode']) {
$showFilter .= "| Engine Mode: <span class=\"Negate\">".$_SESSION['filter']['engineMode'] . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?engineMode=".$_SESSION['filter']['engineMode']."&Not_engineMode=0\" title=\"Exclude this Engine Mode from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Engine Mode: ".$_SESSION['filter']['engineMode'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?engineMode=".$_SESSION['filter']['engineMode']."&Not_engineMode=1\" title=\"Exclude this Engine Mode from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?engineMode=x\" title=\"Clear Engine Mode Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['severity'])) {
if (isset($_SESSION['filter']['Not_severity']) AND $_SESSION['filter']['Not_severity']) {
$showFilter .= "| Severity: <span class=\"Negate\">".$severity[$_SESSION['filter']['severity']] . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?severity=".$_SESSION['filter']['severity']."&Not_severity=0\" title=\"Exclude this Severity from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Severity: ".$severity[$_SESSION['filter']['severity']];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?severity=".$_SESSION['filter']['severity']."&Not_severity=1\" title=\"Exclude this Severity from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?severity=x\" title=\"Clear Severity Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['path'])) {
if ($_SESSION['filter']['path_wc']) {
$pathwc_tmp = '*';
}
if (isset($_SESSION['filter']['Not_path']) AND $_SESSION['filter']['Not_path']) {
$showFilter .= "| Path: <span class=\"Negate\">".$_SESSION['filter']['path'] . $pathwc_tmp . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?path=".$_SESSION['filter']['path'] . $pathwc_tmp . "&Not_path=0\" title=\"Exclude this Path from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Path: ".$_SESSION['filter']['path'] . $pathwc_tmp;
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?path=".$_SESSION['filter']['path'] . $pathwc_tmp . "&Not_path=1\" title=\"Exclude this Path from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?path=x\" title=\"Clear Path Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['uniqId'])) {
$showFilter .= "| Unique ID: ".$_SESSION['filter']['uniqId'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?uniqId=x\" title=\"Clear Unique ID Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['webApp'])) {
if (isset($_SESSION['filter']['Not_webApp']) AND $_SESSION['filter']['Not_webApp']) {
$showFilter .= "| Web App Info: <span class=\"Negate\">".$_SESSION['filter']['webApp'] . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?webApp=".$_SESSION['filter']['webApp']."&Not_webApp=0\" title=\"Exclude this Web App Infor from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Web App Info: ".$_SESSION['filter']['webApp'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?webApp=".$_SESSION['filter']['webApp']."&Not_webApp=1\" title=\"Exclude this Web App Infor from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?webApp=x\" title=\"Clear Web App Info Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['userId'])) {
if (isset($_SESSION['filter']['Not_userId']) AND $_SESSION['filter']['Not_userId']) {
$showFilter .= "| User ID: <span class=\"Negate\">".$_SESSION['filter']['userId'] . "</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?userId=".$_SESSION['filter']['userId']."&Not_userId=0\" title=\"Exclude this User ID from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| User ID: ".$_SESSION['filter']['userId'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?userId=".$_SESSION['filter']['userId']."&Not_userId=1\" title=\"Exclude this User ID from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?userId=x\" title=\"Clear User ID Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Tag
if (isset($_SESSION['filter']['tag'])) {
$tag_name = getTagName($_SESSION['filter']['tag']);
if (isset($_SESSION['filter']['Not_tag']) AND $_SESSION['filter']['Not_tag']) {
$showFilter .= "| Tag: <span class=\"Negate\">$tag_name</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?tag=".$_SESSION['filter']['tag']."&Not_tag=0\" title=\"Exclude the Tag from Filter\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Tag: $tag_name";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?tag=".$_SESSION['filter']['tag']."&Not_tag=1\" title=\"Exclude the Tag from Filter\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?tag=x\" title=\"Clear Tag Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['score'])) {
if ($_SESSION['filter']['score_interval'] == "le") {
$showFilter .= "| Score Total: ≤ ".$_SESSION['filter']['score'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?score=".$_SESSION['filter']['score']."&score_interval=ge\" title=\"Invert Score Total Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Score Total: ≥ ".$_SESSION['filter']['score'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?score=".$_SESSION['filter']['score']."&score_interval=le\" title=\"Invert Score Total Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?score=x&score_interval\" title=\"Clear Score Total Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['scoreSqli'])) {
if ($_SESSION['filter']['scoreSqli_interval'] == "le") {
$showFilter .= "| Score SQLi: ≤ ".$_SESSION['filter']['scoreSqli'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?scoreSqli=".$_SESSION['filter']['scoreSqli']."&scoreSqli_interval=ge\" title=\"Invert Score SQLi Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Score SQLi: ≥ ".$_SESSION['filter']['scoreSqli'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?scoreSqli=".$_SESSION['filter']['scoreSqli']."&scoreSqli_interval=le\" title=\"Invert Score SQLi Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?scoreSqli=x&scoreSqli_interval\" title=\"Clear Score SQLi Filter\" class=\"filter_control\">Del</a>)</span> ";
}
if (isset($_SESSION['filter']['scoreXss'])) {
if ($_SESSION['filter']['scoreXss_interval'] == "le") {
$showFilter .= "| Score XSS: ≤ ".$_SESSION['filter']['scoreXss'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?scoreXss=".$_SESSION['filter']['scoreXss']."&scoreXss_interval=ge\" title=\"Invert Score XSS Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Score XSS: ≥ ".$_SESSION['filter']['scoreXss'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?scoreXss=".$_SESSION['filter']['scoreXss']."&scoreXss_interval=le\" title=\"Invert Score XSS Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?scoreXss=x&scoreXss_interval\" title=\"Clear Score XSS Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Timing filter
// Duration
if (isset($_SESSION['filter']['duration'])) {
if ($_SESSION['filter']['duration_interval'] == "le") {
$showFilter .= "| Duration ≤ ".$_SESSION['filter']['duration'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?duration=".$_SESSION['filter']['duration']."&duration_interval=ge\" title=\"Invert Duration Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Duration: ≥ ".$_SESSION['filter']['duration'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?duration=".$_SESSION['filter']['duration']."&duration_interval=le\" title=\"Invert Duration Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?duration=x&duration_interval\" title=\"Clear Duration Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Combined
if (isset($_SESSION['filter']['combined'])) {
if ($_SESSION['filter']['combined_interval'] == "le") {
$showFilter .= "| Combined: ≤ ".$_SESSION['filter']['combined'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?combined=".$_SESSION['filter']['combined']."&combined_interval=ge\" title=\"Invert Combined Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Combined: ≥ ".$_SESSION['filter']['combined'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?combined=".$_SESSION['filter']['combined']."&combined_interval=le\" title=\"Invert Combined Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?combined=x&combined_interval\" title=\"Clear Combined Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Phase 1
if (isset($_SESSION['filter']['p1'])) {
if ($_SESSION['filter']['p1_interval'] == "le") {
$showFilter .= "| Phase 1: ≤ ".$_SESSION['filter']['p1'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p1=".$_SESSION['filter']['p1']."&p1_interval=ge\" title=\"Invert Phase 1 Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Phase 1: ≥ ".$_SESSION['filter']['p1'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p1=".$_SESSION['filter']['p1']."&p1_interval=le\" title=\"Invert Phase 1 Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?p1=x&p1_interval\" title=\"Clear Phase 1 Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Phase 2
if (isset($_SESSION['filter']['p2'])) {
if ($_SESSION['filter']['p2_interval'] == "le") {
$showFilter .= "| Phase 2: ≤ ".$_SESSION['filter']['p2'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p2=".$_SESSION['filter']['p2']."&p2_interval=ge\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Phase 2: ≥ ".$_SESSION['filter']['p2'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p2=".$_SESSION['filter']['p2']."&p2_interval=le\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?p2=x&p2_interval\" title=\"Clear Phase 2 Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Phase 3
if (isset($_SESSION['filter']['p3'])) {
if ($_SESSION['filter']['p3_interval'] == "le") {
$showFilter .= "| Phase 3: ≤ ".$_SESSION['filter']['p3'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p3=".$_SESSION['filter']['p3']."&p3_interval=ge\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Phase 3: ≥ ".$_SESSION['filter']['p3'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p3=".$_SESSION['filter']['p3']."&p3_interval=le\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?p3=x&p3_interval\" title=\"Clear Phase 3 Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Phase 4
if (isset($_SESSION['filter']['p4'])) {
if ($_SESSION['filter']['p4_interval'] == "le") {
$showFilter .= "| Phase 4: ≤ ".$_SESSION['filter']['p4'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p4=".$_SESSION['filter']['p4']."&p4_interval=ge\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Phase 4: ≥ ".$_SESSION['filter']['p4'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p4=".$_SESSION['filter']['p4']."&p4_interval=le\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?p4=x&p4_interval\" title=\"Clear Phase 4 Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Phase 5
if (isset($_SESSION['filter']['p5'])) {
if ($_SESSION['filter']['p5_interval'] == "le") {
$showFilter .= "| Phase 5: ≤ ".$_SESSION['filter']['p5'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p5=".$_SESSION['filter']['p5']."&p5_interval=ge\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Phase 5: ≥ ".$_SESSION['filter']['p5'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?p5=".$_SESSION['filter']['p5']."&p5_interval=le\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?p5=x&p5_interval\" title=\"Clear Phase 5 Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Storage Read
if (isset($_SESSION['filter']['sr'])) {
if ($_SESSION['filter']['sr_interval'] == "le") {
$showFilter .= "| Storage Read: ≤ ".$_SESSION['filter']['sr'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?sr=".$_SESSION['filter']['sr']."&sr_interval=ge\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Storage Read: ≥ ".$_SESSION['filter']['sr'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?sr=".$_SESSION['filter']['sr']."&sr_interval=le\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?sr=x&sr_interval\" title=\"Clear Storage Read Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Storage Write
if (isset($_SESSION['filter']['sw'])) {
if ($_SESSION['filter']['sw_interval'] == "le") {
$showFilter .= "| Storage Write: ≤ ".$_SESSION['filter']['sw'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?sw=".$_SESSION['filter']['sw']."&sw_interval=ge\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Storage Write: ≥ ".$_SESSION['filter']['sw'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?sw=".$_SESSION['filter']['sw']."&sw_interval=le\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?sw=x&sw_interval\" title=\"Clear Storage Write Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Logging
if (isset($_SESSION['filter']['log'])) {
if ($_SESSION['filter']['log_interval'] == "le") {
$showFilter .= "| Logging: ≤ ".$_SESSION['filter']['log'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?log=".$_SESSION['filter']['log']."&log_interval=ge\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Logging: ≥ ".$_SESSION['filter']['log'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?log=".$_SESSION['filter']['log']."&log_interval=le\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?log=x&log_interval\" title=\"Clear Logging Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// Garbage Collection
if (isset($_SESSION['filter']['gc'])) {
if ($_SESSION['filter']['gc_interval'] == "le") {
$showFilter .= "| Garbage Collection: ≤ ".$_SESSION['filter']['gc'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?gc=".$_SESSION['filter']['gc']."&gc_interval=ge\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≥</a>)";
} else {
$showFilter .= "| Garbage Collection: ≥ ".$_SESSION['filter']['gc'];
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?gc=".$_SESSION['filter']['gc']."&gc_interval=le\" title=\"Invert Phase 2 Filter\" class=\"filter_control\">Invert to ≤</a>)";
}
$showFilter .= "(<a href=\"$thisPage?gc=x&gc_interval\" title=\"Clear Garbage Collection Filter\" class=\"filter_control\">Del</a>)</span> ";
}
// False Positive
if (isset($_SESSION['filter']['falsePositive'])) {
if ($_SESSION['filter']['falsePositive'] == FALSE) {
$showFilter .= "| <span class=\"Negate\">Marked as False Positive</span>";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?falsePositive=1\" title=\"Change to Events Marked as False Positive\" class=\"filter_control\">Not</a>)";
} else {
$showFilter .= "| Marked as False Positive ";
$showFilter .= "<span class=\"filter_control\" > (<a href=\"$thisPage?falsePositive=0\" title=\"Change to Events Not Marked as False Positive\" class=\"filter_control\">Not</a>)";
}
$showFilter .= " (<a href=\"$thisPage?falsePositive=x\" title=\"Clear False Positive Filter\" class=\"filter_control\">Del</a>)</span> ";
}
$showFilter .= "}";
$showFilter .= " <a href=\"$thisPage?filter=x\"><b>Clear Filter</b></a> ";
//$showFilter .= " </td>";
// $showFilter .= "<input type=\"button\" name=\"delByFilter\" onClick=\"if(confirm('Confirm deletion of ALL events using current filter?')) submitformDelByFilter(); else unselectAll(this);\" value=\"DeleteByFilter\">";
$showFilter .= "</div>";
$showFilter .= "</div>";
$showFilter .= "</div>";
print $showFilter;
}
?>