@@ 67-71 (lines=5) @@ | ||
64 | } |
|
65 | ||
66 | $filename_full = $file->getVar('filename'); |
|
67 | if($file->getVar('responseid') != 0){ |
|
68 | $removeText = $file->getVar('ticketid')."_".$file->getVar('responseid')."_"; |
|
69 | } else { |
|
70 | $removeText = $file->getVar('ticketid')."_"; |
|
71 | } |
|
72 | $filename = str_replace($removeText, '', $filename_full); |
|
73 | $filesize = round(filesize(XHELP_UPLOAD_PATH."/".$filename_full)/1024, 2); |
|
74 |
@@ 29-33 (lines=5) @@ | ||
26 | $ticket =& $hTicket->get($file->getVar('ticketid')); |
|
27 | ||
28 | $filename_full = $file->getVar('filename'); |
|
29 | if($file->getVar('responseid') > 0){ |
|
30 | $removeText = $file->getVar('ticketid')."_".$file->getVar('responseid')."_"; |
|
31 | } else { |
|
32 | $removeText = $file->getVar('ticketid')."_"; |
|
33 | } |
|
34 | $filename = str_replace($removeText, '', $filename_full); |
|
35 | ||
36 | //Security: |