OLD | NEW |
---|---|
1 <?php | 1 <?php |
2 $rw = $_SERVER["HTTP_RW"]; | 2 $rw = $_SERVER["HTTP_RW"]; |
3 $expected_rw = $_GET["rw"]; | |
3 | 4 |
4 if($rw) { | 5 if (($rw == $expected_rw) || ($rw && !$expected_rw)) { |
5 $fn = fopen("compass.jpg", "r"); | 6 $fn = fopen("compass.jpg", "r"); |
6 fpassthru($fn); | 7 fpassthru($fn); |
7 fclose($fn); | 8 fclose($fn); |
8 exit; | 9 exit; |
9 } | 10 } |
10 header("HTTP/1.1 417 Expectation failed"); | 11 header("HTTP/1.1 417 Expectation failed"); |
11 ?> | 12 ?> |
OLD | NEW |