This repository has been archived by the owner on May 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
149 lines (123 loc) · 6.92 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard · Straßenmeisterei Neuberg</title>
<!-- Metas -->
<?php include('assets/components/fb37meta.php'); ?>
<!-- Metas end -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<link href="/assets/fonts/fontawesome/css/all.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/own.css">
<link rel="stylesheet" href="/assets/css/fb37.css">
<link rel="icon" type="image/ico" href="/assets/images/favicon-fb37.ico">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
<?php
require 'assets/steamauth/steamauth.php';
?>
<?php
if (!isset($_SESSION['steamid'])) {
?>
<div class="db-container">
<div class="db-box shadow rounded">
<?php
loginbutton(); //login button
?>
</div>
<div class="footer-content rounded" style="height:1.5rem;overflow:hidden;">
<div style="display:flex;vertical-align:middle;justify-content:center;">
<p>© <?php echo date("Y"); ?> hypax, Straßenmeisterei Panel made for <a href="https://realliferpg.de/" target="_blank">RealLifeRPG</a></p>
</div>
</div>
</div>
<?php
} else {
include('assets/steamauth/userInfo.php');
include 'assets/components/registerpaneluser.php';
// Mindestens benötigte Berechtigung: Mitarbeiter
if ($uPermLevel >= $perm_level_user) { ?>
<?php
include("assets/components/fb37dbconnect.php");
$dbconnect = mysqli_connect($hostname, $username, $password, $dbname);
if ($dbconnect->connect_error) {
die("Fehler, Verbindung fehlgeschlagen:" . $dbconnect->connect_error);
}
$currentOn = mysqli_query($dbconnect, "SELECT * FROM UserPlaytimes WHERE `online` = '1'");
$num_currentOn = mysqli_num_rows($currentOn);
include 'assets/components/nav.php';
?>
<div class="px-4 py-5 text-center container rounded-3" id="meisterei-hero">
<img src="/assets/images/tcMPe2F2.png" alt="Straßenmeisterei" height="100px" width="auto">
<h1 class="display-5 fw-bold">Straßenmeisterei Neuberg</h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">Zurzeit Online: <?php echo "{$num_currentOn}" ?></p>
</div>
</div>
<div class="container bg-light shadow p-3 mb-5 rounded-3 my-5" style="min-height:450px;">
<h1>Wichtige Links</h1>
<hr class="my-4">
<div class="row mx-auto">
<div class="col text-end">
<a href="https://docs.google.com/spreadsheets/d/1528O36-sMU8Y23unSzT2P0txCbueWtpZ81JDfSHulSw/edit" target="_blank"><button type="button" class="btn btn-secondary btn-lg"><i class="fa-solid fa-sitemap"></i> Infoboard</button></a>
</div>
<div class="col text-center">
<a href="https://docs.google.com/spreadsheets/d/10JHvnnE-INOkff6KmVSsuc_W-7tzAggPp0jpLnZA1wY/edit#gid=1683770108" target="_blank"><button type="button" class="btn btn-danger btn-lg"><i class="fa-solid fa-money-bill-transfer"></i> Gehaltsabrechnung</button></a>
</div>
<div class="col text-start">
<a href="https://docs.google.com/spreadsheets/d/1__-olXRjSnqEPJc4PAy6Is33YGeODX1rzs7upK_2uxA/edit#gid=0" target="_blank"><button type="button" class="btn btn-secondary btn-lg"><i class="fa-solid fa-tower-broadcast"></i> Einsatzkoordination</button></a>
</div>
</div>
<div class="row mt-5 mx-auto">
<div class="col text-end">
<a href="https://docs.google.com/document/d/16hvXf7KRhOcJUWDcBLXsAthDNOvRfrh8s83BhzYUSus/edit" target="_blank"><button type="button" class="btn btn-secondary btn-lg"><i class="fa-solid fa-section"></i> Dienstverordnung</button></a>
</div>
<div class="col text-start">
<a href="https://docs.google.com/spreadsheets/d/1MvyoCA-J1HpzAGn1V8wy0DiODL5BB-Y4mBUUsfJH20c/edit#gid=0" target="_blank"><button type="button" class="btn btn-secondary btn-lg"><i class="fa-solid fa-car-side-bolt"></i> Fahrzeugwartung</button></a>
</div>
</div>
<div class="row mt-5 mx-auto">
<div class="col text-center">
<a href="https://discord.gg/hUMYjKUvRW" target="_blank"><button type="button" class="btn btn-primary btn-lg"><i class="fa-brands fa-discord"></i> Discord</button></a>
</div>
</div>
<?php if ($uPermLevel >= $perm_level_admin) { ?>
<div class="row mt-5 mx-auto">
<div class="col"></div>
<div class="col-6">
<div class="mx-auto" id="drop_file_zone" ondrop="upload_file(event)" ondragover="return false">
<div class="mx-auto" id="drag_upload_file">
<p>Drop file here</p>
<p>or</p>
<p><input type="button" value="Select File" onclick="file_explorer();" /></p>
<input type="file" id="selectfile" />
</div>
</div>
<div class="img-content text-center mt-3"></div>
<script src="/assets/js/uploader.js"></script>
</div>
<div class="col"></div>
</div>
<?php } ?>
</div>
<?php include("assets/components/footer.php"); ?>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
<?php
return true;
} else {
?>
<script type="text/javascript">
window.location.href = "https://strassenmeisterei-neuberg.de/bewerben.php";
</script>
<?php
return false;
}
}
?>
</body>
</html>