Changeset 1064 for trunk/admin/site_reader_local.php
- Timestamp:
- Mar 5, 2006, 12:31:46 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/site_reader_local.php
r1058 r1064 45 45 { 46 46 global $errors; 47 47 48 if (!is_dir($this->site_url)) 48 49 { 49 array_push($errors, array('path' => $this->site_url, 'type' => 'PWG-ERROR-NO-FS')); 50 array_push( 51 $errors, 52 array( 53 'path' => $this->site_url, 54 'type' => 'PWG-ERROR-NO-FS' 55 ) 56 ); 57 50 58 return false; 51 59 } 60 52 61 return true; 53 62 } … … 136 145 { 137 146 global $conf; 138 $update_fields = array( 'has_high', 'representative_ext', 139 'filesize', 'width', 'height' ); 147 148 $update_fields = array( 149 'has_high', 'representative_ext', 'filesize', 'width', 'height' 150 ); 151 140 152 if ($conf['use_exif']) 141 153 { … … 155 167 ); 156 168 } 169 157 170 return $update_fields; 158 171 } … … 170 183 171 184 $filename = basename($file); 172 $data['has_high'] = $this->get_has_high( dirname($file), $filename ); 173 $data['representative_ext'] = $this->get_representative_ext( dirname($file), 174 get_filename_wo_extension($filename) ); 185 186 $data['has_high'] = $this->get_has_high(dirname($file), $filename); 187 188 $data['representative_ext'] = $this->get_representative_ext( 189 dirname($file), 190 get_filename_wo_extension($filename) 191 ); 175 192 176 193 $data['filesize'] = floor(filesize($file)/1024); … … 205 222 } 206 223 } 224 207 225 return $data; 208 226 } … … 213 231 { 214 232 global $conf; 215 $base_test = $path.'/pwg_representative/'; 216 $base_test.= $filename_wo_ext.'.'; 233 $base_test = $path.'/pwg_representative/'.$filename_wo_ext.'.'; 217 234 foreach ($conf['picture_ext'] as $ext) 218 235 { … … 229 246 { 230 247 global $conf; 231 $base_test = $path.'/thumbnail/'; 232 $base_test.= $conf['prefix_thumbnail'].$filename_wo_ext.'.'; 248 249 $base_test = 250 $path.'/thumbnail/'.$conf['prefix_thumbnail'].$filename_wo_ext.'.'; 251 233 252 foreach ($conf['picture_ext'] as $ext) 234 253 { … … 239 258 } 240 259 } 260 241 261 return null; 242 262 } … … 248 268 return 'true'; 249 269 } 270 250 271 return null; 251 272 }
Note: See TracChangeset
for help on using the changeset viewer.