Changeset 6052
- Timestamp:
- May 3, 2010, 2:49:26 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_upload.inc.php
r5957 r6052 32 32 // upload directory hierarchy 33 33 $upload_dir = sprintf( 34 PHPWG_ROOT_PATH. 'upload/%s/%s/%s',34 PHPWG_ROOT_PATH.$conf['upload_dir'].'/%s/%s/%s', 35 35 $year, 36 36 $month, … … 97 97 'date_available' => $dbnow, 98 98 'tn_ext' => 'jpg', 99 'path' => preg_replace(' /^.*?upload/', './upload', $file_path),99 'path' => preg_replace('#^'.preg_quote(PHPWG_ROOT_PATH).'#', '', $file_path), 100 100 'filesize' => $file_infos['filesize'], 101 101 'width' => $file_infos['width'], -
trunk/admin/photos_add_direct.php
r6051 r6052 120 120 if ('zip' == strtolower($extension)) 121 121 { 122 $upload_dir = PHPWG_ROOT_PATH.'upload/buffer';122 $upload_dir = $conf['upload_dir'].'/buffer'; 123 123 prepare_directory($upload_dir); 124 124 -
trunk/include/config_default.inc.php
r5470 r6052 762 762 $conf['local_data_dir'] = dirname(dirname(__FILE__)).'/_data'; 763 763 764 // where should the API add photos? 765 $conf['upload_dir'] = PHPWG_ROOT_PATH.'upload'; 764 // where should the API/UploadForm add photos? This path must be relative to 765 // the Piwigo installation directory (but can be outside, as long as it's 766 // reachable from your webserver). 767 $conf['upload_dir'] = './upload'; 766 768 767 769 // where should the user be guided when there is no photo in his gallery yet?
Note: See TracChangeset
for help on using the changeset viewer.