コード例 #1
0
ファイル: newgallery.php プロジェクト: nbgmaster/master2008
 /* Create new folders */
 if (is_dir("gallery/{$_POST['folder']}/images") == false) {
     mkdir("gallery/{$_POST['folder']}/images", 0777);
 }
 if (is_dir("gallery/{$_POST['folder']}/thumbs") == false) {
     mkdir("gallery/{$_POST['folder']}/thumbs", 0777);
 }
 /******************************************/
 /* Directorys of the images and thumbs */
 $dir_images = "gallery/{$_POST['folder']}/";
 $dir_images_new = "gallery/{$_POST['folder']}/images/";
 $dir_thumbs = "gallery/{$_POST['folder']}/thumbs/";
 /******************************************/
 /* Get images in main directory */
 $gallery->directory = $dir_images;
 $images = $gallery->listfolder('return');
 /******************************************/
 /* Resize images */
 $gallery->dir_target = $dir_images_new;
 $gallery->height_max = $set[0]["height_images_max"];
 $gallery->width = $set[0]["width_images"];
 $gallery->pictures = $images;
 $gallery->createpicture('image');
 /******************************************/
 /* Get shooting time
 
           $picX = "$dir_images/$images[1]";
 
           $exifdata = exif_read_data($picX, 0, true);
 
           $fulldatetime = $exifdata['EXIF']['DateTimeOriginal'];