remove getImage function
This commit is contained in:
parent
6f8ba73db1
commit
c3892fd4ac
2 changed files with 2 additions and 36 deletions
|
@ -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>
|
||||
|
|
|
@ -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 );
|
||||
|
||||
?>
|
Loading…
Reference in a new issue