forked from darey-io/tooling
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadmin_tooling.php
More file actions
141 lines (111 loc) · 2.84 KB
/
Copy pathadmin_tooling.php
File metadata and controls
141 lines (111 loc) · 2.84 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
<?php
include('functions.php');
if (!isAdmin()) {
$_SESSION['msg'] = "You must log in first";
header('location: login.php');
}
if (isset($_GET['logout'])) {
session_destroy();
unset($_SESSION['user']);
header("location: login.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="tooling_stylesheets.css">
<style>
.header {
background: #003366;
}
button[name=register_btn] {
background: #003366;
}
</style>
</head>
<body>
<div class="header">
<h2>Admin - Home Page</h2>
</div>
<div class="content">
<!-- notification message -->
<?php if (isset($_SESSION['success'])) : ?>
<div class="error success" >
<h3>
<?php
echo $_SESSION['success'];
unset($_SESSION['success']);
?>
</h3>
</div>
<?php endif ?>
<!-- logged in user information -->
<div class="profile_info">
<!-- <img src="../images/admin_profile.png" > -->
<div>
<?php if (isset($_SESSION['user'])) : ?>
<strong><?php echo $_SESSION['user']['username']; ?></strong>
<small>
<i style="color: #888;">(<?php echo ucfirst($_SESSION['user']['user_type']); ?>)</i>
<br>
<a href="admin_tooling.php?logout='1'" style="color: red;">logout</a>
<a href="create_user.php" target="_blank"> + add user</a>
</small>
<?php endif ?>
</div>
</div>
</div>
<div class="Logo">
<a href="">
<img src="img/logo-propitix.png" alt="" width="220" height="150">
</a>
</div>
<h1> PROPITIX TOOLING WEBSITE </h1>
<h2 id="test">Propitix.io</h2>
<div class="container">
<div class="box">
<a href="https://jenkins.infra.zooto.io/" target="_blank">
<img src="img/jenkins.png" alt="Snow" width="400" height="150">
</a>
</div>
<div class="box">
<a href="https://grafana.infra.zooto.io/" target="_blank">
<img src="img/grafana.png" alt="Snow2" width="400" height="150">
</a>
</div>
<div class="box">
<a href="https://rancher.infra.zooto.io/" target="_blank">
<img src="img/rancher.png" alt="Snow" width="400" height="150">
</a>
</div>
</div>
<div class="container">
<div class="box">
<a href="https://prometheus.infra.zooto.io/" target="_blank">
<img src="img/prometheus.png" alt="Snow" width="400" height="150">
</a>
</div>
<div class="box">
<a href="https://k8s-metrics.infra.zooto.io/" target="_blank">
<img src="img/kubernetes.png" alt="Snow" width="400" height="120">
</a>
</div>
<div class="box">
<a href="https://kibana.infra.zooto.io/" target="_blank">
<img src="img/kibana.png" alt="Snow" width="400" height="100">
</a>
</div>
</div>
<div class="container">
<div class="box">
<a href="https://artifactory.infra.zooto.io/" target="_blank">
<img src="img/jfrog.png" alt="snow" width="400" height="100">
</a>
</div>
</div>
</div>
</section>
</body>
</html>