forked from lucasfrag/Kali-Linux-Tools-Interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
124 lines (88 loc) · 3.47 KB
/
index.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
<!DOCTYPE html>
<html>
<?php
include("assets/includes/head.php");
?>
<body>
<?php
include("assets/includes/header.php")
?>
<!-- Page content -->
<div class="container-fluid mt--7">
<!-- Table -->
<div class="row">
<div class="col">
<div class="card shadow">
<div class="card-header bg-transparent">
<h2 class="mb-0">Dashboard</h2>
</div>
<div class="card-body">
<div class="row">
<div class="col-xl-6 col-lg-6">
<div class="card card-stats">
<div class="card-body">
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Available Tools</h5>
<span class="h3 font-weight-bold mb-0">
<?php
$con = getConnectionDB() or die ("Could not connect to database.");
$sql = $con->prepare("SELECT * FROM tools WHERE released = 'Yes'");
$sql->execute();
echo $sql->rowCount();
?>
TOOLS</span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-default text-white rounded-circle shadow">
<i class="ni ni-bullet-list-67"></i>
</div>
</div>
</div>
<p class="mt-3 mb-0 text-muted text-sm">
</p>
<a href="tools-list.php" class="btn btn-success">Show tools list</a>
</div>
</div>
</div>
<div class="col-xl-6 col-lg-6">
<div class="card card-stats">
<div class="card-body">
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Reports</h5>
<span class="h3 font-weight-bold mb-0">
<?php
$con = getConnectionDB() or die ("Could not connect to database.");
$sql = $con->prepare("SELECT * FROM reports");
$sql->execute();
echo $sql->rowCount();
?>
REPORTS</span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-yellow text-white rounded-circle shadow">
<i class="ni ni-single-copy-04"></i>
</div>
</div>
</div>
<p class="mt-3 mb-0 text-muted text-sm">
</p>
<a href="" class="btn btn-danger">Go to reports</a>
</div>
</div>
</div>
</div>
</div>
<?php
// $ssh = getConnectionSSH();
//echo $ssh->exec('');
?>
</div>
</div>
</div>
<?php
include("assets/includes/footer.php")
?>
</body>
</html>