Skip to content

Commit

Permalink
Log to the MGMT log file the fact that template and user changes were…
Browse files Browse the repository at this point in the history
… made.
  • Loading branch information
John Horne committed Sep 1, 2017
1 parent 66420fb commit b5f88ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website_code/php/management/template_details_management.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@


if($res){
$msg = "Template changes saved by user from " . $_SERVER['REMOTE_ADDR'];
receive_message("", "SYSTEM", "MGMT", "Changes saved", $msg);

echo TEMPLATE_CHANGE_SUCCESS;
}else{
echo TEMPLATE_CHANGE_FAIL . " " . mysql_error();
Expand Down
3 changes: 3 additions & 0 deletions website_code/php/management/user_details_management.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

$res =db_query($query, $params);
if($res) {
$msg = "User changes saved by user from " . $_SERVER['REMOTE_ADDR'];
receive_message("", "SYSTEM", "MGMT", "Changes saved", $msg);

echo USERS_UPDATE_SUCCESS;
}else{
echo USERS_UPDATE_FAIL;
Expand Down

0 comments on commit b5f88ef

Please sign in to comment.