Im looking for a way to log the click (download) of an attachment, in ticket view. In admin->system, i have set logging to DEBUG. I have added the following code in ticket-view.inc.php but when i test it by clicking on an attachment in the ticket, i dont see any records in the log with title "File click", just the cronjobs and logins.
<?php
if(isset($_GET['file.php'])){
george_logclick();
}
function george_logclick(){
$ost->logDebug(_S('File Click'),
sprintf(_S("%s logged in [%s], clicked file %s"), $staff->getUserName(),
$_SERVER['REMOTE_ADDR'], $handler . '?' . http_build_query($args))); //Debug.
}
?>
Regards
George