--- functions.inc 2009-10-24 16:18:40.000000000 -0400 +++ ../functions.inc 2009-10-27 22:37:55.000000000 -0400 @@ -13,7 +13,8 @@ # Load Directory Into Array $poct = -1; $retval_dimensions = array(); - $handle = opendir($absolpath); + $actualpath = realpath(file_directory_path() . $absolpath); + $handle = opendir($actualpath); $imagemaxh = 0; while ($file = @readdir($handle)) { $testending = strtolower(substr($file, -4, 4)); @@ -26,7 +27,7 @@ $retval_dimensions[$poct]['imgcrop'] = $imagecrop; # Is image horizontally or vertically oriented? - $temp = getimagesize($absolpath .'/'. $file); + $temp = getimagesize($actualpath .'/'. $file); if ($temp === false) { continue; }