Compare commits
3 Commits
03559fa6b2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fc797a17f | |||
| 59fbfb685d | |||
| 439d555979 |
42
index.php
42
index.php
@@ -4,12 +4,12 @@
|
|||||||
|
|
||||||
include('minecraft_status.php');
|
include('minecraft_status.php');
|
||||||
|
|
||||||
$ServerList[1]=new Server('Server 1', 'kokorogamers.com', 35566);
|
$ServerList[1]=new Server(NAME:'Server 1', HOST:'kokorogamers.com', PORT:35566);
|
||||||
$ServerList[2]=new Server('Server 2', 'kokorogamers.com', 35567);
|
$ServerList[2]=new Server(NAME:'Server 2', HOST:'kokorogamers.com', PORT:35567);
|
||||||
$ServerList[3]=new Server('Server 3', 'kokorogamers.com', 35568);
|
$ServerList[3]=new Server(NAME:'Server 3', HOST:'kokorogamers.com', PORT:35568);
|
||||||
$ServerList[4]=new Server('Server 4', 'kokorogamers.com', 35569);
|
$ServerList[4]=new Server(NAME:'Server 4', HOST:'kokorogamers.com', PORT:35569);
|
||||||
$ServerList[5]=new Server('Wonderbit', 'wonderbit.xyz', 25500);
|
$ServerList[5]=new Server(NAME:'Wonderbit', HOST:'wonderbit.xyz', PORT:25500);
|
||||||
$ServerList[6]=new Server('Blockgame', 'mc.blockgame.info', 25565);
|
$ServerList[6]=new Server(NAME:'Blockgame', HOST:'mc.blockgame.info', PORT:25565);
|
||||||
|
|
||||||
function displayserver($s){
|
function displayserver($s){
|
||||||
$status = new ServerStatusQuery();
|
$status = new ServerStatusQuery();
|
||||||
@@ -34,26 +34,26 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Minecraft Server Status</title>
|
<title>Minecraft Server Status</title>
|
||||||
<link rel="stylesheet" href="styles.css?v=<?php echo time();?>">
|
<style>
|
||||||
<style>.info{vertical-align:top; padding:25px 0 25px 0; width:50%;}</style>
|
html,body {background-color:#222; color:#CCC; margin:0;}
|
||||||
|
h1,h2{color:#EFEF88;}
|
||||||
|
.center{width:50vw; margin:auto;}
|
||||||
|
.container{display: grid; grid-template-columns: auto auto;}
|
||||||
|
.content{margin-right: 60px;}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class='center'>
|
||||||
<div align=center><div style='width:50vw;' align=left>
|
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class="banner">
|
|
||||||
<h1>Minecraft Server Status</h1>
|
<h1>Minecraft Server Status</h1>
|
||||||
|
<div class='container'>
|
||||||
|
<div class='contnent'><?php displayserver(1); ?></div>
|
||||||
|
<div class='contnent'><?php displayserver(2); ?></div>
|
||||||
|
<div class='contnent'><?php displayserver(3); ?></div>
|
||||||
|
<div class='contnent'><?php displayserver(4); ?></div>
|
||||||
|
<div class='contnent'><?php displayserver(5); ?></div>
|
||||||
|
<div class='contnent'><?php displayserver(6); ?></div>
|
||||||
</div>
|
</div>
|
||||||
<table style='border-spacing: 30px;'><tr>
|
|
||||||
<td class='info'><?php displayserver(1); ?></td>
|
|
||||||
<td class='info'><?php displayserver(2); ?></td>
|
|
||||||
</tr><tr>
|
|
||||||
<td class='info'><?php displayserver(3); ?></td>
|
|
||||||
<td class='info'><?php displayserver(4); ?></td>
|
|
||||||
</tr><tr>
|
|
||||||
<td class='info'><?php displayserver(5); ?></td>
|
|
||||||
<td class='info'><?php displayserver(6); ?></td>
|
|
||||||
</tr></table>
|
|
||||||
<br><br>
|
<br><br>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
41
styles.css
41
styles.css
@@ -1,41 +0,0 @@
|
|||||||
h1{color:#EFEF88;}
|
|
||||||
h2{color:#EFEF88;}
|
|
||||||
a:link{color:#8888EF;}
|
|
||||||
a:visited{color:#8888EF;}
|
|
||||||
a:hover{color:#8888EF;}
|
|
||||||
a:active{color:#8888EF;}
|
|
||||||
body {background-color:#222; color:#CCC; margin:0;}
|
|
||||||
.banner{display:block;}
|
|
||||||
.banner img {
|
|
||||||
float: left;
|
|
||||||
width: 100px;
|
|
||||||
height: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner h1 {
|
|
||||||
position: relative;
|
|
||||||
top: 18px;
|
|
||||||
left: 10px;
|
|
||||||
}
|
|
||||||
.banner h2 {
|
|
||||||
position: relative;
|
|
||||||
top: 2px;
|
|
||||||
left: 10px;
|
|
||||||
}
|
|
||||||
.banner h3 {
|
|
||||||
color:#EFEF88;
|
|
||||||
position: relative;
|
|
||||||
top: 2px;
|
|
||||||
left: 10px;
|
|
||||||
}
|
|
||||||
.banner a:link{text-decoration: none;position: relative;}
|
|
||||||
.banner a:visited{text-decoration: none;position: relative;}
|
|
||||||
.banner a:hover{text-decoration: none;position: relative;}
|
|
||||||
.banner a:active{text-decoration: none;position: relative;}
|
|
||||||
.notice{display: block;}
|
|
||||||
.notice{background-color: #EFEF88;color: #000000;}
|
|
||||||
.warning{display: block}
|
|
||||||
.warning{background-color: #efaf88;color: #000000;}
|
|
||||||
input{background-color: #555555; color: #CCC;}
|
|
||||||
textarea{background-color: #555555; color: #CCC;}
|
|
||||||
select{background-color: #555555; color: #CCC;}
|
|
||||||
Reference in New Issue
Block a user