/* ############################################################################# EUWDPCpix v2.4 Feel free to modify / pass on - but please leave these comments in here. If you modify the source, please mark what has been modified. This script was made by Peter Dekkers. Thanks to Andy Beaumont, Neven Morgan, Jake Olefsky and Pekka Saarinen for the inspiration and code! Send bugs and suggestions to me@editkid.com ToDo: - add possibility to read Photoshop CS's XMP tags - fix some addslashes() issues History: 1.1 - photoshop thumbnail reading 1.2b - colorized subdirectory system - not appropriate 1.2 - read directories inside directories - separate the css file from the index.php - separate the script setup from index.php - write readme.txt 1.3 - bug fix for table rendering of thumbnails - added newlines to make nice, readable HTML output - added some text variables 1.4 - added default view: thumb or list - fixed bug when disabling date - added some css definitions - possibility to add max thumbnail dimensions - made directory indentation to look better with bullets 1.5 - made more thumbnails readable by checking for correct start of file - fixed no_thumb.gif resizing - made it possible to use e.g. ' or " or + in the directory name or filename - made it so erroneous or empty EXIF values don't show 2.0 - added the administrator interface to edit preferences and comments - added another default viewing mode, "img" - made all the text costumizable 2.1 - added thumbnail generating for JPG, GIF and PNG files 2.2 - some minor bug fixes for IE on PC 2.3 - added support for creating thumbnails under PHP Safe Mode - added checkbox to admin to select images without thumbnails 2.35 - added experimental auto-generating of thumbnails 2.4 - added inactive previous and next buttons to navigation - made it possible to keep the categories visible in full scale image view 2.5 - removed XML document header - remover Olympus "special tags" parsing from the EXIF script to fix some issues that caused an "Allowed memory size exhausted" bug (thanks to Steph at http://xtrinity.com) - fixed invalid date bug ################################################################################ */ //////////////////////////////////////////////////////////////////////////// /* ##################### GENERAL STUFF ##################### */ include("./EUWDPCpix/config.php"); include("./EUWDPCpix/functions.php"); include("./EUWDPCpix/exif.php"); include('./EUWDPCpix/gif.php'); error_reporting(E_ALL ^ E_NOTICE); $verbose = 0; $dir = $_GET["dir"]; if (!$dir) { $dir = $root_dir; } $server = $_SERVER['HTTP_HOST']; $thisDir = dirname($_SERVER['PHP_SELF']); $pathToHere = "http://$server$thisDir/"; //////////////////////////////////////////////////////////////////////////// /* ################## START PAGE ################## */ ?>