=100) { $out = eval("return ${x[0]}/${x[1]};"); $out .= "s"; return $out; } else { return "1/".(1.0/($x[0]/$x[1]))."s"; } break; case "Flash"; if ($v=="0") { return "No Flash"; } else { return $v; } break; case "ISOSpeedRatings": return "ISO" . $v; break; case "GainControl"; return "EV" . $v; break; case "FocalLengthIn35mmFilm": return $v . "mm"; break; case "DateTime": //return date("M d Y H:i:s", $v); ereg("^([0-9]{4}):([0-9]{1,2}):([0-9]{1,2}) (.*)",$v,$x); return $x[1] . "/" . $x[2] . "/" . $x[3] . " " . $x[4]; break; default: return $v; } } // Only use php4 internal handling now. // $file is LQ image $exif_array = exif_read_data("$file"); reset($exif_array); if ($exif_show) reset($exif_show); if ($exif_array["Make"]) { // only render all this // if there is EXIF header // fancy table look echo "
"; echo $x; echo ": | "; echo ""; echo formatEXIF($k,$v); echo " | "; echo "
"; echo $k; echo ": | "; echo ""; echo formatEXIF($k,$v); echo " | "; echo "
"; echo " | " . __("Less info"); echo " | "; echo "
"; reset($exif_array); if ($exif_show) reset($exif_show); if ($exif_show) { while (list($kx,$x) = each($exif_show)) { while(list($k,$v)=each($exif_array)) { if ($kx==$k) { echo ""; echo formatEXIF($k,$v); echo " | "; } } reset($exif_array); } } else { /* vsechny exif headers inline */ while(list($k,$v)=each($exif_array)) { echo ""; echo formatEXIF($k,$v); echo " | "; } } echo "" . __("More info"); echo "
\n"; echo "