-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeksdose.php
41 lines (35 loc) · 1.02 KB
/
keksdose.php
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
35
36
37
38
39
40
41
<?php
$file = 'keksdose.txt';
if (!empty($_GET)) {
file_put_contents($file, date('j.m.y G:i') . ' | ' . serialize($_GET) . "\n\n", FILE_APPEND);
header('Content-Type: image/png');
// transparentes 1x1px PNG
echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=');
}
else {
$swag = htmlspecialchars(file_get_contents($file));
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Keksdose</title>
<style>
textarea {
display: block;
width: 600px;
margin: 50px auto;
padding: 1em;
border: .5em solid skyblue;
font: normal normal 16px/1.3 monospace;
color: #333;
}
</style>
</head>
<body>
<textarea name="content" rows="20"><?= $swag ?></textarea>
</body>
</html>
<?php
}
?>