-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathranking.php
46 lines (36 loc) · 806 Bytes
/
ranking.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
<?php
require_once("includes/db.inc.php");
require_once("includes/functions.inc.php");
require_once("includes/printers.inc.php");
require_once("includes/header.inc.php");
print_header("Classement");
?>
<h2>Classement :</h2>
<?php
$table = new Table();
$table->setHeader(array("Rang", "Nom", "Score"));
$reponse = getRankings();
$index = 0;
foreach ($reponse as $value) {
$table->addRow(array($index++,
$value[user_name],
$value[score]));
}
print $table;
?>
<h2>Vulnérabilités patchées :</h2>
<?php
$table = new Table();
$table->setHeader(array("ID", "Partiel", "Complet"));
$reponse = getSolvedServices();
$index = 0;
foreach ($reponse as $value) {
$table->addRow(array($value[service_id],
$value[nbpartial],
$value[nbcomplete]));
}
print $table;
?>
<?php
print_footer();
?>