X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/da2d6e5537e9fdcd6f424ea1cc8ab6ef8f45727e..72084f120c1e5a2270c0854540153c35819d0b35:/foto/index.php diff --git a/foto/index.php b/foto/index.php index a6378ef..e7f1bab 100644 --- a/foto/index.php +++ b/foto/index.php @@ -48,60 +48,55 @@ if (isset($Page->raw)) { print $Page->raw; # page intro } -if (!function_exists('showthumb')) { -function showthumb($path) -{ - // assume all album entries are symlinks to archive originals - $target = preg_replace('{^(\.\./)*}', '', readlink($path)); - $thumb = 'thumb/262/' . $target; - - @list ($order, $size, $title) = explode(':', pathinfo($path, PATHINFO_FILENAME), 3); - $imgtag = 'img src="/'.$thumb.'"'; - if ($title) { - $imgtag .= ' title="'.htmlspecialchars(urldecode($title)).'"'; - } - if ($size) { - $imgtag .= ' data-size="'.$size.'"'; - } - - return sprintf('<%s />'."\n", $target, $imgtag); -} -} - if ($imgs = glob("$rootdir/*", GLOB_ONLYDIR)) { natsort($imgs); print '\n\n"; } if ($imgs = glob("$rootdir/*.jpg")) { print ''."\n\n";