-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
107 lines (101 loc) · 2.76 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css" />
</head>
<body ondragstart="return false">
<div class="parent">
<div class="header-div">
<img src="logo.png" class="logo" alt="" />
<h1 class="title">GoldenSkyServer</h1>
<p id="header-p">FÜR PC, HANDY & KONSOLE</p>
<!--NAVI-->
<div class="navigation">
<?php
include('menu.html');
// MENÜ
?>
</div>
</div>
<div class="page-body">
<div class="content-div">
<?php
if(isset($_GET['page'])){
$page = $_GET['page'];
switch($page){
case "home":
include('home.html');
break;
case "rules":
include('regelwerk.html');
break;
case "votes":
include('voten.php');
break;
case "ranks":
include('raenge.html');
break;
case "shop":
include('webshop.html');
break;
default:
include('home.html');
}
}else{
include('home.html');
}
?>
</div>
<div class="sidebar-div">
<?php
$ip="play.golden-sky.de"; //IP Eintragen
@$abfrage = fsockopen ($ip, 25565, $errno, $errstr, 5); //Port angeben standart: 25565 (Bei Minecraft)
if (!$abfrage) {
echo "<p class=\"right\"><b>Server Status </b><img class=\"status-image\" src=\"offline.png\"></p>"; // Wenn Server nicht erreichbar ist, wird das Offlinebild ausgegeben.
}else {
echo "<p class=\"right\"><b>Server Status </b><img class=\"status-image\" src=\"online.png\"></p>"; //Wenn der Server erreichbar ist, wird diese Grafik angezeigt
}
?>
<h2>Neuigkeiten</h2>
<?php
include('news.html');
//SIDEBAR NEWS
?>
</div>
</div>
<div class="footer-div">
<?php
include('footer.html');
?>
</div>
<!-- Cookies popup -->
<div class="popup" id="popup">
<div class="popupText">
<p class="blackP">
Um euch das bestmögliche Erlebnis auf unserer Website bieten zu
können, verwenden wir Cookies.
</p>
</div>
<div class="popupButtons">
<p>
<button
class="minecraft-btn mx-auto w-64 text-center text-white truncate p-1 border-2 border-b-4 hover:text-yellow-200"
id="cookiePopupId"
>
Alles Klar !
</button>
</p>
</div>
</div>
<div id="popup-how-to-join" class="popup-how-to-join">
<div id="popup-how-to-join-content" class="popup-how-to-join-content">
<?php
include('how_to_join.html');
//HOW TO JOIN POPUP
?>
</div>
</div>
</div>
<script src="javascript.js"></script>
</body>
</html>