Skip to content

Commit

Permalink
Merge pull request #1022 from itflow-org/client-export-log
Browse files Browse the repository at this point in the history
Log when client pack is exported to PDF
  • Loading branch information
johnnyq committed Sep 4, 2024
2 parents 3977650 + 00e4e8a commit 16b08af
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions post/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,15 +508,15 @@

// Create Contact
mysqli_query($mysqli, "INSERT INTO contacts SET contact_name = '$contact_name', contact_title = '$title', contact_phone = '$contact_phone', contact_extension = '$contact_extension', contact_mobile = '$contact_mobile', contact_email = '$contact_email', contact_primary = 1, contact_important = 1, contact_client_id = $client_id");

$row_count = $row_count + 1;
}else{

} else {

$duplicate_count = $duplicate_count + 1;

}

}
fclose($file);

Expand Down Expand Up @@ -583,6 +583,9 @@
$export_trips = intval($_POST['export_trips']);
$export_logs = intval($_POST['export_logs']);

//Logging
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Client', log_action = 'Export', log_description = '$session_name exported client data to a PDF file', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_client_id = $client_id, log_user_id = $session_user_id");


//get records from database
$sql = mysqli_query($mysqli,"SELECT * FROM clients
Expand Down

0 comments on commit 16b08af

Please sign in to comment.