added footer mit ip

This commit is contained in:
Patrick Neumann 2018-09-21 12:01:12 +02:00
parent a10afd7fc2
commit b2f22287e9

View File

@ -7,7 +7,7 @@
<meta content="1.0" name="version">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<style type="text/css">
p {
.box {
margin-left: auto;
margin-right: auto;
text-align: center;
@ -15,21 +15,32 @@
font-weight: bold;
color: white;
}
.footer {
margin-left: auto;
margin-right: auto;
text-align: right;
}
</style>
</head>
<body>
<h1>PolNds | hide.me-Checker</h1>
<?php
// 80.228.52.30 # IPv4
// 2a02:821d:0:205::30 # IPv6
$itn = array( "80.228.52.30",
"2a02:821d:0:205::30" );
// 85.17.24.66 # Niederlande
// 37.58.58.206 # Deutschland
// 207.244.66.70 # USA
$hideme = array( "85.17.24.66",
"37.58.58.206",
"207.244.66.70" );
if( in_array( $_SERVER[ "REMOTE_ADDR" ], $itn ) ) {
?>
<p style="background-color:red;">
<p class="box" style="background-color:red;">
<br>
Leider müssen wir Dir mitteilen,<br>
dass wir nicht mit der Polizei<br>
@ -37,7 +48,7 @@ if( in_array( $_SERVER[ "REMOTE_ADDR" ], $itn ) ) {
<?php
} elseif ( in_array( $_SERVER[ "REMOTE_ADDR" ], $hideme ) ) {
?>
<p style="background-color:blue;">
<p class="box" style="background-color:blue;">
<br>
Schön, dass Du "hide.me" benutzt!<br>
Wenn Du Dich nicht im Intranet befindest,<br>
@ -45,7 +56,7 @@ if( in_array( $_SERVER[ "REMOTE_ADDR" ], $itn ) ) {
<?php
} else {
?>
<p style="background-color:green;">
<p class="box" style="background-color:green;">
<br>
Wir begrüßen es sehr,<br>
dass Du nicht aus dem Intranet der<br>
@ -55,5 +66,11 @@ if( in_array( $_SERVER[ "REMOTE_ADDR" ], $itn ) ) {
<br>
<br>
</p>
<p class="footer">
Deine IP-Adresse:
<b>
<?php echo $_SERVER[ "REMOTE_ADDR" ] . "\n"; ?>
</b>
</p>
</body>
</html>