< Back to ' . htmlspecialchars($album) .
'';
switch (substr($file, strrpos($file, '.') + 1))
{
// jpeg files are included using the img element
case 'jpg':
case 'jpeg':
echo '';
break;
// QuickTime files are included using the object/embed elements
case 'mov':
echo '';
break;
// redirect if file format is not valid
default:
header('Location: ' . htmlspecialchars($_SERVER['PHP_SELF']));
exit();
}
$GLOBALS['TEMPLATE']['content'] = ob_get_contents();
ob_end_clean();
}
// generate album view
else if ($album)
{
// redirect to album list if album does not exist or is outside the
// allowed base directory
if (strpos(realpath($album_p), BASEDIR) !== 0 || !file_exists($album_p))
{
header('Location: ' . htmlspecialchars($_SERVER['PHP_SELF']));
exit();
}
ob_start();
// provide link for album index
echo '
';
switch (substr($file, strrpos($file, '.') + 1))
{
// jpeg files are included using the img element
case 'jpg':
case 'jpeg':
echo '';
break;
// quicktime files are included using the object/embed elements
case 'mov':
echo '';
break;
// redirect if file format is not valid
default:
header('Location: ' . htmlspecialchars($_SERVER['PHP_SELF']));
exit();
}
$GLOBALS['TEMPLATE']['content'] = ob_get_contents();
ob_end_clean();
}
// generate album view
else if ($album)
{
// redirect to album list if album does not exist or is outside the
// allowed base directory
if (strpos(realpath($album_p), BASEDIR) !== 0 || !file_exists($album_p))
{
header('Location: ' . htmlspecialchars($_SERVER['PHP_SELF']));
exit();
}
ob_start();
// provide link for album index
echo '