Changeset 1058 for trunk/admin/site_reader_remote.php
- Timestamp:
- Feb 28, 2006, 2:13:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/site_reader_remote.php
-
Property
svn:eol-style
set to
native
r1046 r1058 72 72 else 73 73 { 74 array_push($errors, array('path' => $listing_file, 'type' => 'PWG-ERROR-NO -FS'));74 array_push($errors, array('path' => $listing_file, 'type' => 'PWG-ERROR-NOLISTING')); 75 75 return false; 76 76 } … … 95 95 96 96 /** 97 * Returns a hash with all elements (images and files) inside the full $path 97 * Returns a hash with all elements (images and files) inside the full $path 98 98 * according to listing.xml 99 99 * @param string $path recurse in this directory only … … 110 110 foreach ( $files as $file) 111 111 { 112 $data = $this->get_element_attributes($file, 112 $data = $this->get_element_attributes($file, 113 113 $this->insert_attributes); 114 114 $elements[$file] = $data; … … 120 120 } 121 121 122 // returns the name of the attributes that are supported for 122 // returns the name of the attributes that are supported for 123 123 // update/synchronization according to listing.xml 124 124 function get_update_attributes() … … 130 130 function get_element_update_attributes($file) 131 131 { 132 return $this->get_element_attributes($file, 132 return $this->get_element_attributes($file, 133 133 $this->update_attributes); 134 134 } … … 138 138 * Returns a hash of image/file attributes 139 139 * @param string $file fully qualified file name 140 * @param array $attributes specifies which attributes to retrieve 140 * @param array $attributes specifies which attributes to retrieve 141 141 * returned 142 142 */ … … 144 144 { 145 145 $xml_element = $this->site_files[$file]; 146 if ( ! isset($xml_element) ) 146 if ( ! isset($xml_element) ) 147 147 { 148 148 return null; … … 153 153 if (getAttribute($xml_element, $att) != '') 154 154 { 155 $val = html_entity_decode( getAttribute($xml_element, $att));155 $val = getAttribute($xml_element, $att); 156 156 $data[$att] = addslashes($val); 157 157 } -
Property
svn:eol-style
set to
Note: See TracChangeset
for help on using the changeset viewer.