Add: maestro log DB

This commit is contained in:
2018-10-30 12:27:55 +09:00
parent 90c8ffa3a6
commit 542afc69d9
6 changed files with 95 additions and 3 deletions
@@ -5,6 +5,7 @@ include "./../lib/send_reply_json.php";
include "./../setup/connect_db.php";
include "./../lib/maestro_account_info.php";
include "./../lib/db_maestro.php";
include "./../lib/maestro_log.php";
include "./../mail/mail_setting.php";
include "./../mail/send_mail.php";
@@ -25,11 +26,16 @@ $email_prev = $info["email"];
update_maestro_info($maestroID, $maestroName, $email);
if($maestroName != $maestro_name_prev)
sendMailUpdateMaestroName($maestroName, $maestro_name_prev, $email);
if($email != $email_prev)
if($maestroName != $maestro_name_prev) {
sendMailUpdateMaestroName($maestroName, $maestro_name_prev, $email);
insertMaestroLog("update_maestro_name", $maestroID, $maestro_name_prev." -> ".$maestroName);
}
if($email != $email_prev) {
sendMailUpdateMaestroEmail($maestroName, $email, $email_prev);
insertMaestroLog("update_maestro_email", $maestroID, $email_prev." -> ".$email);
}
send_result_success();
exit;