예제 #1
0
파일: report.php 프로젝트: stof/pearweb
         break;
         // skip bug addition
     }
     if (PEAR::isError($salt)) {
         $errors[] = $salt;
         response_header('Report - Problems');
         break;
     }
     if ($salt === false) {
         $errors[] = 'Your account cannot be added to the queue.' . ' Please write a mail message to the ' . ' <i>pear-dev</i> mailing list.';
         response_header('Report - Problems');
         break;
     }
     $_POST['in']['handle'] = $_POST['in']['reporter_name'] = $buggie->handle;
     try {
         $buggie->sendEmail();
     } catch (Exception $e) {
         $errors[] = 'Critical internal error: could not send' . ' email to your address ' . $_POST['in']['email'] . ', please write a mail message to the <i>pear-dev</i>' . 'mailing list and report this problem with details.' . '  We apologize for the problem, your report will help' . ' us to fix it for future users: ' . $e->getMessage();
         response_header('Report - Problems');
         break;
     }
 } else {
     $registereduser = 1;
     $_POST['in']['reporter_name'] = $auth_user->name;
     $_POST['in']['handle'] = $auth_user->handle;
 }
 // Put all text areas together.
 $fdesc = "Description:\n------------\n" . $_POST['in']['ldesc'] . "\n\n";
 if (!empty($_POST['in']['repcode'])) {
     $fdesc .= "Test script:\n---------------\n";
     $fdesc .= $_POST['in']['repcode'] . "\n\n";
예제 #2
0
<?php

if (!isset($_GET['handle'])) {
    response_header('Error: no handle selected');
    report_error('Error: no handle selected for display');
    response_footer();
    exit;
}
require 'bugs/pear-bug-accountrequest.php';
$account = new PEAR_Bug_Accountrequest($_GET['handle']);
if ($account->pending()) {
    try {
        $account->sendEmail();
    } catch (Exception $e) {
        response_header('Error: cannot send confirmation email');
        report_error('Error: confirmation email could not be sent: ' . $e->getMessage());
        response_footer();
        exit;
    }
} else {
    response_header('Error: handle does not need verification');
    report_error('Error: handle is either already verified or does not exist');
    response_footer();
    exit;
}
response_header('PEAR :: email re-sent');
?>
<h1>Verification email resent</h1>
<p>
The verification email has been sent to your email address.
</p>