Esempio n. 1
0
     /* Clear images and thumbs directory */
     $thumbs->directory = $dir_images_new;
     $thumbs->listfolder('clear');
     $thumbs->directory = $dir_thumbs;
     $thumbs->listfolder('clear');
     /******************************************/
     /* Get images in main directory */
     $thumbs->directory = $dir_images;
     $images = $thumbs->listfolder('return');
     /******************************************/
     /* Create images */
     $thumbs->dir_target = $dir_images_new;
     $thumbs->width = $set[0]["width_images"];
     $thumbs->height_max = $set[0]["height_images_max"];
     $thumbs->pictures = $images;
     $thumbs->createpicture('image');
     /******************************************/
     /* Create Thumbs */
     $thumbs->dir_target = $dir_thumbs;
     $thumbs->width = $set[0]["width_thumbs"];
     $thumbs->height_max = $set[0]["height_thumbs_max"];
     $thumbs->pictures = $images;
     $thumbs->createpicture('thumb');
     /******************************************/
     /* Delete :: Object INSERT */
     unset($thumbs);
     /******************************************/
     /* Load :: Updated Main Content */
     header("Location:" . ROOT_DIR . "gallery/" . $_POST['gid']);
     /******************************************/
 } else {