Changeset 3720
- Timestamp:
- Aug 2, 2009, 3:04:17 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/thumbnail.php
r3282 r3720 205 205 $filename_wo_ext = get_filename_wo_extension($filename); 206 206 $tn_ext = ''; 207 $base_test = $dirname.'/ thumbnail/';207 $base_test = $dirname.'/'.$conf['dir_thumbnail'].'/'; 208 208 $base_test.= $conf['prefix_thumbnail'].$filename_wo_ext.'.'; 209 209 foreach ($conf['picture_ext'] as $ext) -
trunk/admin/upload.php
r3282 r3720 188 188 $thumbnail.= '.'.$row['tn_ext']; 189 189 $url = $cat_names[$row['storage_category_id']]['dir']; 190 $url.= 'thumbnail/'.$thumbnail;190 $url.= $conf['dir_thumbnail'].'/'.$thumbnail; 191 191 192 192 $tpl_var['thumbnail'] = -
trunk/include/config_default.inc.php
r3662 r3720 264 264 // contain characters among : a to z (case insensitive), "-" or "_". 265 265 $conf['prefix_thumbnail'] = 'TN-'; 266 267 // dir_thumbnail : directory where thumbnail reside. 268 $conf['dir_thumbnail'] = 'thumbnail'; 266 269 267 270 // users_page: how many users to display in screen -
trunk/include/functions.inc.php
r3282 r3720 257 257 function mkget_thumbnail_dir($dirname, &$errors) 258 258 { 259 $tndir = $dirname.'/ thumbnail';259 $tndir = $dirname.'/'.$conf['dir_thumbnail']; 260 260 if (! mkgetdir($tndir, MKGETDIR_NONE) ) 261 261 { … … 866 866 $path = substr_replace( 867 867 get_filename_wo_extension($element_info['path']), 868 '/ thumbnail/'.$conf['prefix_thumbnail'],868 '/'.$conf['dir_thumbnail'].'/'.$conf['prefix_thumbnail'], 869 869 strrpos($element_info['path'],'/'), 870 870 1 -
trunk/include/ws_functions.inc.php
r3662 r3720 1066 1066 // thumbnail directory is a subdirectory of the photo file, hard coded 1067 1067 // "thumbnail" 1068 $thumbnail_dir = $upload_dir.'/ thumbnail';1068 $thumbnail_dir = $upload_dir.'/'.$conf['dir_thumbnail']; 1069 1069 if (!is_dir($thumbnail_dir)) { 1070 1070 umask(0000);
Note: See TracChangeset
for help on using the changeset viewer.