[exec]
//This is a test of the new thumbnail generation script.
$tripFolder = "misc";
$thumbs = 1;
$row = 0;
$tripDirectory = "/home/digitall/public_html/img/" . $tripFolder . "";
$tripURL = "http://digitallyevolved.net/img/" . $tripFolder . "";
// Get the directory list in an array.
if ($thumbs == 1) { echo"
"; }
$tripDirectory_List = scandir($tripDirectory);
foreach ($tripDirectory_List as $tripfile) {
if (!is_dir("{$tripDirectory}/{$tripfile}")) {
if ($thumbs == 0) {
echo " {$tripfile} ";
}
else {
if ($row == 2) {
echo "
";
$w = 100;
echo "
";
$row = 0;
}
else {
$row++;
$w = 100;
echo "
";
}
}
}
}
if ($thumbs == 1) { echo""; }
[/exec]