OLD | NEW |
1 <?php | 1 <?php |
2 | 2 |
3 if (!isset($_COOKIE["key"])) { | 3 if (!isset($_COOKIE["key"])) { |
4 echo "FAIL: Cookie is not set"; | 4 echo "FAIL: Cookie is not set"; |
5 exit; | 5 exit; |
6 } | 6 } |
7 | 7 |
8 if ($_GET["key"] == $_COOKIE["key"]) { | 8 if ($_GET["key"] == $_COOKIE["key"]) { |
9 $fp = fopen("../../../../resources/Ahem.ttf", "rb"); | 9 $fp = fopen("../../resources/Ahem.ttf", "rb"); |
10 header("Content-type: application/octet-stream"); | 10 header("Content-type: application/octet-stream"); |
11 header("HTTP/1.0 200 OK"); | 11 header("HTTP/1.0 200 OK"); |
12 fpassthru($fp); | 12 fpassthru($fp); |
13 } else { | 13 } else { |
14 echo "FAIL: Cookie: {$_COOKIE['key']}, Query: {$_GET['key']}"; | 14 echo "FAIL: Cookie: {$_COOKIE['key']}, Query: {$_GET['key']}"; |
15 exit; | 15 exit; |
16 } | 16 } |
17 | 17 |
18 ?> | 18 ?> |
OLD | NEW |