Ejemplo n.º 1
0
 function _getAttachmentsXML($post_id)
 {
     $attachments = $this->fdb->getAttachments($post_id);
     $files = '';
     foreach ($attachments as $file) {
         encode_post_text($file['att_name']);
         $isImage = 0 == strncmp('image/', $file['att_type'], 6) ? 1 : 0;
         $files .= '<file image="' . $isImage . '" hash="' . $file['att_hash'] . '" size="' . orca_format_bytes($file['att_size']) . '" downloads="' . $file['att_downloads'] . '">' . $file['att_name'] . '</file>';
     }
     return $files;
 }
Ejemplo n.º 2
0
 function _getAttachmentsXML($post_id)
 {
     $attachments = $this->fdb->getAttachments($post_id);
     $files = '';
     foreach ($attachments as $file) {
         encode_post_text($file['att_name']);
         $files .= '<file hash="' . $file['att_hash'] . '" size="' . orca_format_bytes($file['att_size']) . '" downloads="' . $file['att_downloads'] . '">' . $file['att_name'] . '</file>';
     }
     return $files;
 }