cvs: pearweb /public_html/bugs report.php

From: Date: Mon, 20 Feb 2006 18:05:13 +0000
Subject: cvs: pearweb /public_html/bugs report.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-38403@lists.php.net to get a copy of this message
pajoye Mon Feb 20 18:05:13 2006 UTC Modified files: /pearweb/public_html/bugs report.php Log: - #1952, prefill name and email for pear developers if the showemail == 0, then the @php.net mail is used but can be changed http://cvs.php.net/viewcvs.cgi/pearweb/public_html/bugs/report.php?r1=1.57&r2=1.58&diff_format=u Index: pearweb/public_html/bugs/report.php diff -u pearweb/public_html/bugs/report.php:1.57 pearweb/public_html/bugs/report.php:1.58 --- pearweb/public_html/bugs/report.php:1.57 Mon Feb 20 17:23:15 2006 +++ pearweb/public_html/bugs/report.php Mon Feb 20 18:05:13 2006 @@ -17,7 +17,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: report.php,v 1.57 2006/02/20 17:23:15 pajoye Exp $ + * @version $Id: report.php,v 1.58 2006/02/20 18:05:13 pajoye Exp $ */ /** @@ -30,7 +30,6 @@ */ require_once './include/cvs-auth.inc'; - error_reporting(E_ALL ^ E_NOTICE); $errors = array(); $ok_to_submit_report = false; @@ -331,8 +330,20 @@ Your <span class="accesskey">n</span>ame: </th> <td class="form-input"> +<?php + if ($auth_user && $auth_user->registered) { +?> + <?php echo clean($auth_user->name); ?> + <input type="hidden" size="20" maxlength="40" name="in[reporter_name]" + value="<?php echo clean($auth_user->name); ?>" accesskey="n" /> +<?php + } else { +?> <input type="text" size="20" maxlength="40" name="in[reporter_name]" value="<?php echo clean($_POST['in']['reporter_name']); ?>" accesskey="n" /> +<?php + } +?> </td> </tr> @@ -343,8 +354,19 @@ <td class="form-input"> <input type="hidden" name="in[did_luser_search]" value="<?php echo $_POST['in']['did_luser_search'] ? 1 : 0; ?>" /> +<?php +if ($auth_user && $auth_user->registered) { +?> + <input type="text" size="20" maxlength="40" name="in[email]" + value="<?php echo ($auth_user->showemail) ? $auth_user->email : ($auth_user->handle . '@php.net'); ?>" accesskey="o" /> +<?php +} else { +?> <input type="text" size="20" maxlength="40" name="in[email]" value="<?php echo clean($_POST['in']['email']); ?>" accesskey="o" /> +<?php +} +?> </td> </tr> <tr>

« previous php.pear.cvs (#38403) next »