|
From: Benjamin C. <bc...@us...> - 2001-09-22 16:55:36
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv10163
Modified Files:
config.php configure_db include.php
Log Message:
Added bug CCs
Index: config.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/config.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- config.php 2001/09/15 15:54:03 1.10
+++ config.php 2001/09/22 16:55:33 1.11
@@ -62,6 +62,7 @@
define ('TBL_AUTH_PERM', TBL_PREFIX.'auth_perm');
define ('TBL_AUTH_USER', TBL_PREFIX.'auth_user');
define ('TBL_BUG', TBL_PREFIX.'bug');
+define ('TBL_BUG_CC', TBL_PREFIX.'bug_cc');
define ('TBL_BUG_GROUP', TBL_PREFIX.'bug_group');
define ('TBL_BUG_HISTORY', TBL_PREFIX.'bug_history');
define ('TBL_COMMENT', TBL_PREFIX.'comment');
Index: configure_db
===================================================================
RCS file: /cvsroot/phpbt/phpbt/configure_db,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- configure_db 2001/09/15 16:22:51 1.4
+++ configure_db 2001/09/22 16:55:33 1.5
@@ -15,6 +15,7 @@
generate_sql() {
cat $1 | sed "
s/TBL_ATTACHMENT/${TBL_PREFIX}attachment/g
+ s/TBL_BUG_CC/${TBL_PREFIX}bug_cc/g
s/TBL_BUG_GROUP/${TBL_PREFIX}bug_group/g
s/TBL_BUG_HISTORY/${TBL_PREFIX}bug_history/g
s/TBL_BUG/${TBL_PREFIX}bug/g
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- include.php 2001/09/18 03:36:33 1.55
+++ include.php 2001/09/22 16:55:33 1.56
@@ -345,6 +345,20 @@
$text .= "<option value=\"{$row['user_id']}\"$sel>{$row['login']}</option>";
}
break;
+ case 'bug_cc' :
+ $q->query('select b.user_id, login from '.TBL_BUG_CC.' b left join '.
+ TBL_AUTH_USER." using(user_id) where bug_id = $value");
+ while (list($uid, $user) = $q->grab()) {
+ $text .= "<option value=\"$uid\">".maskemail($user).'</option>';
+ }
+
+ // Pad the sucker
+ $text .= '<option value="" disabled>';
+ for ($i = 0; $i < 30; $i++) {
+ $text .= ' ';
+ }
+ $text .= '</option>';
+ break;
default :
$deadarray = $select[$box];
while(list($val,$item) = each($deadarray)) {
|