Ignore:
Timestamp:
Feb 28, 2006, 2:13:16 AM (18 years ago)
Author:
rvelices
Message:

remake of Remote sites and synchronize: final integration and old code cleanup

fix: xml getAttribute always decodes html entities and added encodeAttribute
function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_reader_local.php

    • Property svn:eol-style set to native
    r1029 r1058  
    4747  if (!is_dir($this->site_url))
    4848  {
    49     array_push($errors, array('path' => $this->site_url, 'type' => 'PWG-ERROR-NODIR'));
     49    array_push($errors, array('path' => $this->site_url, 'type' => 'PWG-ERROR-NO-FS'));
    5050    return false;
    5151  }
     
    6161
    6262/**
    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']
    6464 * and $conf['picture_ext']
    6565 * @param string $path recurse in this directory
     
    131131}
    132132
    133 // returns the name of the attributes that are supported for 
     133// returns the name of the attributes that are supported for
    134134// update/synchronization according to configuration
    135135function get_update_attributes()
    136136{
    137137  global $conf;
    138   $update_fields = array( 'has_high', 'representative_ext', 
     138  $update_fields = array( 'has_high', 'representative_ext',
    139139      'filesize', 'width', 'height' );
    140140  if ($conf['use_exif'])
     
    166166    return null;
    167167  }
    168  
     168
    169169  $data = array();
    170  
     170
    171171  $filename = basename($file);
    172172  $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),
    174174                                        get_filename_wo_extension($filename) );
    175  
     175
    176176  $data['filesize'] = floor(filesize($file)/1024);
    177177  if ($image_size = @getimagesize($file))
Note: See TracChangeset for help on using the changeset viewer.