0) { $Success=TRUE; $message=$Comp_Title."\n\n"; $message.='You registered the following Brewer number'.($Cnt > 1 ? 's' : '').':'."\n\n"; while ($brew_row=mysqli_fetch_assoc($brew_res)) { $message.=disp_brewertype($brew_row['brewer_type']).' Number: '.$brew_row['brewer'].' - '; if ($brew_row['brewer_type'] != 'G') { $message.=safe($brew_row['fname']).' '.safe($brew_row['lname']); } else { $message.=safe($brew_row['groupname']); } $message.="\n\n"; } $headers=email_reply(); $res=mail (safe($EMail), $subject, $message, $headers); } else { $Success=FALSE; } $query='insert into recovery values (null, "'.$EMail.'", "'.($Success ? 'Y' : 'N').'", "'.$_SERVER['REMOTE_ADDR'].'")'; mysqli_query($db, $query); ?>

Brewer Number Recovery

'."\n"; echo 'Please provide an email address for recovery'."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo '
'."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; } else { echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo '
'."\n"; echo 'Brewer Number information has been sent to '.safe($EMail)."\n"; echo '
'."\n"; echo 'If the message does not appear shortly,
Remember to check Junk Email and Spam folders'."\n"; echo '
'."\n"; echo '
'."\n"; echo '
'."\n"; if ($EMail != 'None@Given') { echo ''."\n"; } echo ''."\n"; echo '
'."\n"; echo '
'."\n"; } ?>