-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathservercheck.php
More file actions
34 lines (33 loc) · 963 Bytes
/
servercheck.php
File metadata and controls
34 lines (33 loc) · 963 Bytes
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
<?php $servername = explode('.', gethostname())[0]; ?>
<html>
<head>
<title><?php echo $servername .'-'. $_SERVER['HTTP_HOST'] ?></title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap" rel="stylesheet">
<style>
body {
background-image: url(https://partialsolution.ca/images/ps-logo.svg);
background-size: cover;
background-repeat: no-repeat;
font-family: 'Share Tech Mono', monospace;
}
body, a {
color: orange;
background-color: white;
}
p {
text-align: center;
width: 47%;
margin: 0;
}
#sname {
margin-top: 24.7%;
font-size: xx-large;
}
</style>
</head>
<body>
<p id="sname"><?php echo $servername ?></p>
<p><a href="https://github.com/ShawnPConroy/ServerNameCheck/blob/main/servercheck.php">v4</a></p>
</body>
</html>