Relative name (FS)
$img="..".$img;
// Relative diretcory (FS)
$Dir=dirname($img)."/";
// Photo file name
$Filename=basename($img);
// Load photos.xml
include $Depth."common/photos.inc.php";
//; Index of the current photograph
$Idx=-1;
foreach ($Photos as $key => $slide)
{
if ($slide["name"]==$Filename)
{
$Idx=$slide["idx"];
break;
}
}
if ($Idx==-1)
exit;
$size=@getimagesize($img);
if (!$size)
exit;
// Bug Mozilla 1.0 ???
if (0) {
echo "\n";
echo "\n";
}
echo "\n";
echo "
\n";
// Based on work from Hrvoje Horvat , September 24, 2000
// http://www.spacebox.org/linux/
// try experimenting with $Framesize variable
// 20 is a plain drop shadow
// number from 10 to 0 will generate a photo border
// for even more white space between picture and border use negative numbers
$Framesize=5;
if (isset($Photos[$Idx]["long_desc"]))
{
echo "
";
echo $Photos[$Idx]["long_desc"];
echo "
\n";
} else
if (isset($Photos[$Idx]["short_desc"]))
{
echo "