Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
Website
Commits
c3892fd4
Commit
c3892fd4
authored
Apr 12, 2021
by
Jonas Leder
Browse files
Options
Downloads
Patches
Plain Diff
remove getImage function
parent
6f8ba73d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/index.php
+2
-10
2 additions, 10 deletions
public/index.php
public/internal/getImage.php
+0
-26
0 additions, 26 deletions
public/internal/getImage.php
with
2 additions
and
36 deletions
public/index.php
+
2
−
10
View file @
c3892fd4
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
public/internal/getImage.php
deleted
100644 → 0
+
0
−
26
View file @
6f8ba73d
<?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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment