| OLD | NEW | 
|   1 <?php |   1 <?php | 
 |   2 $cookie_check = $_GET["Cookie"]; | 
 |   3 if (isset($cookie_check)) { | 
 |   4   if ($cookie_check == "NotSet") { | 
 |   5     if (isset($_COOKIE['TestCookie'])) { | 
 |   6       header("HTTP/1.0 404 Not Found"); | 
 |   7       exit; | 
 |   8     } | 
 |   9   } else if ($cookie_check != $_COOKIE['TestCookie']) { | 
 |  10     header("HTTP/1.0 404 Not Found"); | 
 |  11     exit; | 
 |  12   } | 
 |  13 } | 
 |  14  | 
|   2 header("Access-Control-Allow-Origin: *"); |  15 header("Access-Control-Allow-Origin: *"); | 
|   3  |  16  | 
|   4 $name = 'abe.png'; |  17 $name = 'abe.png'; | 
|   5 $fp = fopen($name, 'rb'); |  18 $fp = fopen($name, 'rb'); | 
|   6 header("Content-Type: image/png"); |  19 header("Content-Type: image/png"); | 
|   7 header("Content-Length: " . filesize($name)); |  20 header("Content-Length: " . filesize($name)); | 
|   8  |  21  | 
|   9 fpassthru($fp); |  22 fpassthru($fp); | 
|  10 exit; |  23 exit; | 
|  11 ?> |  24 ?> | 
| OLD | NEW |