cvs: pearweb /public_html/bugs bug.php /public_html/bugs/include functions.inc
| From: | Greg Beaver | Date: | Wed, 28 Feb 2007 04:44:11 +0000 |
| Subject: | cvs: pearweb /public_html/bugs bug.php /public_html/bugs/include functions.inc | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-44904@lists.php.net to get a copy of this message | ||
cellog Wed Feb 28 04:44:11 2007 UTC
Modified files:
/pearweb/public_html/bugs bug.php
/pearweb/public_html/bugs/include functions.inc
Log:
ensure that pear.bug karma is second-class to pear.dev, and is really
only an equivalent to the original password-based bug reporter.
- can only edit own bugs, can't assign a user, no roadmap editing, no quick fix
dropdown
- fix gratuitous "Click here to submit a patch" boxes
http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/bug.php?r1=1.118&r2=1.119&diff_format=u
Index: pearweb/public_html/bugs/bug.php
diff -u pearweb/public_html/bugs/bug.php:1.118 pearweb/public_html/bugs/bug.php:1.119
--- pearweb/public_html/bugs/bug.php:1.118 Sun Feb 25 23:38:03 2007
+++ pearweb/public_html/bugs/bug.php Wed Feb 28 04:44:11 2007
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: bug.php,v 1.118 2007/02/25 23:38:03 cellog Exp $
+ * @version $Id: bug.php,v 1.119 2007/02/28 04:44:11 cellog Exp $
*/
/*
@@ -174,6 +174,12 @@
$bug =& $dbh->getRow($query, array(), DB_FETCHMODE_ASSOC);
+if ($auth_user && auth_check('pear.bug') &&
!auth_check('pear.dev') && $edit == 1) {
+ if ($bug['handle'] != $auth_user->handle) {
+ $edit = 3; // can't edit a bug you didn't create
+ }
+}
+
// Unsubscribe
if (isset($_POST['unsubscribe_to_bug'])) {
$email = $_POST['subscribe_email'];
@@ -637,11 +643,7 @@
if (!($auth_user && $auth_user->registered) && $edit != 2) {
control(3, 'Add Comment');
}
-if ($auth_user) {
- control(1, 'Developer');
-} else {
- control(1, 'Edit Submission');
-}
+control(1, 'Edit');
?>
</div>
@@ -791,7 +793,7 @@
<?php
- if ($edit == 1) {
+ if ($edit == 1 && auth_check('pear.dev')):
// Developer Edit Form
?>
@@ -817,9 +819,8 @@
<small>(<a
href="/bugs/quick-fix-desc.php">description</a>)</small>
</td>
</tr>
-
- <?php
- }
+ <?php
+ endif; // if ($edit == 1 && auth_check('pear.dev'))
?>
<tr>
@@ -830,7 +831,7 @@
</select>
<?php
- if ($edit == 1) {
+ if ($edit == 1 && auth_check('pear.dev')) {
?>
</td>
@@ -901,6 +902,7 @@
value="<?php echo field('php_os') ?>" />
</td>
</tr>
+ <?php if (auth_check('pear.dev')): ?>
<tr>
<th class="details">Assigned to <br />Roadmap Version(s):</th>
<td><?php
@@ -927,6 +929,7 @@
?>
</td>
</tr>
+ <?php endif; //if (auth_check('pear.dev'))?>
<tr>
</table>
<div class="explain">
@@ -951,9 +954,6 @@
?>
<div class="explain">
- <h1><a href="/bugs/patch-add.php?bug=<?php echo $id ?>">Click Here to
Submit a Patch</a></h1>
-</div>
-<div class="explain">
<form name="subscribetobug" action="/bugs/bug.php?id=<?php echo $id;
?>" method="post">
<table>
@@ -1043,6 +1043,7 @@
<table>
+ <?php if (!$auth_user): ?>
<tr>
<th class="details">Your <span
class="accesskey">n</span>ame:</th>
<td>
@@ -1061,7 +1062,6 @@
<input type="hidden" name="edit" value="<?php echo
$edit?>" />
</td>
</tr>
- <?php if (!$auth_user): ?>
<tr>
<th>Solve the problem : <?php print $numeralCaptcha->getOperation(); ?> =
?</th>
<td class="form-input"><input type="text"
name="captcha" /></td>
http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/include/functions.inc?r1=1.128&r2=1.129&diff_format=u
Index: pearweb/public_html/bugs/include/functions.inc
diff -u pearweb/public_html/bugs/include/functions.inc:1.128
pearweb/public_html/bugs/include/functions.inc:1.129
--- pearweb/public_html/bugs/include/functions.inc:1.128 Sun Feb 25 22:44:26 2007
+++ pearweb/public_html/bugs/include/functions.inc Wed Feb 28 04:44:11 2007
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: functions.inc,v 1.128 2007/02/25 22:44:26 cellog Exp $
+ * @version $Id: functions.inc,v 1.129 2007/02/28 04:44:11 cellog Exp $
*/
@@ -1059,7 +1059,7 @@
case 'PEPr':
case 'Web Site':
$arr = get_package_mail('pearweb');
- $arr[0][] = PEAR_WEBMASTER_EMAIL;
+ $arr[0] .= ',' . PEAR_WEBMASTER_EMAIL;
return array($arr[0], PEAR_WEBMASTER_EMAIL);
case 'Documentation':
return array(PEAR_DOC_EMAIL, PEAR_DOC_EMAIL);