Changeset 1631 for trunk/admin/thumbnail.php
- Timestamp:
- Dec 3, 2006, 11:32:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/thumbnail.php
r1379 r1631 64 64 unset($extension); 65 65 } 66 66 67 67 if ( isset( $srcImage ) ) 68 68 { … … 107 107 $destWidth,$destHeight,$srcWidth,$srcHeight ); 108 108 } 109 110 $tndir = $dirname.'/thumbnail'; 111 if (!is_dir($tndir)) 112 { 113 if (!is_writable($dirname)) 114 { 115 array_push($page['errors'], 116 '['.$dirname.'] : '.$lang['no_write_access']); 117 return false; 118 } 119 umask(0000); 120 mkdir($tndir, 0777); 121 } 122 109 110 if (($tndir = mkget_thumbnail_dir($dirname, $page['errors'])) == false) 111 { 112 return false; 113 } 114 123 115 $dest_file = $tndir.'/'.$conf['prefix_thumbnail']; 124 116 $dest_file.= get_filename_wo_extension($filename);
Note: See TracChangeset
for help on using the changeset viewer.