The Mallers in Southern Africa - June-July 2000
This is a work in progress...new photographs and stories will appear here as I post them.
include("notes.html");
?>
|
function eachimagefile($file, $key)
{
$maxwidth = 700;
static $width = 0;
global $mypath;
global $photodirectory;
if (substr($file, -4, 4) == ".jpg") {
$size = GetImageSize("./thumbs/$file");
$width += $size[0];
if ($width >= $maxwidth) {
$width = 0;
echo "";
}
$url = sprintf("", $mypath, "$photodirectory/", $file);
echo "$url
\n";
} else if (substr($file, -4, 4) == ".txt") {
echo "
";
$f = sprintf("%s%s", "thumbs/", $file);
include($f);
echo " |
";
}
}
$mypath = substr($SCRIPT_NAME, 0, strrpos($SCRIPT_NAME, "/") + 1);
if ($img) {
echo $img;
} else {
$directorylist = array();
$handle=opendir('thumbs');
while ($a = readdir($handle)) {
array_push($directorylist, $a);
}
sort($directorylist);
array_walk($directorylist, "eachimagefile");
echo "";
closedir($handle);
//phpinfo();
}
?>