";
// test for the existence of the upload directories, and if they're not there, create them.
if (!file_exists("uploads/ImageSets/"))
{
mkdir("uploads/ImageSets/");
chmod("uploads/ImageSets/", 0777);
}
if (!file_exists("uploads/ImageSets/$IMGSET_Name"))
{
mkdir("uploads/ImageSets/$IMGSET_Name");
chmod("uploads/ImageSets/$IMGSET_Name", 0777);
}
// create a quick gallery of thumbs (without the editing options).
$imagelist = ReadImageDir($IMGSET_Name);
foreach($imagelist as $imagename)
{
if (substr($imagename, 0, 6) == "thumb_")
{
$output .= "
";
$output .= "";
$output .= "\n";
}
}
$output .= "