')->execute(array(bugs_get_hash($new_passwd), $bug_id)); $resp = bugs_mail($row['email'], "Password for {$siteBig} bug report #{$bug_id}", "The password for {$siteBig} bug report #{$bug_id} has been set to: {$new_passwd}", 'From: noreply@php.net'); if ($resp) { $success = "The password for bug report #{$bug_id} has been sent to " . spam_protect($row['email'], 'text'); } else { $errors[] = 'Sorry. Mail can not be sent at this time, please try again later.'; } } } } } response_header('Bug Report Password Finder'); echo "<h1>Bug Report Password Finder</h1>\n"; display_bug_error($errors); if ($success) { display_bug_success($success); } $captcha = $numeralCaptcha->getOperation(); $_SESSION['answer'] = $numeralCaptcha->getAnswer(); ?> <p> If you need to modify a bug report that you submitted, but have forgotten what password you used, this utility can help you. </p> <p> Enter in the number of the bug report, press the Send button and the password will be mailed to the email address specified in the bug report. </p>
display_bug_success("\n\t\t\tThank you for your help!\n\t\t\tIf the status of the bug report you submitted changes, you will be notified.\n\t\t\tYou may return here and check the status or update your report at any time.<br>\n\t\t\tThe URL for your bug report is: <a href='{$bug_url}'>{$bug_url}</a>.\n\t\t"); break; case 6: display_bug_success('Thanks for voting! Your vote should be reflected in the statistics below.'); break; case 7: display_bug_success('Your subscribe request has been processed.'); break; case 8: display_bug_success('Your unsubscribe request has been processed, please check your email.'); break; case 9: display_bug_success('You have successfully unsubscribed.'); break; case 10: display_bug_success('Your vote has been updated.'); break; default: break; } display_bug_error($errors); if (!$show_bug_info) { echo '<div id="bugheader"></div>'; } else { ?> <div id="bugheader"> <table id="details"> <tr id="title"> <th class="details" id="number"><a href="bug.php?id=<?php echo $bug_id, '">', $bug_type, '</a> #', $bug_id; ?>
break; case 4: $bug_url = "{$site_method}://{$site_url}{$basedir}/bug.php?id={$bug_id}"; display_bug_success("\n\t\t\tThank you for your help!\n\t\t\tIf the status of the bug report you submitted changes, you will be notified.\n\t\t\tYou may return here and check the status or update your report at any time.<br />\n\t\t\tThe URL for your bug report is: <a href='{$bug_url}'>{$bug_url}</a>.\n\t\t"); break; case 6: display_bug_success('Thanks for voting! Your vote should be reflected in the statistics below.'); break; case 7: display_bug_success('Your subscribe request has been processed.'); break; case 8: display_bug_success('Your unsubscribe request has been processed, please check your email.'); break; case 9: display_bug_success('You have successfully unsubscribed.'); break; default: break; } display_bug_error($errors); if (!$show_bug_info) { echo '<div id="bugheader"></div>'; } else { ?> <div id="bugheader"> <table id="details"> <tr id="title"> <th class="details" id="number"><a href="bug.php?id=<?php echo $bug_id, '">', $bug_type, '</a> #', $bug_id; ?>