You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
456 B
PHP
11 lines
456 B
PHP
<?php
|
|
|
|
function upload_temp_attachment($i, $isTicket) {
|
|
global $hesk_settings;
|
|
|
|
$info = hesk_uploadFile($i, $isTicket);
|
|
hesk_dbQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "temp_attachment` (`file_name`,`size`, `type`, `date_uploaded`)
|
|
VALUES ('" . hesk_dbEscape($info['saved_name']) . "','" . hesk_dbEscape($info['size']) . "','" . hesk_dbEscape($isTicket ? 1 : 0) . "', NOW())");
|
|
|
|
return hesk_dbInsertID();
|
|
} |