This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
servers.php
476 lines (428 loc) · 32.4 KB
/
servers.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
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
<?php
session_start();
require('inc/vips.classes.php');
$class = new Vips();
$class->checkAccess();
$class->isAdmin();
if (isset($_POST['add_server']) && !empty($_POST['server_name']) && !empty('server_address')) {
$class->addServer($_POST['server_name'], $_POST['server_address']);
}
if (isset($_POST['vip_add']) && !empty($_POST['server_id']) && !empty($_POST['server_address'])) {
$class->addVip($_POST);
}
if (isset($_POST['delete']) && !empty($_POST['server_address'])) {
$class->deleteServer($_POST['server_id'], $_POST['server_address']);
}
if (isset($_POST['edit_server']) && !empty($_POST['server_id'])) {
$class->editServer($_POST);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>:: VIP WEB-PANEL 1.0a ::</title>
<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Manage vip users from web panel">
<meta name="author" content="daffyy">
<link rel="shortcut icon" href="favicon.ico">
<!-- FontAwesome JS-->
<script defer src="assets/plugins/fontawesome/js/all.min.js"></script>
<!-- App CSS -->
<link id="theme-style" rel="stylesheet" href="assets/css/portal.css">
<link rel="stylesheet" href="assets/css/custom.css">
</head>
<body class="app">
<header class="app-header fixed-top">
<div class="app-header-inner">
<div class="container-fluid py-2">
<div class="app-header-content">
<div class="row justify-content-between align-items-center">
<div class="col-auto">
<a id="sidepanel-toggler" class="sidepanel-toggler d-inline-block d-xl-none" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30" role="img">
<title>Menu</title>
<path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path>
</svg>
</a>
</div>
<!--//col-->
</div>
<!--//row-->
</div>
<!--//app-header-content-->
</div>
<!--//container-fluid-->
</div>
<!--//app-header-inner-->
<div id="app-sidepanel" class="app-sidepanel">
<div id="sidepanel-drop" class="sidepanel-drop"></div>
<div class="sidepanel-inner d-flex flex-column">
<a href="#" id="sidepanel-close" class="sidepanel-close d-xl-none">×</a>
<div class="app-branding">
<a class="app-logo" href="index.html"><img class="logo-icon me-2" src="assets/images/app-logo.svg" alt="logo"><span class="logo-text">VIP WEBPANEL</span></a>
</div>
<!--//app-branding-->
<nav id="app-nav-main" class="app-nav app-nav-main flex-grow-1">
<ul class="app-menu list-unstyled accordion" id="menu-accordion">
<li class="nav-item">
<!--//Bootstrap Icons: https://icons.getbootstrap.com/ -->
<a class="nav-link" href="dashboard.php">
<span class="nav-icon">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-house-door" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M7.646 1.146a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 .146.354v7a.5.5 0 0 1-.5.5H9.5a.5.5 0 0 1-.5-.5v-4H7v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .146-.354l6-6zM2.5 7.707V14H6v-4a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v4h3.5V7.707L8 2.207l-5.5 5.5z" />
<path fill-rule="evenodd" d="M13 2.5V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z" />
</svg>
</span>
<span class="nav-link-text">Strona Główna</span>
</a>
<!--//nav-link-->
</li>
<!--//nav-item-->
<li class="nav-item">
<!--//Bootstrap Icons: https://icons.getbootstrap.com/ -->
<a class="nav-link active" href="servers.php">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-server" viewBox="0 0 16 16">
<path d="M1.333 2.667C1.333 1.194 4.318 0 8 0s6.667 1.194 6.667 2.667V4c0 1.473-2.985 2.667-6.667 2.667S1.333 5.473 1.333 4V2.667z" />
<path d="M1.333 6.334v3C1.333 10.805 4.318 12 8 12s6.667-1.194 6.667-2.667V6.334a6.51 6.51 0 0 1-1.458.79C11.81 7.684 9.967 8 8 8c-1.966 0-3.809-.317-5.208-.876a6.508 6.508 0 0 1-1.458-.79z" />
<path d="M14.667 11.668a6.51 6.51 0 0 1-1.458.789c-1.4.56-3.242.876-5.21.876-1.966 0-3.809-.316-5.208-.876a6.51 6.51 0 0 1-1.458-.79v1.666C1.333 14.806 4.318 16 8 16s6.667-1.194 6.667-2.667v-1.665z" />
</svg> </span>
<span class="nav-link-text">Serwery</span>
</a>
<!--//nav-link-->
</li>
<!--//nav-item-->
<li class="nav-item">
<!--//Bootstrap Icons: https://icons.getbootstrap.com/ -->
<a class="nav-link" href="vips.php">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-emoji-sunglasses" viewBox="0 0 16 16">
<path d="M4.968 9.75a.5.5 0 1 0-.866.5A4.498 4.498 0 0 0 8 12.5a4.5 4.5 0 0 0 3.898-2.25.5.5 0 1 0-.866-.5A3.498 3.498 0 0 1 8 11.5a3.498 3.498 0 0 1-3.032-1.75zM7 5.116V5a1 1 0 0 0-1-1H3.28a1 1 0 0 0-.97 1.243l.311 1.242A2 2 0 0 0 4.561 8H5a2 2 0 0 0 1.994-1.839A2.99 2.99 0 0 1 8 6c.393 0 .74.064 1.006.161A2 2 0 0 0 11 8h.438a2 2 0 0 0 1.94-1.515l.311-1.242A1 1 0 0 0 12.72 4H10a1 1 0 0 0-1 1v.116A4.22 4.22 0 0 0 8 5c-.35 0-.69.04-1 .116z" />
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-1 0A7 7 0 1 0 1 8a7 7 0 0 0 14 0z" />
</svg>
</span>
<span class="nav-link-text">Vipy</span>
</a>
<!--//nav-link-->
</li>
<!--//nav-item-->
<li class="nav-item">
<!--//Bootstrap Icons: https://icons.getbootstrap.com/ -->
<a class="nav-link" href="users.php">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-people" viewBox="0 0 16 16">
<path d="M15 14s1 0 1-1-1-4-5-4-5 3-5 4 1 1 1 1h8zm-7.978-1A.261.261 0 0 1 7 12.996c.001-.264.167-1.03.76-1.72C8.312 10.629 9.282 10 11 10c1.717 0 2.687.63 3.24 1.276.593.69.758 1.457.76 1.72l-.008.002a.274.274 0 0 1-.014.002H7.022zM11 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm3-2a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM6.936 9.28a5.88 5.88 0 0 0-1.23-.247A7.35 7.35 0 0 0 5 9c-4 0-5 3-5 4 0 .667.333 1 1 1h4.216A2.238 2.238 0 0 1 5 13c0-1.01.377-2.042 1.09-2.904.243-.294.526-.569.846-.816zM4.92 10A5.493 5.493 0 0 0 4 13H1c0-.26.164-1.03.76-1.724.545-.636 1.492-1.256 3.16-1.275zM1.5 5.5a3 3 0 1 1 6 0 3 3 0 0 1-6 0zm3-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4z" />
</svg>
</span>
<span class="nav-link-text">Użytkownicy</span>
</a>
<!--//nav-link-->
</li>
<!--//nav-item-->
</ul>
<!--//app-menu-->
</nav>
<!--//app-nav-->
<div class="app-sidepanel-footer">
<nav class="app-nav app-nav-footer">
<ul class="app-menu footer-menu list-unstyled">
<li class="nav-item">
<!--//Bootstrap Icons: https://icons.getbootstrap.com/ -->
<a class="nav-link" href="logout.php">
<span class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-door-open" viewBox="0 0 16 16">
<path d="M8.5 10c-.276 0-.5-.448-.5-1s.224-1 .5-1 .5.448.5 1-.224 1-.5 1z" />
<path d="M10.828.122A.5.5 0 0 1 11 .5V1h.5A1.5 1.5 0 0 1 13 2.5V15h1.5a.5.5 0 0 1 0 1h-13a.5.5 0 0 1 0-1H3V1.5a.5.5 0 0 1 .43-.495l7-1a.5.5 0 0 1 .398.117zM11.5 2H11v13h1V2.5a.5.5 0 0 0-.5-.5zM4 1.934V15h6V1.077l-6 .857z" />
</svg>
</span>
<span class="nav-link-text">Wyloguj się</span>
</a>
<!--//nav-link-->
</li>
<!--//nav-item-->
</ul>
<!--//footer-menu-->
</nav>
</div>
<!--//app-sidepanel-footer-->
</div>
<!--//sidepanel-inner-->
</div>
<!--//app-sidepanel-->
</header>
<!--//app-header-->
<div class="app-wrapper">
<div class="app-content pt-3 p-md-3 p-lg-4">
<div class="container-xl">
<h1 class="app-page-title">Lista serwerów</h1>
<div class="app-card alert alert-dismissible shadow-sm mb-4 border-left-decoration" role="alert">
<div class="inner">
<div class="app-card-body p-3 p-lg-4">
<h3 class="mb-3">Witaj <strong><?= $_SESSION['user']; ?></strong>!</h3>
<div class="row gx-5 gy-3">
<div class="col-12 col-lg-9">
<div>Ten panel pozwoli Ci w łatwy sposób dodać rangi VIP na serwerach.</div>
</div>
<!--//col-->
<div class="col-12 col-lg-3">
</div>
<!--//col-->
</div>
<!--//row-->
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<!--//app-card-body-->
</div>
<!--//inner-->
</div>
<!--//app-card-->
<div class="row g-4 mb-4">
<div class="col-6 col-lg-6">
<div class="app-card app-card-stat shadow-sm h-100">
<div class="app-card-body p-3 p-lg-4">
<h4 class="stats-type mb-1">VIPÓW</h4>
<div class="stats-figure"><?= $class->getCountVips(); ?></div>
</div>
<!--//app-card-body-->
<a class="app-card-link-mask" href="#"></a>
</div>
<!--//app-card-->
</div>
<!--//col-->
<div class="col-6 col-lg-6">
<div class="app-card app-card-stat shadow-sm h-100">
<div class="app-card-body p-3 p-lg-4">
<h4 class="stats-type mb-1">SERWERÓW</h4>
<div class="stats-figure"><?= $class->getCountServers(); ?></div>
</div>
<!--//app-card-body-->
<a class="app-card-link-mask" href="#"></a>
</div>
<!--//app-card-->
</div>
<!--//col-->
</div>
<div class="row g-4 mb-4">
<div class="col-12">
<div class="app-card app-card-basic d-flex flex-column shadow-sm">
<div class="app-card-header p-3 border-bottom-0">
<div class="row align-items-center gx-3">
<?php if (isset($class->success)) : ?>
<div class="alert alert-success" role="alert">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check-lg" viewBox="0 0 16 16">
<path d="M13.485 1.431a1.473 1.473 0 0 1 2.104 2.062l-7.84 9.801a1.473 1.473 0 0 1-2.12.04L.431 8.138a1.473 1.473 0 0 1 2.084-2.083l4.111 4.112 6.82-8.69a.486.486 0 0 1 .04-.045z" />
</svg>
<?= $class->success; ?>
</div>
<?php endif; ?>
<div class="col-auto">
<div class="app-icon-holder">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-receipt" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M1.92.506a.5.5 0 0 1 .434.14L3 1.293l.646-.647a.5.5 0 0 1 .708 0L5 1.293l.646-.647a.5.5 0 0 1 .708 0L7 1.293l.646-.647a.5.5 0 0 1 .708 0L9 1.293l.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .801.13l.5 1A.5.5 0 0 1 15 2v12a.5.5 0 0 1-.053.224l-.5 1a.5.5 0 0 1-.8.13L13 14.707l-.646.647a.5.5 0 0 1-.708 0L11 14.707l-.646.647a.5.5 0 0 1-.708 0L9 14.707l-.646.647a.5.5 0 0 1-.708 0L7 14.707l-.646.647a.5.5 0 0 1-.708 0L5 14.707l-.646.647a.5.5 0 0 1-.708 0L3 14.707l-.646.647a.5.5 0 0 1-.801-.13l-.5-1A.5.5 0 0 1 1 14V2a.5.5 0 0 1 .053-.224l.5-1a.5.5 0 0 1 .367-.27zm.217 1.338L2 2.118v11.764l.137.274.51-.51a.5.5 0 0 1 .707 0l.646.647.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.509.509.137-.274V2.118l-.137-.274-.51.51a.5.5 0 0 1-.707 0L12 1.707l-.646.647a.5.5 0 0 1-.708 0L10 1.707l-.646.647a.5.5 0 0 1-.708 0L8 1.707l-.646.647a.5.5 0 0 1-.708 0L6 1.707l-.646.647a.5.5 0 0 1-.708 0L4 1.707l-.646.647a.5.5 0 0 1-.708 0l-.509-.51z" />
<path fill-rule="evenodd" d="M3 4.5a.5.5 0 0 1 .5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm8-6a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5z" />
</svg>
</div>
<!--//icon-holder-->
</div>
<!--//col-->
<div class="col-auto">
<h4 class="app-card-title">Serwery <button class="btn app-btn-secondary" data-bs-toggle="modal" data-bs-target="#addServerModal">
Dodaj</button></h4>
</div>
<!--//col-->
</div>
<!--//row-->
</div>
<!--//app-card-header-->
<div class="app-card-body px-4">
<div class="table-responsive">
<table class="table">
<thead>
<th>
ID
</th>
<th>
NAZWA
</th>
<th>
ADRES
</th>
<th>
AKCJA
</th>
<th></th>
<th></th>
</thead>
<tbody>
<?php foreach ($class->getServers() as $server) : ?>
<?php if ($server->address == 'all') continue; ?>
<tr>
<td><?= $server->id; ?></td>
<td><?= '<span class="badge " style="background-color: ' . $class->getRandomColor() . ';">' . $server->name; ?></span></td>
<td><?= $server->address; ?></td>
<td>
<div class="row">
<div class="col-auto">
<button type="button" class="btn btn-success btn-sm" data-bs-toggle="modal" data-bs-target="#addVipModal-<?= $server->id; ?>">Dodaj VIP-A</button>
</div>
<div class="col-auto">
<button type="button" class="btn btn-warning btn-sm" data-bs-toggle="modal" data-bs-target="#editServerModal-<?= $server->id; ?>">Edytuj</button>
<!-- EditServerModal -->
<div class="modal fade" id="editServerModal-<?= $server->id; ?>" tabindex="-1" aria-labelledby="editServerModal-<?= $server->id; ?>" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="editServerModal">Edytowanie serwera</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form method="POST">
<div class="mb-3">
<label for="" class="form-label">Nazwa</label>
<input type="text" class="form-control" id="server_name" name="server_name" value="<?= $server->name; ?>" />
</div>
<div class="mb-3">
<label for="" class="form-label">Adres</label>
<input type="text" class="form-control" id="server_address" name="server_address" value="<?= $server->address; ?>" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Zamknij</button>
<input type="hidden" value="<?= $server->id; ?>" name="server_id" />
<input type="submit" class="btn btn-primary" name="edit_server" value="Zapisz" />
</div>
</form>
</div>
</div>
</div>
</div>
<!-- AddVipModal -->
<div class="modal fade" id="addVipModal-<?= $server->id; ?>" tabindex="-1" aria-labelledby="addVipModal-<?= $server->id; ?>" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addVipModal">Dodawanie VIP-a na serwerze <strong><?= $server->name; ?></strong></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form method="POST">
<div class="mb-3">
<label for="" class="form-label">Nick</label>
<input type="text" class="form-control" id="vip_name" name="vip_name" />
</div>
<div class="mb-3">
<label for="" class="form-label">SteamID</label>
<input type="text" class="form-control" id="vip_steamid" name="vip_steamid" />
</div>
<div class="mb-3">
<label for="" class="form-label">Serwer</label>
<select class="form-select" name="vip_server">
<?php foreach ($class->getServers() as $server) :
echo '<option value="' . $server->address . '">' . $server->name . '</option>';
endforeach; ?>
</select>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" name="vip_all_servers">
<label class="form-check-label" for="">
Wszystkie
</label>
</div>
</div>
<div class="mb-3">
<label for="" class="form-label">Grupa</label>
<select class="form-select" name="vip_flags">
<?php foreach ($class->getVipRoles() as $role) :
echo '<option value="' . $role . '">' . $role . '</option>';
endforeach; ?>
</select>
</div>
<div class="mb-3">
<label for="" class="form-label">Wygasa</label>
<input type="date" class="form-control" id="vip_expire" name="vip_expire" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Zamknij</button>
<input type="hidden" value="<?= $server->id; ?>" name="server_id" />
<input type="hidden" value="<?= $server->address; ?>" name="server_address" />
<input type="submit" class="btn btn-primary" name="vip_add" value="Dodaj" />
</div>
</form>
</div>
</div>
</div>
</div>
<div class="col-auto">
<form method="POST">
<input type="submit" name="delete" class="btn btn-danger btn-sm" value="Usuń" />
<input type="hidden" value="<?= $server->id; ?>" name="server_id" />
<input type="hidden" value="<?= $server->address; ?>" name="server_address" />
</div>
</form>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<!--//app-card-body-->
<div class="app-card-footer p-4 mt-auto">
</div>
<!--//app-card-footer-->
</div>
<!--//app-card-->
</div>
<!--//col-->
</div>
<!--//row-->
</div>
<!--//container-fluid-->
</div>
<!--//app-content-->
<footer class="app-footer">
<div class="container text-center py-3">
<small class="copyright">VIP WEBPANEL by <a class="app-link" href="https://daffyy.tech" target="_blank">daffyy</a></small> <br />
<small class="copyright">Designed with <i class="fas fa-heart" style="color: #fb866a;"></i> by <a class="app-link" href="http://themes.3rdwavemedia.com" target="_blank">Xiaoying Riley</a> for developers</small>
</div>
</footer>
<!--//app-footer-->
</div>
<!--//app-wrapper-->
<!-- Javascript -->
<script src="assets/plugins/popper.min.js"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<!-- Page Specific JS -->
<script src="assets/js/app.js"></script>
<!-- AddServerModal -->
<div class="modal fade" id="addServerModal" tabindex="-1" aria-labelledby="addServerModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addServerModal">Dodawanie serwera</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form method="POST">
<div class="mb-3">
<label for="" class="form-label">Nazwa</label>
<input type="text" class="form-control" id="server_name" name="server_name" />
</div>
<div class="mb-3">
<label for="" class="form-label">Adres</label>
<input type="text" class="form-control" id="server_address" name="server_address" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Zamknij</button>
<input type="submit" class="btn btn-primary" name="add_server" value="Dodaj" />
</div>
</form>
</div>
</div>
</div>
</body>
</html>