-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreview_report.php
More file actions
630 lines (580 loc) · 35.7 KB
/
Copy pathpreview_report.php
File metadata and controls
630 lines (580 loc) · 35.7 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
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
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
<?php
/**
* NFC/RFID Report Generator
* Náhled reportu
*/
// Kontrola, zda byl formulář odeslán
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
header('Location: index.php');
exit;
}
// Zpracování dat z formuláře
$reportData = $_POST;
// Nastavení hlaviček pro HTML výstup
header('Content-Type: text/html; charset=utf-8');
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
// Začátek generování HTML obsahu
$html = '
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NFC/RFID Analýza - ' . htmlspecialchars($reportData['reportId']) . '</title>
<style>
/* Základní styly - hackerský design */
body {
font-family: "Courier New", monospace;
line-height: 1.6;
color: #00ff00; /* Matrix zelená */
background-color: #0a0a0a;
margin: 0;
padding: 0;
}
.container {
max-width: 1140px;
margin: 0 auto;
padding: 20px;
background-color: #121212;
box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
border: 1px solid #1a1a1a;
}
/* Hlavička reportu */
.report-header {
background: linear-gradient(135deg, #000000, #1a1a1a);
color: #00ff00;
padding: 30px;
margin-bottom: 30px;
border-radius: 0;
position: relative;
overflow: hidden;
border-left: 4px solid #00ff00;
text-transform: uppercase;
letter-spacing: 2px;
}
.report-header h1 {
margin: 0;
font-size: 28px;
font-weight: 700;
text-align: center;
text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
font-family: "Courier New", monospace;
}
.report-header h1::before {
content: "[ ";
}
.report-header h1::after {
content: " ]";
}
.report-meta {
display: flex;
justify-content: space-between;
margin-top: 15px;
font-size: 12px;
font-family: "Courier New", monospace;
color: #00cc00;
}
.report-id {
font-weight: bold;
background-color: rgba(0, 255, 0, 0.1);
padding: 5px 10px;
border: 1px solid #00ff00;
border-radius: 0;
font-family: "Courier New", monospace;
}
/* Sekce reportu */
.section {
margin-bottom: 30px;
border-radius: 0;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
background-color: #1a1a1a;
border: 1px solid #333;
border-left: 3px solid #00ff00;
}
.section-header {
background-color: #000000;
padding: 15px 20px;
border-bottom: 1px solid #333;
display: flex;
align-items: center;
}
.section-header h2 {
margin: 0;
font-size: 16px;
color: #00ff00;
font-weight: 700;
font-family: "Courier New", monospace;
text-transform: uppercase;
letter-spacing: 1px;
}
.section-header .section-icon {
margin-right: 10px;
width: 24px;
height: 24px;
background-color: #000000;
color: #ffff00;
border-radius: 0;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 14px;
font-family: "Courier New", monospace;
}
.section-content {
padding: 20px;
color: #cccccc;
font-family: "Courier New", monospace;
}
/* Tabulky */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 0;
font-family: "Courier New", monospace;
}
.data-table {
border: 1px solid #333;
width: 100%;
background-color: #0a0a0a;
}
.data-table th {
background-color: #000000;
font-weight: 700;
text-align: left;
padding: 12px 15px;
border-bottom: 1px solid #333;
color: #00ff00;
text-transform: uppercase;
font-size: 12px;
letter-spacing: 1px;
}
.data-table td {
padding: 12px 15px;
border-bottom: 1px solid #333;
vertical-align: top;
color: #cccccc;
background-color: #0a0a0a;
}
.data-table tr:last-child td {
border-bottom: none;
}
.data-table tr:nth-child(even) {
background-color: #0f0f0f;
}
/* Info tabulka (bez rámečků) */
.info-table {
width: 100%;
background-color: #0a0a0a;
}
.info-table td {
padding: 8px 0;
vertical-align: top;
border-bottom: 1px solid #333;
color: #cccccc;
background-color: #0a0a0a;
}
.info-table tr:last-child td {
border-bottom: none;
}
.info-table td:first-child {
font-weight: 700;
width: 30%;
color: #00cc00;
padding-right: 15px;
text-transform: uppercase;
font-size: 12px;
letter-spacing: 1px;
}
/* Hodnocení */
.rating {
display: inline-flex;
align-items: center;
font-family: "Courier New", monospace;
}
.rating-stars {
color: #00ff00;
font-size: 18px;
letter-spacing: 2px;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}
/* Zápatí */
.report-footer {
margin-top: 30px;
text-align: center;
font-size: 12px;
color: #666;
padding: 20px;
border-top: 1px solid #333;
font-family: "Courier New", monospace;
}
.report-footer::before {
content: "/* ";
color: #00ff00;
}
.report-footer::after {
content: " */";
color: #00ff00;
}
/* Tlačítka */
.btn-container {
text-align: center;
margin-top: 30px;
padding: 20px;
border-top: 1px solid #333;
}
.btn {
display: inline-block;
font-weight: 700;
text-align: center;
white-space: nowrap;
vertical-align: middle;
user-select: none;
border: 1px solid #00ff00;
padding: 0.5rem 1rem;
font-size: 0.9rem;
line-height: 1.5;
border-radius: 0;
transition: all 0.2s ease-in-out;
cursor: pointer;
margin: 0 5px;
text-transform: uppercase;
letter-spacing: 1px;
font-family: "Courier New", monospace;
position: relative;
overflow: hidden;
text-decoration: none;
}
.btn-primary {
color: #00ff00;
background-color: #000;
border-color: #00ff00;
}
.btn-secondary {
color: #ccc;
background-color: #1a1a1a;
border-color: #333;
}
</style>
</head>
<body>
<div class="container">
<div class="report-header">
<h1>NFC/RFID Analýza - ' . htmlspecialchars($reportData['reportId']) . '</h1>
<div class="report-meta">
<div>
<span>Datum: ' . htmlspecialchars($reportData['analysisDate']) . '</span> |
<span>Analytik: ' . htmlspecialchars($reportData['analystName']) . '</span>
</div>
<div class="report-id">ID: ' . htmlspecialchars($reportData['reportId']) . '</div>
</div>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">1</div>
<h2>Základní informace o analýze</h2>
</div>
<div class="section-content">
<table class="info-table" style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Datum analýzy:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['analysisDate']) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Analytik:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['analystName']) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">ID reportu:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['reportId']) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Typ analýzy:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['analysisType']) . '</td>
</tr>
</table>
</div>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">2</div>
<h2>Informace o testovaném tagu</h2>
</div>
<div class="section-content">
<table class="info-table" style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Typ tagu:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['tagType'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Výrobce:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['manufacturer'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Model/označení:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['model'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Sériové číslo:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['serialNumber'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Frekvence:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['frequency'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Kapacita paměti:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['memoryCapacity'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Fyzické rozměry:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['dimensions'] ?? 'Neuvedeno') . '</td>
</tr>
</table>
</div>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">3</div>
<h2>Technická specifikace</h2>
</div>
<div class="section-content">
<table class="info-table" style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Použité protokoly:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . (isset($reportData['protocols']) && is_array($reportData['protocols']) ? htmlspecialchars(implode(', ', $reportData['protocols'])) : 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Typ šifrování:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . (isset($reportData['encryption']) && is_array($reportData['encryption']) ? htmlspecialchars(implode(', ', $reportData['encryption'])) : 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Podporované příkazy:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['supportedCommands'] ?? 'Neuvedeno')) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">NDEF záznamy:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['ndefRecords'] ?? 'Neuvedeno')) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">UID/NUID:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['uid'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">ATR response:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['atrResponse'] ?? 'Neuvedeno') . '</td>
</tr>
</table>
</div>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">4</div>
<h2>Bezpečnostní analýza</h2>
</div>
<div class="section-content">
<table class="info-table" style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Zjištěné zranitelnosti:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['vulnerabilities'] ?? 'Žádné')) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Úroveň zabezpečení:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">
<div class="rating">
<div class="rating-stars" style="color: #00ff00; font-size: 18px; letter-spacing: 2px; text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);">' . str_repeat('★', intval($reportData['securityLevel'] ?? 0)) . str_repeat('☆', 5 - intval($reportData['securityLevel'] ?? 0)) . '</div>
<span style="margin-left: 10px; color: #00ff00;">' . htmlspecialchars($reportData['securityLevel'] ?? 'Nehodnoceno') . '/5</span>
</div>
</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Možnosti klonování:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . (isset($reportData['cloning']) && is_array($reportData['cloning']) ? htmlspecialchars(implode(', ', $reportData['cloning'])) : 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Známé exploity:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['knownExploits'] ?? 'Žádné')) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Doporučení pro zabezpečení:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['securityRecommendations'] ?? 'Žádné')) . '</td>
</tr>
</table>
</div>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">5</div>
<h2>Testovací prostředí</h2>
</div>
<div class="section-content">
<table class="info-table" style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Použité čtečky/zařízení:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['readers'] ?? 'Neuvedeno')) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Software pro analýzu:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['software'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Verze firmware:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['firmware'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Podmínky testování:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['testConditions'] ?? 'Neuvedeno')) . '</td>
</tr>
</table>
</div>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">6</div>
<h2>Výsledky testů</h2>
</div>
<div class="section-content">
<h3 style="font-size: 16px; color: #00ff00; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;">Čtení/zápis test</h3>
<table class="data-table" style="width: 100%; border-collapse: collapse; border: 1px solid #333; background-color: #0a0a0a;">
<thead>
<tr>
<th style="background-color: #000; color: #00ff00; padding: 8px; text-align: left; border: 1px solid #333; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Operace</th>
<th style="background-color: #000; color: #00ff00; padding: 8px; text-align: left; border: 1px solid #333; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Úspěšnost</th>
<th style="background-color: #000; color: #00ff00; padding: 8px; text-align: left; border: 1px solid #333; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Čas (ms)</th>
<th style="background-color: #000; color: #00ff00; padding: 8px; text-align: left; border: 1px solid #333; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Poznámka</th>
</tr>
</thead>
<tbody>
<tr>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border: 1px solid #333;">Čtení UID</td>
<td style="background-color: #0a0a0a; color: #00ff00; padding: 8px; border: 1px solid #333;">' . htmlspecialchars($reportData['readUidSuccess'] ?? 'Neuvedeno') . '</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border: 1px solid #333;">' . htmlspecialchars($reportData['readUidTime'] ?? '-') . '</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border: 1px solid #333;">' . htmlspecialchars($reportData['readUidNote'] ?? '-') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border: 1px solid #333;">Čtení dat</td>
<td style="background-color: #0a0a0a; color: #00ff00; padding: 8px; border: 1px solid #333;">' . htmlspecialchars($reportData['readDataSuccess'] ?? 'Neuvedeno') . '</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border: 1px solid #333;">' . htmlspecialchars($reportData['readDataTime'] ?? '-') . '</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border: 1px solid #333;">' . htmlspecialchars($reportData['readDataNote'] ?? '-') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border: 1px solid #333;">Zápis dat</td>
<td style="background-color: #0a0a0a; color: #00ff00; padding: 8px; border: 1px solid #333;">' . htmlspecialchars($reportData['writeDataSuccess'] ?? 'Neuvedeno') . '</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border: 1px solid #333;">' . htmlspecialchars($reportData['writeDataTime'] ?? '-') . '</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border: 1px solid #333;">' . htmlspecialchars($reportData['writeDataNote'] ?? '-') . '</td>
</tr>
</tbody>
</table>
<h3 style="font-size: 16px; color: #00ff00; margin: 20px 0 15px; text-transform: uppercase; letter-spacing: 1px;">Další výsledky testů</h3>
<table class="info-table" style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Rychlost přenosu dat:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['transferSpeed'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Úspěšnost čtení na vzdálenost:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . htmlspecialchars($reportData['readDistance'] ?? 'Neuvedeno') . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Odolnost proti rušení:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">
<div class="rating">
<div class="rating-stars" style="color: #00ff00; font-size: 18px; letter-spacing: 2px; text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);">' . str_repeat('★', intval($reportData['interferenceResistance'] ?? 0)) . str_repeat('☆', 5 - intval($reportData['interferenceResistance'] ?? 0)) . '</div>
<span style="margin-left: 10px; color: #00ff00;">' . htmlspecialchars($reportData['interferenceResistance'] ?? 'Nehodnoceno') . '/5</span>
</div>
</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Výsledky penetračních testů:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['penetrationTestResults'] ?? 'Neuvedeno')) . '</td>
</tr>
</table>
</div>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">7</div>
<h2>Přílohy</h2>
</div>
<div class="section-content">
<table class="info-table" style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Zachycené komunikační logy:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['communicationLogs'] ?? 'Žádné')) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Screenshoty z analýzy:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['screenshots'] ?? 'Žádné')) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Fotografie tagu:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['tagPhotos'] ?? 'Žádné')) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Grafy výkonu:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['performanceGraphs'] ?? 'Žádné')) . '</td>
</tr>
</table>
</div>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">8</div>
<h2>Závěr a doporučení</h2>
</div>
<div class="section-content">
<table class="info-table" style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Celkové hodnocení:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">
<div class="rating">
<div class="rating-stars" style="color: #00ff00; font-size: 18px; letter-spacing: 2px; text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);">' . str_repeat('★', intval($reportData['overallRating'] ?? 0)) . str_repeat('☆', 5 - intval($reportData['overallRating'] ?? 0)) . '</div>
<span style="margin-left: 10px; color: #00ff00;">' . htmlspecialchars($reportData['overallRating'] ?? 'Nehodnoceno') . '/5</span>
</div>
</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Vhodnost pro zamýšlené použití:</td>
<td style="background-color: #0a0a0a; color: #00ff00; padding: 8px; border-bottom: 1px solid #333;"><strong>' . htmlspecialchars($reportData['suitability'] ?? 'Neuvedeno') . '</strong></td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Bezpečnostní doporučení:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['securityRecommendationsFinal'] ?? 'Žádné')) . '</td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Návrhy na vylepšení:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;">' . nl2br(htmlspecialchars($reportData['improvementSuggestions'] ?? 'Žádné')) . '</td>
</tr>
</table>
</div>
</div>
<div class="report-footer">
<p>Vygenerováno pomocí NFC/RFID Report Generator</p>
<p>Datum vygenerování: ' . date('d.m.Y H:i:s') . '</p>
</div>
<div class="btn-container">
<a href="index.php" class="btn btn-secondary">Zpět na formulář</a>
<button onclick="window.print()" class="btn btn-primary">Vytisknout</button>
<form method="post" action="generate_pdf.php" style="display: inline;">';
// Přidání všech POST dat jako skrytá pole
foreach ($reportData as $key => $value) {
if (is_array($value)) {
foreach ($value as $item) {
$html .= "<input type=\"hidden\" name=\"{$key}[]\" value=\"" . htmlspecialchars($item) . "\">";
}
} else {
$html .= "<input type=\"hidden\" name=\"{$key}\" value=\"" . htmlspecialchars($value) . "\">";
}
}
$html .= '
<button type="submit" class="btn btn-primary">Generovat PDF</button>
</form>
</div>
</div>
</body>
</html>';
// Zobrazení HTML
echo $html;