2 // Obtain an image only if we are here on this server....
4 $img_name = isset ($_GET ["img"]) ? $_GET ["img"] : "";
5 $img_path = "/web/Pictures";
6 $server = $_SERVER ["SERVER_NAME"];
8 function GetImage ($img_name) {
12 if (isset ($img_name)) {
13 $fp = @fopen ("$img_path/$img_name", "r");
16 header ("Content-Type: image/jpeg\nContent-Transfer-Encoding: binary");
19 header ("Content-Type: text/html\n");
20 print "<font color=\"red\"<b>Error:</b></font> Unable to find image $img_name<br>";
25 if (isset ($_POST ["magic"])) {
26 print "It's magic!" . $_POST ["magic"];
30 if ($server == "defaria.com") {
33 header ("Content-Type: text/html\n");
34 print "<font color=\"red\"<b>Error:</b></font> You don't have authorization to link to this image";