Add: send mail for extension maestro
This commit is contained in:
@@ -12,6 +12,7 @@ include "./../mail/send_mail.php";
|
||||
$maestro_extension_id = $_POST["maestro_extension_id"];
|
||||
$maestro_id = $_POST["maestro_id"];
|
||||
$maestro_name = $_POST["maestro_name"];
|
||||
$new_available_date = $_POST["new_available_date"];
|
||||
$registered_account_type = $_POST["registered_account_type"];
|
||||
|
||||
extension_maestro($maestro_id);
|
||||
@@ -20,7 +21,8 @@ change_extension_request_status_to_close($maestro_id);
|
||||
change_extension_request_status_to_applied($maestro_extension_id);
|
||||
|
||||
$maestro_data = get_maestro_data($maestro_id);
|
||||
// sendMailExtensionDone($maestro_data["name"], $maestro_data["email"], $registered_account_type);
|
||||
// $maestro_name, $new_available_date, $maestro_email
|
||||
sendMailExtensionDone($maestro_data["name"], $new_available_date, $maestro_data["email"]);
|
||||
insertMaestroLog("extension_maestro", $maestro_id, $maestro_name."(".$registered_account_type.")");
|
||||
|
||||
// set_data("maestro_extension_id", $maestro_extension_id);
|
||||
@@ -36,7 +38,7 @@ function extension_maestro($maestro_id) {
|
||||
|
||||
$query = "
|
||||
UPDATE maestro
|
||||
SET AccountType = ?, ActivateStatus = 1, AvailableActivateDateTime = DATE_ADD(NOW(), INTERVAL 1 YEAR)
|
||||
SET ActivateStatus = 1, AvailableActivateDateTime = DATE_ADD(AvailableActivateDateTime, INTERVAL 1 YEAR)
|
||||
WHERE MaestroID = ?;
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
|
||||
Reference in New Issue
Block a user