-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.php
34 lines (32 loc) · 915 Bytes
/
template.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
<!DOCTYPE html>
<html>
<head>
<title>Template</title>
</head>
<body>
<?php
if ((isset($_GET['tid'])) && (isset($_GET['input']))) {
switch (intval($_GET['tid'], 10)) {
case 0: // straight in HTML
echo base64_decode($_GET['input']);
break;
case 1: // img tag src attribute, double quoted
echo "<img src=\"".base64_decode($_GET['input'])."\" />";
break;
case 2: // html comment
echo "<!-- " .base64_decode($_GET['input']) . " -->";
break;
case 3: // img tag src attribute, single-quoted
echo "<img src='".base64_decode($_GET['input'])."' />";
break;
case 4: // a tag title attribute, unquoted
echo "<a title=".base64_decode($_GET['input'])." />#</a>";
break;
}
}
else {
die("No valid Template ID given or no input :(((");
}
?>
</body>
</html>