$panoFile = (array_key_exists("pano", $_GET)) ? $_GET["pano"] : "";
$illegalFile = !eregi(".jpg$|.png$|.xml$", $panoFile);
if ($illegalFile) {
echo ("Illegal file or path
");
} else if ($panoFile=="") {
echo ("No file to display
");
} else {
?>
}
?>