function confirm_notice($snt) { $msg = gen_total_msg($snt); echo_msg($msg); $confirm = ask_y_or_n("Are you sure to send the above message?"); if ($confirm) { echo "Comment mail will be sent.\n\n"; send($msg); } else { echo "Comment mail is cancelled.\n\n"; } }
function confirm_notice($is_fst, $snt) { $msg = gen_snt_msg($is_fst, $snt); echo_msg($msg); $confirm = ask_y_or_n("Are you sure to send the above message?"); if ($confirm) { echo "Notice mail will be sent.\n\n"; send_notice($is_fst, $snt, $msg); } else { echo "S&T notice is cancelled.\n\n"; } }
function confirm_remind($snt) { $msg = gen_msg($snt); echo_msg($msg); $confirm = ask_y_or_n("Are you sure to send the above message?"); if ($confirm) { echo "Remind mail will be sent.\n\n"; send_remind($snt, $msg); } else { echo "S&T remind is cancelled.\n"; } }
function confirm_commenter($snt) { $commenter_info = gen_commenter($snt["who"]); $msg = gen_msg($snt, $commenter_info); echo_msg($msg); $confirm = ask_y_or_n("Are you sure to send the above message?"); if ($confirm) { echo "Commenter notice mail will be sent.\n\n"; send_and_set_data($snt, $commenter_info, $msg); } else { echo "Commenter notice is cancelled.\n"; } }