diff --git a/public/index.php b/public/index.php index 2cc6ab0d57b6c4a683187f21c2e4771212af3ad8..74bfda6e39bd1ca79a45f94eb70a5b128e5037ea 100644 --- a/public/index.php +++ b/public/index.php @@ -3,14 +3,6 @@ include "internal/header.php"; include "internal/footer.php"; include "internal/mysql.php"; -if (strpos($_SERVER['HTTP_HOST'], '.onion') !== false) { - $heIMG = "/internal/getImage.php?imgID=1"; - $abuseIPIMG = "/internal/getImage.php?imgID=2"; -} else { - $abuseIPIMG = "https://www.abuseipdb.com/contributor/45130.svg"; - $heIMG = "https://ipv6.he.net/certification/create_badge.php?pass_name=jonasled&badge=3"; -} - getHeader("Jonas Leder", "home"); ?> <div class="center"> @@ -24,8 +16,8 @@ getHeader("Jonas Leder", "home"); <jl-blog_index id="blog"></jl-blog_index> <div id="banner"> <h2>Banner</h2> - <a target="_blank" href="https://ipv6.he.net"><img src="<?php echo($heIMG); ?>" data-noPreview="true"></a> - <a target="_blank" href="https://www.abuseipdb.com/user/45130"><img class="abuseIpImg" src="<?php echo($abuseIPIMG); ?>" data-noPreview="true"></a> + <a target="_blank" href="https://ipv6.he.net"><img src="https://ipv6.he.net/certification/create_badge.php?pass_name=jonasled&badge=3" data-noPreview="true"></a> + <a target="_blank" href="https://www.abuseipdb.com/user/45130"><img class="abuseIpImg" src="https://www.abuseipdb.com/contributor/45130.svg" data-noPreview="true"></a> </div> <br> <br> diff --git a/public/internal/getImage.php b/public/internal/getImage.php deleted file mode 100644 index 3375310b60bff573146f9527a58ecb670912d763..0000000000000000000000000000000000000000 --- a/public/internal/getImage.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php - -$url = ""; - -if( isset( $_GET['imgID'] ) ) -{ - if($_GET['imgID'] == "1") { - $url = "https://ipv6.he.net/certification/create_badge.php?pass_name=jonasled&badge=3"; - $mime = "image/png"; - } else if($_GET['imgID'] == "2"){ - $url = "https://www.abuseipdb.com/contributor/45130.svg"; - $mime = "image/svg+xml"; - } else { - die("wrong image id"); - } -} -else -{ - die("no image ID set"); -} - -$imginfo = getimagesize( $url ); -header("Content-type: ".$mime); -readfile( $url ); - -?> \ No newline at end of file