Rev 720 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 720 | Rev 800 | ||
---|---|---|---|
Line 372... | Line 372... | ||
372 | OIDplus::localpath().'vendor/danielmarschall/fileformats/filetypes$'.OIDplus::getCurrentLang().'.conf', |
372 | OIDplus::localpath().'vendor/danielmarschall/fileformats/filetypes$'.OIDplus::getCurrentLang().'.conf', |
373 | OIDplus::localpath().'vendor/danielmarschall/fileformats/filetypes.conf' |
373 | OIDplus::localpath().'vendor/danielmarschall/fileformats/filetypes.conf' |
374 | ); |
374 | ); |
375 | $output .= '<td>'.htmlentities(VtsFileTypeDetect::getDescription($file, $lookup_files)).'</td>'; |
375 | $output .= '<td>'.htmlentities(VtsFileTypeDetect::getDescription($file, $lookup_files)).'</td>'; |
376 | 376 | ||
377 | $output .= ' <td><button type="button" name="download_'.md5($file).'" id="download_'.md5($file).'" class="btn btn-success btn-xs download" onclick="OIDplusPagePublicAttachments.downloadAttachment('.js_escape(OIDplus::webpath(__DIR__)).', current_node,'.js_escape(basename($file)).')">'._L('Download').'</button></td>'; |
377 | $output .= ' <td><button type="button" name="download_'.md5($file).'" id="download_'.md5($file).'" class="btn btn-success btn-xs download" onclick="OIDplusPagePublicAttachments.downloadAttachment('.js_escape(OIDplus::webpath(__DIR__,true)).', current_node,'.js_escape(basename($file)).')">'._L('Download').'</button></td>'; |
378 | if ($can_delete) { |
378 | if ($can_delete) { |
379 | $output .= ' <td><button type="button" name="delete_'.md5($file).'" id="delete_'.md5($file).'" class="btn btn-danger btn-xs delete" onclick="OIDplusPagePublicAttachments.deleteAttachment(current_node,'.js_escape(basename($file)).')">'._L('Delete').'</button></td>'; |
379 | $output .= ' <td><button type="button" name="delete_'.md5($file).'" id="delete_'.md5($file).'" class="btn btn-danger btn-xs delete" onclick="OIDplusPagePublicAttachments.deleteAttachment(current_node,'.js_escape(basename($file)).')">'._L('Delete').'</button></td>'; |
380 | } |
380 | } |
381 | 381 | ||
382 | $output .= '</tr>'; |
382 | $output .= '</tr>'; |
Line 437... | Line 437... | ||
437 | // Interface 1.3.6.1.4.1.37476.2.5.2.3.4 |
437 | // Interface 1.3.6.1.4.1.37476.2.5.2.3.4 |
438 | 438 | ||
439 | $files = @glob(self::getUploadDir($id) . DIRECTORY_SEPARATOR . '*'); |
439 | $files = @glob(self::getUploadDir($id) . DIRECTORY_SEPARATOR . '*'); |
440 | if ($files) foreach ($files as $file) { |
440 | if ($files) foreach ($files as $file) { |
441 | $out[] = 'attachment-name: '.basename($file); |
441 | $out[] = 'attachment-name: '.basename($file); |
442 | $out[] = 'attachment-url: '.OIDplus::webpath(__DIR__).'download.php?id='.urlencode($id).'&filename='.urlencode(basename($file)); |
442 | $out[] = 'attachment-url: '.OIDplus::webpath(__DIR__,true).'download.php?id='.urlencode($id).'&filename='.urlencode(basename($file)); |
443 | } |
443 | } |
444 | 444 | ||
445 | } |
445 | } |
446 | public function whoisRaAttributes($email, &$out) {} // Interface 1.3.6.1.4.1.37476.2.5.2.3.4 |
446 | public function whoisRaAttributes($email, &$out) {} // Interface 1.3.6.1.4.1.37476.2.5.2.3.4 |
447 | } |
447 | } |