Changeset 1058 for trunk/admin/site_reader_local.php
- Timestamp:
- Feb 28, 2006, 2:13:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/site_reader_local.php
-
Property
svn:eol-style
set to
native
r1029 r1058 47 47 if (!is_dir($this->site_url)) 48 48 { 49 array_push($errors, array('path' => $this->site_url, 'type' => 'PWG-ERROR-NO DIR'));49 array_push($errors, array('path' => $this->site_url, 'type' => 'PWG-ERROR-NO-FS')); 50 50 return false; 51 51 } … … 61 61 62 62 /** 63 * Returns an array with all file system files according to $conf['file_ext'] 63 * Returns an array with all file system files according to $conf['file_ext'] 64 64 * and $conf['picture_ext'] 65 65 * @param string $path recurse in this directory … … 131 131 } 132 132 133 // returns the name of the attributes that are supported for 133 // returns the name of the attributes that are supported for 134 134 // update/synchronization according to configuration 135 135 function get_update_attributes() 136 136 { 137 137 global $conf; 138 $update_fields = array( 'has_high', 'representative_ext', 138 $update_fields = array( 'has_high', 'representative_ext', 139 139 'filesize', 'width', 'height' ); 140 140 if ($conf['use_exif']) … … 166 166 return null; 167 167 } 168 168 169 169 $data = array(); 170 170 171 171 $filename = basename($file); 172 172 $data['has_high'] = $this->get_has_high( dirname($file), $filename ); 173 $data['representative_ext'] = $this->get_representative_ext( dirname($file), 173 $data['representative_ext'] = $this->get_representative_ext( dirname($file), 174 174 get_filename_wo_extension($filename) ); 175 175 176 176 $data['filesize'] = floor(filesize($file)/1024); 177 177 if ($image_size = @getimagesize($file)) -
Property
svn:eol-style
set to
Note: See TracChangeset
for help on using the changeset viewer.