rendered paste body[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"<center>"; }$tripDirectory_List = scandir($tripDirectory);foreach ($tripDirectory_List as $tripfile) { if (!is_dir("{$tripDirectory}/{$tripfile}")) { if ($thumbs == 0) { echo "<li><a href=\"{$tripURL}/{$tripfile}\" rel=\"lightbox[" . $tripFolder . "\"> {$tripfile} </a></li>"; } else { if ($row == 2) { echo "<br>"; $w = 100; echo "<a href=\"{$tripURL}/{$tripfile}\" rel=\"lightbox[" . $tripFolder . "\"> <img src=\"../phpThumb.php?src=../img/{$tripFolder}/{$tripfile}&w=100\" border=\"0\"> </a> "; $row = 0; } else { $row++; $w = 100; echo "<a href=\"{$tripURL}/{$tripfile}\" rel=\"lightbox[" . $tripFolder . "\"> <img src=\"../phpThumb.php?src=../img/{$tripFolder}/{$tripfile}&w=100\" border=\"0\"> </a> "; } } }}if ($thumbs == 1) { echo"</center>"; }[/exec]