";
print "
";
print "";
print " $StrViewing \"".htmlentities($filename)."\" $StrAt ".$_GET['size']."%";
print " | ";
print "";
print "";
print " | ";
print "
";
print "";
print "";
print " ";
if (is_file($home_directory.$path.$filename) && is_viewable_file($filename))
{
$image_info = GetImageSize($home_directory.$path.$filename);
$size = $_GET['size'];
$zoom_in = $ZoomArray[get_current_zoom_level($size, 1)];
$zoom_out = $ZoomArray[get_current_zoom_level($size, -1)];
$width = $image_info[0] * $size / 100;
$height = $image_info[1] * $size / 100;
$files = array();
if ($open = opendir($home_directory.$path))
{
while ($file = readdir($open))
if (is_file($home_directory.$path.$file) && is_viewable_file($file))
$files[] = $file;
closedir($open);
sort($files);
if (count($files)>1)
{
for($i=0;$files[$i]!=$filename;$i++);
if ($i==0) $prev = $files[$i+count($files)-1];
else $prev = $files[$i-1];
if ($i==(count($files)-1)) $next = $files[$i-count($files)+1];
else $next = $files[$i+1];
}
else
{
$prev = $filename;
$next = $filename;
}
}
print " ";
print "";
}
else
{
print "$StrViewFail
";
print "$StrViewFailHelp";
}
print "
";
print " | ";
print "
";
print "";
print "";
}
else
print "$StrAccessDenied";
?>