Fix for the reserve show confirmation and missing ;

This commit is contained in:
Ken Fallon 2025-01-14 17:35:20 +01:00
parent 35d938019a
commit 50da7ea056

View File

@ -160,7 +160,7 @@ logextra( "license is a valid value" );
// } // }
// logextra( "Notes are less than max" ); // logextra( "Notes are less than max" );
$notes_length = strlen($_POST["notes"]) $notes_length = strlen($_POST["notes"]);
logextra( "Notes are $notes_length long." ); logextra( "Notes are $notes_length long." );
if ( ( empty($_POST["series"]) and ($_POST["series"] != 0 ) ) or (strlen($_POST["series"]) > 3 ) ) { if ( ( empty($_POST["series"]) and ($_POST["series"] != 0 ) ) or (strlen($_POST["series"]) > 3 ) ) {
@ -460,7 +460,7 @@ $mailer->addBCC('admin@hackerpublicradio.org');
$mailer->addBCC('admin@hobbypublicradio.org'); $mailer->addBCC('admin@hobbypublicradio.org');
$mailer->AddAddress("$db_email"); $mailer->AddAddress("$db_email");
$mailer->isHTML(false); $mailer->isHTML(false);
if ( $ep_num === 9999 ) { if ( $ep_num == "9999" ) {
$mailer->Subject = "Thank you for uploading to the Reserve Queue"; $mailer->Subject = "Thank you for uploading to the Reserve Queue";
$mailer->MsgHTML("<p><em>This email is an automatic reply. If you have not made this request then please ignore this email.</em></p> $mailer->MsgHTML("<p><em>This email is an automatic reply. If you have not made this request then please ignore this email.</em></p>
<p>Thank You for recording an episode for the Reserve Queue.</p> <p>Thank You for recording an episode for the Reserve Queue.</p>
@ -476,20 +476,20 @@ if ( $ep_num === 9999 ) {
else { else {
$mailer->Subject = "Thank you for uploading hpr${ep_num}::${ep_date}"; $mailer->Subject = "Thank you for uploading hpr${ep_num}::${ep_date}";
$mailer->MsgHTML("<p><em>This email is an automatic reply. If you have not made this request then please ignore this email.</em></p> $mailer->MsgHTML("<p><em>This email is an automatic reply. If you have not made this request then please ignore this email.</em></p>
<p>Thank You for recording hpr${ep_num} for release on ${ep_date}.</p> <p>Thank you for recording hpr${ep_num} for release on ${ep_date}.</p>
<pre> <pre>
$message $message
</pre> </pre>
<p> <p>
Your show will now be processed by a HPR Volunteer.<br /> Your show will now be processed by a HPR Volunteer.<br />
Thanks,<br /> Thanks,<br />
HPR Bot HPR Bot.
</p>"); </p>");
} }
$mailer->AltBody = "This email is an automatic reply. If you have not made this request then please ignore this email. $mailer->AltBody = "This email is an automatic reply. If you have not made this request then please ignore this email.
Thank You for recording hpr${ep_num} for release on ${ep_date}. Thank you for recording hpr${ep_num}, for release on ${ep_date}.
$message $message