mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Functionalize logging, replaced old logging in contact add with new logging function
This commit is contained in:
@@ -64,7 +64,9 @@ if (isset($_POST['add_contact'])) {
|
||||
}
|
||||
|
||||
//Logging
|
||||
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Contact', log_action = 'Create', log_description = '$session_name created contact $name', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_client_id = $client_id, log_user_id = $session_user_id, log_entity_id = $contact_id");
|
||||
logAction("Contact", "Create", "$session_name created contact $name", $client_id, $contact_id);
|
||||
|
||||
//mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Contact', log_action = 'Create', log_description = '$session_name created contact $name', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_client_id = $client_id, log_user_id = $session_user_id, log_entity_id = $contact_id");
|
||||
|
||||
customAction('contact_create', $contact_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user