diff --git a/.gitignore b/.gitignore index cb0c963a..32828f4a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,6 @@ docs/docs_style.css docs/index.html docs/quick-guide.html docs/step-by-step-guide.html -download_attachment.php file_limits.php footer.txt header.txt diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index a67594fc..aa656abf 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -888,11 +888,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
- '.$att_name.'
'; + echo ' + '.$noteAttachment['real_name'].'
'; } ?>
diff --git a/download_attachment.php b/download_attachment.php new file mode 100644 index 00000000..a7b713b1 --- /dev/null +++ b/download_attachment.php @@ -0,0 +1,174 @@ + $chunksize) +{ + $handle = fopen($realpath, 'rb'); + $buffer = ''; + while ( ! feof($handle)) + { + set_time_limit(300); + $buffer = fread($handle, $chunksize); + echo $buffer; + flush(); + } + fclose($handle); +} +else +{ + readfile($realpath); +} + +exit(); +?> diff --git a/language/en/text.php b/language/en/text.php index bdd1f2c8..1b05a690 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -32,7 +32,9 @@ $hesklang['note_edit_successful'] = 'Note edited'; $hesklang['note_last_edit'] = 'Note last edited on: %s'; // %s: timestamp of last edit $hesklang['total_number_of_edits'] = 'Total number of edits: %s'; // %s: total number of edits $hesklang['add_row'] = 'Add row'; -$hesklang['addnote']='Add note'; +$hesklang['addnote'] = 'Add note'; +$hesklang['no_noteID'] = 'No Note ID'; +$hesklang['note_id_not_found'] = 'Note ID not found'; // ADDED OR MODIFIED IN NuMods 1.5.0 $hesklang['ticket_auto_refresh'] = 'Ticket Table Auto-Refresh:';