You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(34) |
Aug
(215) |
Sep
(180) |
Oct
(135) |
Nov
(105) |
Dec
(81) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(76) |
Feb
(22) |
Mar
(154) |
Apr
(149) |
May
(128) |
Jun
(94) |
Jul
(14) |
Aug
(24) |
Sep
(77) |
Oct
(52) |
Nov
(22) |
Dec
(6) |
| 2003 |
Jan
(4) |
Feb
(10) |
Mar
(6) |
Apr
(29) |
May
(10) |
Jun
(37) |
Jul
(39) |
Aug
(13) |
Sep
(23) |
Oct
(3) |
Nov
(7) |
Dec
(2) |
| 2004 |
Jan
|
Feb
(10) |
Mar
(4) |
Apr
|
May
(35) |
Jun
(4) |
Jul
(17) |
Aug
(6) |
Sep
(14) |
Oct
(18) |
Nov
(2) |
Dec
(14) |
| 2005 |
Jan
(9) |
Feb
(30) |
Mar
(6) |
Apr
|
May
(38) |
Jun
(23) |
Jul
(21) |
Aug
(76) |
Sep
(50) |
Oct
(51) |
Nov
(13) |
Dec
|
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:58:37
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10527/templates/default/admin Modified Files: group-edit.html grouplist.html Log Message: Removed the hardcoded "assignable" bit from TBL_AUTH_GROUP and instead added a new entry in TBL_AUTH_PERM named "Assignable". Index: group-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/group-edit.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- group-edit.html 20 Jul 2005 18:01:35 -0000 1.8 +++ group-edit.html 22 Aug 2005 19:58:26 -0000 1.9 @@ -1,6 +1,5 @@ <?php if (!isset($group_name)) $group_name = ''; - if (!isset($assignable)) $assignable = ''; if (!isset($group_id)) $group_id = ''; ?> <script type="text/javascript" language="JavaScript"> @@ -36,14 +35,6 @@ </tr> <tr> <td align="right" valign="top"> - Assignable: - </td> - <td> - <input type="checkbox" name="assignable" value="1" <?php if ($assignable > 0) echo 'checked'; ?>> - </td> - </tr> - <tr> - <td align="right" valign="top"> </td> <td> Index: grouplist.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/grouplist.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- grouplist.html 25 Oct 2004 12:07:03 -0000 1.8 +++ grouplist.html 22 Aug 2005 19:58:26 -0000 1.9 @@ -29,9 +29,6 @@ <a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?op=del&group_id=<?php echo $groups[$i]['group_id']; ?>" onClick="return confirm('<?php echo translate("This will remove all user assignments to this group and the group itself. Continue?"); ?>')"><?php echo translate("Delete"); ?></a> | <a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?op=purge&group_id=<?php echo $groups[$i]['group_id']; ?>" onClick="return confirm('<?php echo translate("This will remove all user assignments to this group. Continue?"); ?>')"><?php echo translate("Purge"); ?></a> <?php } ?> - <?php if($groups[$i]['assignable']) { ?> - | <?php echo translate("Assignable"); ?> - <?php } ?> </td> </tr> <?php } ?> |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:58:35
|
Update of /cvsroot/phpbt/phpbt/schemas In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10527/schemas Modified Files: mysql.in Log Message: Removed the hardcoded "assignable" bit from TBL_AUTH_GROUP and instead added a new entry in TBL_AUTH_PERM named "Assignable". Index: mysql.in =================================================================== RCS file: /cvsroot/phpbt/phpbt/schemas/mysql.in,v retrieving revision 1.46 retrieving revision 1.47 diff -u -r1.46 -r1.47 --- mysql.in 22 Aug 2005 19:44:47 -0000 1.46 +++ mysql.in 22 Aug 2005 19:58:25 -0000 1.47 @@ -19,7 +19,6 @@ group_id int(10) unsigned NOT NULL default '0', group_name varchar(80) NOT NULL default '', locked tinyint(1) unsigned NOT NULL default '0', - assignable tinyint(1) unsigned NOT NULL default '0', created_by int(10) unsigned NOT NULL default '0', created_date bigint(20) unsigned NOT NULL default '0', last_modified_by int(10) unsigned NOT NULL default '0', @@ -300,7 +299,7 @@ # Start off with three user levels... INSERT INTO TBL_AUTH_GROUP (group_id, group_name, locked) VALUES (1, 'Admin', 1); INSERT INTO TBL_AUTH_GROUP (group_id, group_name, locked) VALUES (2, 'User', 1); -INSERT INTO TBL_AUTH_GROUP (group_id, group_name, locked, assignable) VALUES (3, 'Developer', 1, 1); +INSERT INTO TBL_AUTH_GROUP (group_id, group_name, locked) VALUES (3, 'Developer', 1); create table TBL_AUTH_GROUP_seq (id int unsigned auto_increment not null primary key); insert into TBL_AUTH_GROUP_seq values (3); @@ -308,14 +307,17 @@ INSERT INTO TBL_AUTH_PERM (perm_id, perm_name) VALUES (1, 'Admin'); INSERT INTO TBL_AUTH_PERM (perm_id, perm_name) VALUES (2, 'Editbug'); INSERT INTO TBL_AUTH_PERM (perm_id, perm_name) VALUES (3, 'EditAssignment'); +INSERT INTO TBL_AUTH_PERM (perm_id, perm_name) VALUES (4, 'Assignable'); -# Admins can do all the admin stuff and users can edit bugs +# Admins can do all the admin stuff, users can edit bugs, and +# developers are users who can own bugs INSERT INTO TBL_GROUP_PERM (group_id, perm_id) VALUES (1, 1); INSERT INTO TBL_GROUP_PERM (group_id, perm_id) VALUES (2, 2); +INSERT INTO TBL_GROUP_PERM (group_id, perm_id) VALUES (3, 2); +INSERT INTO TBL_GROUP_PERM (group_id, perm_id) VALUES (3, 4); -# And user_id 1 is an admin and a user +# Insert user_id 1 into the admin group INSERT INTO TBL_USER_GROUP (user_id, group_id) VALUES (1, 1); -INSERT INTO TBL_USER_GROUP (user_id, group_id) VALUES (1, 2); # Add user's prefs as default values for all users defined so far (only admin) INSERT INTO TBL_USER_PREF (user_id) SELECT USER_ID FROM TBL_AUTH_USER; |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:58:34
|
Update of /cvsroot/phpbt/phpbt/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10527/admin Modified Files: group.php Log Message: Removed the hardcoded "assignable" bit from TBL_AUTH_GROUP and instead added a new entry in TBL_AUTH_PERM named "Assignable". Index: group.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/admin/group.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- group.php 25 Oct 2004 12:06:59 -0000 1.13 +++ group.php 22 Aug 2005 19:58:25 -0000 1.14 @@ -50,9 +50,9 @@ if ($error) { show_form($groupid, $error); return; } if (!$groupid) { - $db->query("insert into ".TBL_AUTH_GROUP." (group_id, group_name, created_by, created_date, last_modified_by, last_modified_date, assignable) values (".$db->nextId(TBL_AUTH_GROUP).", ".$db->quote(stripslashes($group_name)).", $u, $now, $u, $now, ". ((int)$assignable).')'); + $db->query("insert into ".TBL_AUTH_GROUP." (group_id, group_name, created_by, created_date, last_modified_by, last_modified_date) values (".$db->nextId(TBL_AUTH_GROUP).", ".$db->quote(stripslashes($group_name)).", $u, $now, $u, $now)"); } else { - $db->query("update ".TBL_AUTH_GROUP." set group_name = ".$db->quote(stripslashes($group_name)).", last_modified_by = $u, last_modified_date = $now, assignable = ".($assignable?1:0)." where group_id = '$groupid'"); + $db->query("update ".TBL_AUTH_GROUP." set group_name = ".$db->quote(stripslashes($group_name)).", last_modified_by = $u, last_modified_date = $now where group_id = '$groupid'"); } if ($use_js) { $t->render('edit-submit.html', '', 'wrap-popup.html'); |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:58:33
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10527/inc Modified Files: functions.php Log Message: Removed the hardcoded "assignable" bit from TBL_AUTH_GROUP and instead added a new entry in TBL_AUTH_PERM named "Assignable". Index: functions.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v retrieving revision 1.55 retrieving revision 1.56 diff -u -r1.55 -r1.56 --- functions.php 22 Aug 2005 19:44:46 -0000 1.55 +++ functions.php 22 Aug 2005 19:58:25 -0000 1.56 @@ -161,7 +161,7 @@ break; case 'owner': // Added the DISTINCT SQL modifier so we don't get duplicated users in the list. (Because of being in multiple groups with assignable rights.) - $rs = $db->query("select DISTINCT u.user_id, login from ".TBL_AUTH_USER." u, ".TBL_USER_GROUP." ug, ".TBL_AUTH_GROUP." g where u.active > 0 and u.user_id = ug.user_id and ug.group_id = g.group_id and g.assignable > 0 order by login"); + $rs = $db->query("select DISTINCT u.user_id, login from ".TBL_AUTH_USER." u, ".TBL_USER_GROUP." ug, ".TBL_GROUP_PERM." gp, ".TBL_AUTH_PERM." p where u.active > 0 and u.user_id = ug.user_id and ug.group_id = gp.group_id and gp.perm_id = p.perm_id and p.perm_name = 'Assignable' order by login"); while ($rs->fetchInto($row)) { // either singular matches, or array matches are acceptable if (($selected == $row['user_id']) || (is_array($selected) && in_array($row['user_id'], $selected))) { |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:58:33
|
Update of /cvsroot/phpbt/phpbt/inc/db In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10527/inc/db Modified Files: mysql.php Log Message: Removed the hardcoded "assignable" bit from TBL_AUTH_GROUP and instead added a new entry in TBL_AUTH_PERM named "Assignable". Index: mysql.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/db/mysql.php,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- mysql.php 22 Aug 2005 19:44:47 -0000 1.21 +++ mysql.php 22 Aug 2005 19:58:25 -0000 1.22 @@ -1,11 +1,11 @@ <?php $QUERY = array( 'admin-list-groups' => 'select ag.group_id, group_name, locked, '. - 'count(ug.group_id) as count, assignable '. + 'count(ug.group_id) as count '. 'from '.TBL_AUTH_GROUP.' ag '. 'left join '.TBL_USER_GROUP.' ug using (group_id) '. 'left join '.TBL_AUTH_USER.' using (user_id) '. - 'group by ag.group_id, group_name, locked, assignable '. + 'group by ag.group_id, group_name, locked '. 'order by %s %s', 'admin-list-oses' => 'select s.os_id, os_name, regex, sort_order, '. 'count(bug_id) as bug_count '. |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:44:58
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7041/templates/default/admin Modified Files: wrap.html Added Files: priority-edit.html prioritylist.html Log Message: RFE #759250 - Table Driven Priorities. --- NEW FILE: priority-edit.html --- <script type="text/javascript" language="JavaScript"> var nameString = '<?php echo translate("Please enter a name"); ?>'; var descString = '<?php echo translate("Please enter a description"); ?>'; function checkForm(frm) { if (frm.priority_name.value == '') { alert(nameString); frm.priority_name.focus(); return false; } if (frm.priority_desc.value == '') { alert(descString); frm.priority_desc.focus(); return false; } return true; } </script> <b><?php echo $page_title; ?> </b> <hr size="1"> <form method="post" onsubmit="return checkForm(this)"> <table border='0'> <?php if($error) { ?> <tr> <td colspan="2" class="error"> <?php echo $error; ?> </td> </tr> <?php } ?> <tr> <td align="right" valign="top"> <?php echo translate("Name"); ?>: </td> <td> <input type="text" size="20" maxlength="40" name="priority_name" value="<?php echo stripslashes(htmlspecialchars($priority_name)); ?>"> </td> </tr> <tr> <td align="right" valign="top"> <?php echo translate("Description"); ?>: </td> <td> <textarea name="priority_desc" cols="20" rows="5" wrap="virtual"><?php echo stripslashes(htmlspecialchars($priority_desc)); ?> </textarea> </td> </tr> <tr> <td align="right" valign="top"> <?php echo translate("Sort Order"); ?>: </td> <td> <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> </td> </tr> <tr> <td align="right" valign="top"> <?php echo translate("Row Color"); ?>: </td> <td> <input type="text" size="11" maxlength="10" name="priority_color" value="<?php echo $priority_color; ?>"> </td> </tr> <tr> <td align="right" valign="top"> </td> <td> <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> <input type="hidden" name="priority_id" value="<?php echo $priority_id; ?>"> <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> <input type="hidden" name="op" value="save"> </td> </tr> </table> <br> </form> --- NEW FILE: prioritylist.html --- <script language="JavaScript"> <!-- function popupPriority(id) { window.open('priority.php?op=edit&use_js=1&priority_id='+id, 'ewin', 'dependent=yes,width=350,height=300,scrollbars=1'); } // --> </script> <table border="0" width="100%"> <tr> <td valign="top"> <b> <?php echo $page_title; ?></b> - <a href="priority.php?op=edit&priority_id=0" onClick="popupPriority(0); return false;"><?php echo translate("Add new priority"); ?></a> <hr size="1"> <table class="bordertable" align="center"> <tr> <th class="<?php echo $headers['name']['class']; ?>"><a href="<?php echo $headers['name']['url']; ?>"><?php echo translate("Name"); ?></a></th> <th class="<?php echo $headers['description']['class']; ?>"><a href="<?php echo $headers['description']['url']; ?>"><?php echo translate("Description"); ?></a></th> <th class="<?php echo $headers['sortorder']['class']; ?>"><a href="<?php echo $headers['sortorder']['url']; ?>"><?php echo translate("Sort Order"); ?></a></th> <th><?php echo translate("Delete"); ?></th> </tr> <?php for ($i = 0, $count = count($priorities); $i < $count; $i++) { ?> <tr> <td><a href="priority.php?op=edit&priority_id=<?php echo $priorities[$i]['priority_id']; ?>" onClick="popupPriority(<?php echo $priorities[$i]['priority_id']; ?>); return false;"><?php echo stripslashes(htmlspecialchars($priorities[$i]['priority_name'])); ?></a></td> <td> <?php echo $priorities[$i]['priority_desc']; ?></td> <td align="center"><?php echo $priorities[$i]['sort_order']; ?></td> <td align="center"> <?php if(!$priorities[$i]['bug_count']) { ?> <a href="priority.php?op=del&priority_id=<?php echo $priorities[$i]['priority_id']; ?>" onClick="return confirm('<?php echo translate("Are you sure you want to delete this priority?"); ?>')"><?php echo translate("Delete"); ?></a> <?php } ?> </td> </tr> <?php } ?> </table> <?php include('pagination.html'); ?> <br> <div class="info"> <?php echo translate("Items with a Sort Order = 0 will not be selectable by users."); ?> <br> <?php echo translate("Only those items that have no bugs referencing them can be deleted."); ?> </div> </td> </tr> </table> Index: wrap.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/wrap.html,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- wrap.html 25 Oct 2004 12:07:03 -0000 1.24 +++ wrap.html 22 Aug 2005 19:44:47 -0000 1.25 @@ -31,6 +31,7 @@ <li><a href="status.php" class="navlink"><?php echo translate("Statuses"); ?></a></li> <li><a href="resolution.php" class="navlink"><?php echo translate("Resolutions"); ?></a></li> <li><a href="severity.php" class="navlink"><?php echo translate("Severities"); ?></a></li> + <li><a href="priority.php" class="navlink"><?php echo translate("Priorities"); ?></a></li> <li><a href="os.php" class="navlink"><?php echo translate("Operating Systems"); ?></a></li> <li><a href="database.php" class="navlink"><?php echo translate("Databases"); ?></a></li> <li><a href="site.php" class="navlink"><?php echo translate("Sites"); ?></a></li> |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:44:58
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7041 Modified Files: bug.php config-dist.php include.php install.php query.php Log Message: RFE #759250 - Table Driven Priorities. Index: bug.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/bug.php,v retrieving revision 1.139 retrieving revision 1.140 diff -u -r1.139 -r1.140 --- bug.php 20 Jul 2005 18:12:25 -0000 1.139 +++ bug.php 22 Aug 2005 19:44:46 -0000 1.140 @@ -120,7 +120,7 @@ $template_ext = false/*HTML_EMAIL*/ ? 'html' : 'txt'; $template = $newbug ? "bugemail-newbug.$template_ext" : "bugemail.$template_ext"; - foreach(array('title','url','priority') as $field) { + foreach(array('title','url') as $field) { if (isset($cf[$field])) { $db->query('insert into '.TBL_BUG_HISTORY.' (bug_id, changed_field, old_value, new_value, created_by, created_date) values ('. join(', ', array($buginfo['bug_id'], $db->quote($field), $db->quote(stripslashes($buginfo[$field])), $db->quote(stripslashes($cf[$field])), $u, $now)).")"); $t->assign(array( @@ -143,6 +143,7 @@ 'resolution' => TBL_RESOLUTION, 'database' => TBL_DATABASE, 'severity' => TBL_SEVERITY, + 'priority' => TBL_PRIORITY, 'os' => TBL_OS, 'version' => TBL_VERSION, 'database' => TBL_DATABASE, @@ -280,9 +281,6 @@ 'bugid' => $buginfo['bug_id'], 'siteroot' => INSTALL_URL, 'bugurl' => INSTALL_URL."/bug.php?op=show&bugid={$buginfo['bug_id']}", - 'priority' => $select['priority'][(!empty($cf['priority']) - ? $cf['priority'] : $buginfo['priority'])], - 'priority_stat' => !empty($cf['priority']) ? '!' : ' ', 'reporter' => $reporter, 'reporter_stat' => $reporterstat, 'assignedto' => $assignedto, Index: config-dist.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/config-dist.php,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- config-dist.php 4 Jun 2005 21:48:26 -0000 1.30 +++ config-dist.php 22 Aug 2005 19:44:46 -0000 1.31 @@ -54,6 +54,7 @@ define ('TBL_RESOLUTION', TBL_PREFIX.'resolution'); define ('TBL_SAVED_QUERY', TBL_PREFIX.'saved_query'); define ('TBL_SEVERITY', TBL_PREFIX.'severity'); +define ('TBL_PRIORITY', TBL_PREFIX.'priority'); define ('TBL_STATUS', TBL_PREFIX.'status'); define ('TBL_USER_GROUP', TBL_PREFIX.'user_group'); define ('TBL_USER_PERM', TBL_PREFIX.'user_perm'); Index: include.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/include.php,v retrieving revision 1.135 retrieving revision 1.136 diff -u -r1.135 -r1.136 --- include.php 20 Jul 2005 18:19:54 -0000 1.135 +++ include.php 22 Aug 2005 19:44:46 -0000 1.136 @@ -22,6 +22,8 @@ // ------------------------------------------------------------------------ // $Id$ +define('RAWERROR', true); + define('PHPBT_VERSION', '1.0rc6'); @ini_set("magic_quotes_runtime", 0); @ini_set("magic_quotes_sybase", 0); @@ -90,7 +92,7 @@ 'description' => 'Description', 'url' => 'URL', 'severity_name' => 'Severity', - 'priority' => 'Priority', + 'priority_name' => 'Priority', 'status_name' => 'Status', 'resolution_name' => 'Resolution', 'closed_in_version_name' => 'Closed in Version', @@ -111,7 +113,7 @@ ); $default_db_fields = array('bug_id', 'title', 'reporter', 'owner', - 'severity_name', 'priority', 'status_name', 'resolution_name'); + 'severity_name', 'priority_name', 'status_name', 'resolution_name'); // Template class Index: install.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/install.php,v retrieving revision 1.48 retrieving revision 1.49 diff -u -r1.48 -r1.49 --- install.php 20 Jul 2005 18:19:54 -0000 1.48 +++ install.php 22 Aug 2005 19:44:46 -0000 1.49 @@ -116,6 +116,7 @@ '/TBL_RESOLUTION/' => $_POST['tbl_prefix'].'resolution', '/TBL_SAVED_QUERY/' => $_POST['tbl_prefix'].'saved_query', '/TBL_SEVERITY/' => $_POST['tbl_prefix'].'severity', + '/TBL_PRIORITY/' => $_POST['tbl_prefix'].'priority', '/TBL_STATUS/' => $_POST['tbl_prefix'].'status', '/TBL_USER_GROUP/' => $_POST['tbl_prefix'].'user_group', '/TBL_USER_PERM/' => $_POST['tbl_prefix'].'user_perm', Index: query.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/query.php,v retrieving revision 1.101 retrieving revision 1.102 diff -u -r1.101 -r1.102 --- query.php 4 Jun 2005 16:11:16 -0000 1.101 +++ query.php 22 Aug 2005 19:44:46 -0000 1.102 @@ -196,8 +196,6 @@ return ($colvalue ? date(DATE_FORMAT, $colvalue) : ''); case 'lastmodifier' : return (!empty($colvalue) ? maskemail($colvalue) : ''); - case 'priority' : - return $select['priority'][$colvalue]; case 'reporter' : case 'owner' : case 'lastmodifier' : @@ -232,9 +230,6 @@ return '<div align="center">'. (!empty($colvalue) ? maskemail($colvalue) : '').'</div>'; break; - case 'priority' : - return '<div align="center">'.$select['priority'][$colvalue].'</div>'; - break; default : return '<div align="center">'. (!empty($colvalue) ? $colvalue : '').'</div>'; @@ -251,7 +246,7 @@ 'description' => 'description', 'url' => 'url', 'severity_name' => 'severity.severity_name', - 'priority' => 'priority', + 'priority_name' => 'priority.priority_name', 'status_name' => 'status.status_name', 'resolution_name' => 'resolution_name', 'reporter' => 'reporter.login as reporter', @@ -277,7 +272,7 @@ 'description' => 'description', 'url' => 'url', 'severity_name' => 'severity.sort_order', - 'priority' => 'b.priority', + 'priority_name' => 'priority.sort_order', 'status_name' => 'status.sort_order', 'owner' => 'owner', 'reporter' => 'reporter.login', @@ -338,7 +333,8 @@ $desired_fields = !empty($_SESSION['db_fields']) ? $_SESSION['db_fields'] : $default_db_fields; - $query_fields = array('bug_id as bug_link_id', 'severity.severity_color'); + $query_fields = array('bug_id as bug_link_id', + 'severity.severity_color', 'priority.priority_color'); foreach ($desired_fields as $field) { $query_fields[] = $query_db_fields[$field]; $field_titles[] = $all_db_fields[$field]; |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:44:58
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7041/templates/default Modified Files: buglist.html queryform-simple.html queryform.html Log Message: RFE #759250 - Table Driven Priorities. Index: buglist.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/buglist.html,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- buglist.html 22 Aug 2005 19:17:52 -0000 1.14 +++ buglist.html 22 Aug 2005 19:44:47 -0000 1.15 @@ -12,6 +12,8 @@ <?php for ($i = 0; $i < $bugcount; $i++) { ?> <?php if (USE_SEVERITY_COLOR) { ?> <tr class="bugrow" bgcolor="<?php echo $bugs[$i]['severity_color']; ?>"> + <?php } else if (USE_PRIORITY_COLOR) { ?> + <tr class="bugrow" bgcolor="<?php echo $bugs[$i]['priority_color']; ?>"> <?php } else { ?> <tr class="bugrow<?php echo ($i % 2 != 0) ? ' alt' : ''; ?>"> <?php } ?> Index: queryform-simple.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/queryform-simple.html,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- queryform-simple.html 5 Dec 2004 17:09:18 -0000 1.12 +++ queryform-simple.html 22 Aug 2005 19:44:47 -0000 1.13 @@ -95,7 +95,7 @@ <option value="status.sort_order"> <?php echo translate("Status"); ?> </option> - <option value="priority"> + <option value="priority.sort_order"> <?php echo translate("Priority"); ?> </option> </select> Index: queryform.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/queryform.html,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- queryform.html 5 Dec 2004 17:09:18 -0000 1.22 +++ queryform.html 22 Aug 2005 19:44:47 -0000 1.23 @@ -207,7 +207,7 @@ <option selected value="severity.sort_order"><?php echo translate("Severity"); ?></option> <option value="reporter.login"><?php echo translate("Reporter"); ?></option> <option value="status.sort_order"><?php echo translate("Status"); ?></option> - <option value="priority"><?php echo translate("Priority"); ?></option> + <option value="priority.sort_order"><?php echo translate("Priority"); ?></option> </select> <select name="sort"> <option selected value="asc"><?php echo translate("Ascending"); ?></option> |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:44:58
|
Update of /cvsroot/phpbt/phpbt/inc/db In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7041/inc/db Modified Files: mysql.php Log Message: RFE #759250 - Table Driven Priorities. Index: mysql.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/db/mysql.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- mysql.php 25 May 2005 18:04:48 -0000 1.20 +++ mysql.php 22 Aug 2005 19:44:47 -0000 1.21 @@ -30,6 +30,12 @@ 'group by s.severity_id, severity_name, severity_desc, severity_color, '. 'sort_order '. 'order by %s %s', + 'admin-list-priorities' => 'select p.priority_id, priority_name, '. + 'priority_desc, priority_color, sort_order, count(bug_id) as bug_count '. + 'from '.TBL_PRIORITY. ' p left join '.TBL_BUG.' b on b.priority = p.priority_id '. + 'group by p.priority_id, priority_name, priority_desc, priority_color, '. + 'sort_order '. + 'order by %s %s', 'admin-list-databases' => 'select d.database_id, database_name, '. 'sort_order, count(bug_id) as bug_count '. 'from '.TBL_DATABASE. ' d left join '.TBL_BUG.' using (database_id) '. @@ -57,15 +63,15 @@ 'where bug_id = %s and u.user_id = p.user_id and email_notices = 1', 'bug-printable' => 'select b.*, reporter.login as reporter, '. 'owner.login as owner, project_name, component_name, version_name, '. - 'severity_name, os_name, status_name, resolution_name '. + 'severity_name, priority_name, os_name, status_name, resolution_name '. 'from '.TBL_BUG.' b '. 'left join '.TBL_AUTH_USER.' owner on b.assigned_to = owner.user_id '. 'left join '.TBL_AUTH_USER.' reporter on b.created_by = reporter.user_id '. 'left join '.TBL_RESOLUTION.' r on b.resolution_id = r.resolution_id, '. TBL_SEVERITY.' sv, '.TBL_STATUS.' st, '.TBL_OS.' os, '. TBL_VERSION.' v, '. - TBL_COMPONENT.' c, '.TBL_PROJECT.' p '. - 'where bug_id = %s and b.project_id not in (%s) '. + TBL_PRIORITY.' priority, '.TBL_COMPONENT.' c, '.TBL_PROJECT.' p '. 'where bug_id = %s and b.project_id not in (%s) '. 'and b.severity_id = sv.severity_id '. + 'and b.priority = priority.priority_id '. 'and b.os_id = os.os_id and b.version_id = v.version_id '. 'and b.component_id = c.component_id and b.project_id = p.project_id '. 'and b.status_id = st.status_id', @@ -80,9 +86,10 @@ 'left join '.TBL_VERSION.' version2 on b.to_be_closed_in_version_id = version2.version_id '. 'left join '.TBL_VERSION.' version3 on b.closed_in_version_id = version3.version_id, '. TBL_SEVERITY.' severity, '.TBL_STATUS.' status, '.TBL_OS.' os, '. - TBL_VERSION.' version, '.TBL_COMPONENT.' component, '. + TBL_PRIORITY.' priority, '.TBL_VERSION.' version, '.TBL_COMPONENT.' component, '. TBL_PROJECT.' project, '.TBL_SITE.' site '. 'where b.severity_id = severity.severity_id '. + 'and b.priority = priority.priority_id '. 'and b.status_id = status.status_id and b.os_id = os.os_id '. 'and b.version_id = version.version_id '. 'and b.component_id = component.component_id '. @@ -96,10 +103,12 @@ 'left join '.TBL_AUTH_USER.' owner on b.assigned_to = owner.user_id '. 'left join '.TBL_AUTH_USER.' reporter on b.created_by = reporter.user_id '. 'left join '.TBL_RESOLUTION.' r on b.resolution_id = r.resolution_id, '. - TBL_SEVERITY.' sv, '.TBL_STATUS.' st, '.TBL_SITE.' site '. + TBL_SEVERITY.' sv, '.TBL_STATUS.' st, '.TBL_SITE.' site, '. + TBL_PRIORITY.' prio '. 'where bug_id = %s and b.project_id not in (%s) '. 'and b.site_id = site.site_id '. - 'and b.severity_id = sv.severity_id and b.status_id = st.status_id', + 'and b.severity_id = sv.severity_id and b.status_id = st.status_id ', + 'and b.priority = prio.priority_id', 'functions-bug-cc' => 'select b.user_id, login '. 'from '.TBL_BUG_CC.' b left join '. TBL_AUTH_USER.' using(user_id) '. 'where bug_id = %s', @@ -144,8 +153,10 @@ 'left join '.TBL_VERSION.' version2 on b.to_be_closed_in_version_id = version2.version_id '. 'left join '.TBL_VERSION.' version3 on b.closed_in_version_id = version3.version_id, '. TBL_SEVERITY.' severity, '.TBL_STATUS.' status, '.TBL_OS.' os, '.TBL_SITE.' site, '. - TBL_VERSION.' version, '.TBL_COMPONENT.' component, '.TBL_PROJECT.' project '. + TBL_VERSION.' version, '.TBL_COMPONENT.' component, '.TBL_PROJECT.' project, '. + TBL_PRIORITY.' priority '. 'where b.severity_id = severity.severity_id '. + 'and b.priority = priority.priority_id '. 'and b.status_id = status.status_id and b.os_id = os.os_id '. 'and b.site_id = site.site_id and b.version_id = version.version_id '. 'and b.component_id = component.component_id '. |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:44:58
|
Update of /cvsroot/phpbt/phpbt/schemas In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7041/schemas Modified Files: mysql.in Log Message: RFE #759250 - Table Driven Priorities. Index: mysql.in =================================================================== RCS file: /cvsroot/phpbt/phpbt/schemas/mysql.in,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- mysql.in 25 May 2005 18:04:48 -0000 1.45 +++ mysql.in 22 Aug 2005 19:44:47 -0000 1.46 @@ -216,6 +216,15 @@ PRIMARY KEY (severity_id) ) TYPE=MyISAM; +CREATE TABLE TBL_PRIORITY ( + priority_id int(10) unsigned NOT NULL default '0', + priority_name varchar(30) NOT NULL default '', + priority_desc text NOT NULL, + sort_order tinyint(3) unsigned NOT NULL default '0', + priority_color varchar(10) NOT NULL default '#FFFFFF', + PRIMARY KEY (priority_id) +) TYPE=MyISAM; + CREATE TABLE TBL_STATUS ( status_id int(10) unsigned NOT NULL default '0', status_name varchar(30) NOT NULL default '', @@ -320,6 +329,7 @@ INSERT INTO TBL_CONFIGURATION VALUES ('MASK_EMAIL','1','Should email addresses have . changed to ''dot'' and @ change to ''at''?','bool'); INSERT INTO TBL_CONFIGURATION VALUES ('HIDE_EMAIL','1','Should email addresses be hidden for those not logged in?','bool'); INSERT INTO TBL_CONFIGURATION VALUES ('USE_SEVERITY_COLOR','1','Should the query list use the severity colors as the row background color (like SourceForge)','bool'); +INSERT INTO TBL_CONFIGURATION VALUES ('USE_PRIORITY_COLOR','0','Should the query list use the priority colors as the row background color','bool'); INSERT INTO TBL_CONFIGURATION VALUES ('EMAIL_IS_LOGIN','1','Whether to use email addresses as logins','bool'); INSERT INTO TBL_CONFIGURATION VALUES ('STRICT_UPDATING', '0', 'Only the bug reporter, bug owner, managers, and admins can change a bug', 'bool'); INSERT INTO TBL_CONFIGURATION VALUES ('NEW_ACCOUNTS_DISABLED', '0', 'Only admins can create new user accounts - newaccount.php is disabled', 'bool'); @@ -395,6 +405,14 @@ create table TBL_SEVERITY_seq (id int unsigned auto_increment not null primary key); insert into TBL_SEVERITY_seq values (7); +INSERT INTO TBL_PRIORITY VALUES (1,'Low','Fix if possible',1,'#dadada'); +INSERT INTO TBL_PRIORITY VALUES (2,'Medium Low','Must fix before final',2,'#dad0d0'); +INSERT INTO TBL_PRIORITY VALUES (3,'Medium','Fix before next milestone (alpha, beta, etc.)',3,'#dac0c0'); +INSERT INTO TBL_PRIORITY VALUES (4,'Medium High','Fix as soon as possible',4,'#dab0b0'); +INSERT INTO TBL_PRIORITY VALUES (5,'High','Fix immediately',5,'#daaaaa'); +create table TBL_PRIORITY_seq (id int unsigned auto_increment not null primary key); +insert into TBL_PRIORITY_seq values (5); + INSERT INTO TBL_STATUS VALUES (1,'Unconfirmed','Reported but not confirmed',1, 1); INSERT INTO TBL_STATUS VALUES (2,'New','A new bug',2,1); INSERT INTO TBL_STATUS VALUES (3,'Assigned','Assigned to a developer',3,1); |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:44:57
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7041/inc Modified Files: functions.php Log Message: RFE #759250 - Table Driven Priorities. Index: functions.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- functions.php 20 Jul 2005 18:47:25 -0000 1.54 +++ functions.php 22 Aug 2005 19:44:46 -0000 1.55 @@ -49,14 +49,6 @@ $t->render('error.html', ''); } -$select['priority'] = array( - 1 => '1 - Low', - 2 => '2', - 3 => '3 - Medium', - 4 => '4', - 5 => '5 - High' - ); - /// /// Build a select box with the item matching $value selected function build_select($box, $selected = '', $project = 0) { @@ -70,6 +62,7 @@ 'status' => TBL_STATUS, 'resolution' => TBL_RESOLUTION, 'severity' => TBL_SEVERITY, + 'priority' => TBL_PRIORITY, 'version' => TBL_VERSION, 'database' => TBL_DATABASE, 'site' => TBL_SITE @@ -83,6 +76,7 @@ $queries = array( 'group' => $querystart.' where group_name <> \'User\' order by group_name', 'severity' => $querystart.$querymid, + 'priority' => $querystart.$querymid, 'site' => $querystart.$querymid, 'status' => $querystart.$querymid, 'resolution' => $querystart.$querymid, @@ -133,6 +127,7 @@ break; case 'database': $text = '<option value="0">None</option>'; case 'severity': + case 'priority': case 'status': case 'resolution': case 'project': |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:44:57
|
Update of /cvsroot/phpbt/phpbt/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7041/admin Added Files: priority.php Log Message: RFE #759250 - Table Driven Priorities. --- NEW FILE: priority.php --- <?php // priority.php - Interface to the priority table // ------------------------------------------------------------------------ // Copyright (c) 2005 The phpBugTracker Group // ------------------------------------------------------------------------ // This file is part of phpBugTracker // // phpBugTracker is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // phpBugTracker is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with phpBugTracker; if not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // ------------------------------------------------------------------------ chdir('..'); define('TEMPLATE_PATH', 'admin'); include 'include.php'; function del_item($priorityid = 0) { global $db, $me; if ($priorityid) { // Make sure we are going after a valid record $itemexists = $db->getOne('select count(*) from '.TBL_PRIORITY." where priority_id = $priorityid"); // Are there any bugs tied to this one? $bugcount = $db->getOne('select count(*) from '.TBL_BUG." where priority_id = $priorityid"); if ($itemexists and !$bugcount) { $db->query('delete from '.TBL_PRIORITY." where priority_id = $priorityid"); } } header("Location: $me?"); } function do_form($priorityid = 0) { global $db, $me, $t; extract($_POST); $error = ''; // Validation if (!$priority_name = trim($priority_name)) $error = translate("Please enter a name"); elseif (!$priority_desc = trim($priority_desc)) $error = translate("Please enter a description"); if ($error) { show_form($priorityid, $error); return; } if (empty($sort_order)) $sort_order = 0; if (!$priorityid) { $db->query("insert into ".TBL_PRIORITY." (priority_id, priority_name, priority_desc, sort_order, priority_color) values (".$db->nextId(TBL_PRIORITY).', '.$db->quote(stripslashes($priority_name)).', '.$db->quote(stripslashes($priority_desc)).", $sort_order, ".$db->quote(stripslashes($priority_color)).')'); } else { $db->query("update ".TBL_PRIORITY." set priority_name = ".$db->quote(stripslashes($priority_name)).', priority_desc = '.$db->quote(stripslashes($priority_desc)).", sort_order = $sort_order, priority_color = ".$db->quote(stripslashes($priority_color))." where priority_id = $priority_id"); } if ($use_js) { $t->render('edit-submit.html'); } else { header("Location: $me?"); } } function show_form($priorityid = 0, $error = '') { global $db, $me, $t; if ($priorityid && !$error) { $t->assign($db->getRow("select * from ".TBL_PRIORITY." where priority_id = '$priorityid'")); } else { $t->assign($_POST); } $t->assign('error', $error); $t->render('priority-edit.html', translate("Edit Priority"), !empty($_REQUEST['use_js']) ? 'wrap-popup.html' : 'wrap.html'); } function list_items($priorityid = 0, $error = '') { global $me, $db, $t, $QUERY; if (empty($_GET['order'])) { $order = 'sort_order'; $sort = 'asc'; } else { $order = $_GET['order']; $sort = $_GET['sort']; } $page = isset($_GET['page']) ? $_GET['page'] : 0; $nr = $db->getOne("select count(*) from ".TBL_PRIORITY); list($selrange, $llimit) = multipages($nr, $page, "order=$order&sort=$sort"); $t->assign('priorities', $db->getAll($db->modifyLimitQuery( sprintf($QUERY['admin-list-priorities'], $order, $sort), $llimit, $selrange))); $headers = array( 'priorityid' => 'priority_id', 'name' => 'priority_name', 'description' => 'priority_desc', 'sortorder' => 'sort_order', 'color' => 'priority_color'); sorting_headers($me, $headers, $order, $sort); $t->render('prioritylist.html', translate("Priority List")); } $perm->check('Admin'); if (isset($_REQUEST['op'])) { switch($_REQUEST['op']) { case 'add' : list_items(); break; case 'edit' : show_form($_GET['priority_id']); break; case 'del' : del_item($_GET['priority_id']); break; case 'save' : do_form($_POST['priority_id']); } } else list_items(); ?> |
|
From: Ulf E. <ulf...@us...> - 2005-08-22 19:18:00
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32348 Modified Files: buglist.html Log Message: Fixes bug #1262359 - Removing bug row onclick to avoid navigating away from the bug list when ctrl-clicking --- also when USE_SEVERITY_COLOR == true Index: buglist.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/buglist.html,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- buglist.html 19 Aug 2005 12:32:56 -0000 1.13 +++ buglist.html 22 Aug 2005 19:17:52 -0000 1.14 @@ -11,7 +11,7 @@ <?php } else { ?> <?php for ($i = 0; $i < $bugcount; $i++) { ?> <?php if (USE_SEVERITY_COLOR) { ?> - <tr class="bugrow" bgcolor="<?php echo $bugs[$i]['severity_color']; ?>" onclick="viewbug(<?php echo "{$bugs[$i]['bug_link_id']}, $i"; ?>)"> + <tr class="bugrow" bgcolor="<?php echo $bugs[$i]['severity_color']; ?>"> <?php } else { ?> <tr class="bugrow<?php echo ($i % 2 != 0) ? ' alt' : ''; ?>"> <?php } ?> |
|
From: Benjamin C. <bc...@us...> - 2005-08-19 12:33:05
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14338/templates/default Modified Files: buglist.html Log Message: Fixes bug #1262359 - Removing bug row onclick to avoid navigating away from the bug list when ctrl-clicking Index: buglist.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/buglist.html,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- buglist.html 19 Jul 2005 20:12:31 -0000 1.12 +++ buglist.html 19 Aug 2005 12:32:56 -0000 1.13 @@ -1,8 +1,3 @@ -<script language='javascript'> - function viewbug(a,b) { - self.location.href='bug.php?op=show&bugid='+a+'&pos='+b; - } -</script> <table class="bordertable" align="center" style="width: 100%"> <tr> <?php for ($i = 0, $colcount = count($db_fields); $i < $colcount; $i++) { @@ -18,7 +13,7 @@ <?php if (USE_SEVERITY_COLOR) { ?> <tr class="bugrow" bgcolor="<?php echo $bugs[$i]['severity_color']; ?>" onclick="viewbug(<?php echo "{$bugs[$i]['bug_link_id']}, $i"; ?>)"> <?php } else { ?> - <tr class="bugrow<?php echo ($i % 2 != 0) ? ' alt' : ''; ?>" onclick="viewbug(<?php echo "{$bugs[$i]['bug_link_id']}, $i"; ?>)"> + <tr class="bugrow<?php echo ($i % 2 != 0) ? ' alt' : ''; ?>"> <?php } ?> <?php foreach ($bugs[$i] as $var => $val) { |
|
From: Benjamin C. <bc...@us...> - 2005-08-03 12:32:45
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12810 Modified Files: CHANGELOG Log Message: Index: CHANGELOG =================================================================== RCS file: /cvsroot/phpbt/phpbt/CHANGELOG,v retrieving revision 1.69 retrieving revision 1.70 diff -u -r1.69 -r1.70 --- CHANGELOG 1 Nov 2004 14:00:22 -0000 1.69 +++ CHANGELOG 3 Aug 2005 12:32:31 -0000 1.70 @@ -1,4 +1,4 @@ --- 1.0 -- +-- 1.0 -- 3 Aug 2005 : Added links from project summary on home page (Phil Davis). : Added display of the bug ids a bug blocks. : Allow users to suppress the update email when changing a bug. |
|
From: Benjamin C. <php...@be...> - 2005-07-21 03:58:39
|
I have closed these bugs and have given you permissions on all the trackers. Thanks for the commits! Ulf Erikson wrote: > * Ulf Erikson [2005-07-18 20:48]: > >> There is a number of bugs where the reporter have added a suggested >> way to fix the problem. None of them seem to contain any comments as >> to whether the fix is good enough or what would be needed to make it >> good enough for inclusion. Please help those who wish to help.. > > > I have committed some of these now. Please close the corresponding > trackers. > > /Ulf > >> 1191802 >> French translation >> >> * contains fix ! > > > This one is about v0.9.1 -> too old > >> 1025785 >> Unable to open attachment >> >> * contains fix ! > > > Committed. > >> 1023117 >> Problem with stated attachment size >> >> * contains fix ! > > > This one was already committed. > >> 827095 >> incorrect 8-bit subject in sented messages >> >> * contains fix ! > > > Committed. > >> 803129 >> Downloading Attachments when using SSL fails >> >> * contains fix for IE error > > > This one was already committed. Which also fixed bug 803128 > >> 803128 >> Attachments download as attachment.php >> >> * contains fix ! > > > This bug was already fixed by the fix for bug 803129 > >> 786213 >> Warning if ini_set has been disabled for security reasons >> >> * contains fix ! > > > Committed. > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > phpbt-dev mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpbt-dev |
|
From: Ulf E. <ulf...@fa...> - 2005-07-20 18:53:45
|
* Ulf Erikson [2005-07-18 20:48]: > There is a number of bugs where the reporter have added a suggested way > to fix the problem. None of them seem to contain any comments as to > whether the fix is good enough or what would be needed to make it good > enough for inclusion. Please help those who wish to help.. I have committed some of these now. Please close the corresponding trackers. /Ulf > 1191802 > French translation > > * contains fix ! This one is about v0.9.1 -> too old > 1025785 > Unable to open attachment > > * contains fix ! Committed. > 1023117 > Problem with stated attachment size > > * contains fix ! This one was already committed. > 827095 > incorrect 8-bit subject in sented messages > > * contains fix ! Committed. > 803129 > Downloading Attachments when using SSL fails > > * contains fix for IE error This one was already committed. Which also fixed bug 803128 > 803128 > Attachments download as attachment.php > > * contains fix ! This bug was already fixed by the fix for bug 803129 > 786213 > Warning if ini_set has been disabled for security reasons > > * contains fix ! Committed. |
|
From: Ulf E. <ulf...@us...> - 2005-07-20 18:48:15
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8392 Modified Files: attachment.php Log Message: Bug [ 1025785 ] Unable to open attachment. Reported by daveR, patched by rjmthezonenet. Index: attachment.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/attachment.php,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- attachment.php 28 May 2005 18:11:52 -0000 1.24 +++ attachment.php 20 Jul 2005 18:48:01 -0000 1.25 @@ -170,8 +170,9 @@ header("Content-Disposition: attachment; filename=\"$base\""); header("Content-Type: $mimetype"); header("Connection: close"); - header("Pragma: nocache"); - header("Expires: 0 "); +// header("Pragma: nocache"); +// header("Expires: 0 "); + header("Cache-Control: max-age=60"); @readfile($filename); exit; } |
|
From: Ulf E. <ulf...@us...> - 2005-07-20 18:47:38
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8180/inc Modified Files: functions.php Log Message: Bug [ 827095 ] incorrect 8-bit subject in sented messages. Reported and patched by Alex Samorukov. Index: functions.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- functions.php 4 Jun 2005 16:11:16 -0000 1.53 +++ functions.php 20 Jul 2005 18:47:25 -0000 1.54 @@ -593,6 +593,8 @@ function qp_mail($to, $subject = 'No subject', $body, $headers = '') { global $STRING; + $subject="=?".CHARSET."?B?".base64_encode($subject)."?="; + if ($headers != '') { $headers .= "\n"; // There have to be no newline at the end of $headers |
|
From: Ulf E. <ulf...@us...> - 2005-07-20 18:20:05
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1320 Modified Files: install.php include.php Log Message: Bug [ 786213 ] Warning if ini_set has been disabled for security reasons. Silence warnings from ini_set per request by Kim Hornung Index: install.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/install.php,v retrieving revision 1.47 retrieving revision 1.48 diff -u -r1.47 -r1.48 --- install.php 19 Jul 2005 19:25:36 -0000 1.47 +++ install.php 20 Jul 2005 18:19:54 -0000 1.48 @@ -86,8 +86,8 @@ 'oci8' => 'Oracle 8.1.x', 'pgsql' => 'PostgreSQL'); -ini_set("magic_quotes_runtime", 0); // runtime quotes will kill the included sql -ini_set("magic_quotes_sybase", 0); +@ini_set("magic_quotes_runtime", 0); // runtime quotes will kill the included sql +@ini_set("magic_quotes_sybase", 0); if (!empty($_POST)) { $tables = array( Index: include.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/include.php,v retrieving revision 1.134 retrieving revision 1.135 diff -u -r1.134 -r1.135 --- include.php 19 Jul 2005 19:25:36 -0000 1.134 +++ include.php 20 Jul 2005 18:19:54 -0000 1.135 @@ -23,8 +23,8 @@ // $Id$ define('PHPBT_VERSION', '1.0rc6'); -ini_set("magic_quotes_runtime", 0); -ini_set("magic_quotes_sybase", 0); +@ini_set("magic_quotes_runtime", 0); +@ini_set("magic_quotes_sybase", 0); @ini_set("session.save_handler", "files"); if (file_exists('config.php')) { |
|
From: Ulf E. <ulf...@us...> - 2005-07-20 18:12:42
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31468 Modified Files: bug.php Log Message: Update of the old "Printable View"-link. Index: bug.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/bug.php,v retrieving revision 1.138 retrieving revision 1.139 diff -u -r1.138 -r1.139 --- bug.php 28 May 2005 18:11:52 -0000 1.138 +++ bug.php 20 Jul 2005 18:12:25 -0000 1.139 @@ -547,7 +547,7 @@ } function show_bug_printable($bugid) { - global $db, $me, $t, $select, $QUERY, $restricted_projects; + global $db, $me, $t, $QUERY, $restricted_projects; if (!is_numeric($bugid) or !$row = $db->getRow(sprintf($QUERY['bug-printable'], $bugid, @@ -557,14 +557,19 @@ } $t->assign($row); + + $bug_dependencies = $db->getAll("select b.bug_id, s.bug_open from ".TBL_BUG_DEPENDENCY." d, ".TBL_BUG." b, ".TBL_STATUS." s where d.bug_id = $bugid and d.depends_on = b.bug_id and b.status_id = s.status_id"); + + $bug_blocks = $db->getAll("select b.bug_id, s.bug_open from ".TBL_BUG_DEPENDENCY." d, ".TBL_BUG." b, ".TBL_STATUS." s where d.depends_on = $bugid and d.bug_id = b.bug_id and b.status_id = s.status_id"); + $t->assign(array( - 'bug_dependencies' => @join(', ', $db->getCol('select '.db_concat("'<a href=\"$me?op=show&bugid='", 'depends_on', '\'">#\'','depends_on', '\'</a>\'').' from '.TBL_BUG_DEPENDENCY." where bug_id = $bugid")), - 'rev_bug_dependencies' => @join(', ', $db->getCol('select '.db_concat("'<a href=\"$me?op=show&bugid='", 'bug_id', '\'">#\'','bug_id', '\'</a>\'').' from '.TBL_BUG_DEPENDENCY." where depends_on = $bugid")) + 'bug_dependencies' => $bug_dependencies, + 'bug_blocks' => $bug_blocks )); // Show the comments $t->assign('comments', $db->getAll('select comment_text, c.created_date, login from '.TBL_COMMENT.' c, '.TBL_AUTH_USER." where bug_id = $bugid and c.created_by = user_id order by c.created_date")); - $t->render('bugdisplay-printable.html', translate("View Bug")); + $t->render('bugdisplay-printable.html', translate("View Bug"), 'wrap-popup.html'); } /// |
|
From: Ulf E. <ulf...@us...> - 2005-07-20 18:12:42
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31468/templates/default Modified Files: bugdisplay.html Log Message: Update of the old "Printable View"-link. Index: bugdisplay.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v retrieving revision 1.48 retrieving revision 1.49 diff -u -r1.48 -r1.49 --- bugdisplay.html 22 Jan 2005 16:08:41 -0000 1.48 +++ bugdisplay.html 20 Jul 2005 18:12:34 -0000 1.49 @@ -239,6 +239,9 @@ <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=vote&bugid=<?php echo $bug_id; ?>" onClick="if (<?php echo $already_voted; ?>) { alert ('<?php echo translate("You have already voted for this bug"); ?>'); return false; }"><?php echo translate("Vote for this bug"); ?></a></b> | <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=viewvotes&bugid=<?php echo $bug_id; ?>"><?php echo translate("View votes"); ?> (<?php echo $num_votes; ?>)</a></b> | <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=history&bugid=<?php echo $bug_id; ?>"><?php echo translate("View bug history"); ?></a></b> +<!-- + | <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=print&bugid=<?php echo $bug_id; ?>"><?php echo translate("Printable View"); ?></a></b> +--> </div> <br><br> <table border="0" cellpadding="2" cellspacing="0" width="100%"> |
|
From: Ulf E. <ulf...@us...> - 2005-07-20 18:01:47
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28833/admin Modified Files: component-edit.html database-edit.html group-edit.html os-edit.html project-add.html resolution-edit.html severity-edit.html site-edit.html status-edit.html user-edit.html version-edit.html Log Message: Silencing some "undefined variable/index" warnings. Index: component-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/component-edit.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- component-edit.html 25 Oct 2004 12:07:03 -0000 1.8 +++ component-edit.html 20 Jul 2005 18:01:35 -0000 1.9 @@ -1,3 +1,10 @@ +<?php + if (!isset($component_name)) $component_name = ''; + if (!isset($component_desc)) $component_desc = ''; + if (!isset($owner)) $owner = ''; + if (!isset($active)) $active = ''; + if (!isset($component_id)) $component_id = ''; +?> <script language="JavaScript"> var nameString = '<?php echo translate("Please enter a name"); ?>'; var descString = '<?php echo translate("Please enter a description"); ?>'; Index: database-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/database-edit.html,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- database-edit.html 25 Oct 2004 12:07:03 -0000 1.5 +++ database-edit.html 20 Jul 2005 18:01:35 -0000 1.6 @@ -1,53 +1,58 @@ -<script type="text/javascript" language="JavaScript"> - var nameString = '<?php echo translate("Please enter a name"); ?>'; - - function checkForm(frm) { - if (frm.database_name.value == '') { - alert(nameString); - frm.database_name.focus(); - return false; - } - return true; - } -</script> - -<b><?php echo $page_title; ?> </b> -<hr size="1"> -<form method="post" onsubmit="return checkForm(this)"> - <table border='0'> - <?php if ($error) { ?> - <tr> - <td colspan="2" class="error"> - <?php echo $error; ?> - </td> - </tr> - <?php } ?> - <tr> - <td align="right" valign="top"> - <?php echo translate("Name"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="30" name="database_name" value="<?php echo stripslashes(htmlspecialchars($database_name)); ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Sort Order"); ?>: - </td> - <td> - <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - - </td> - <td> - <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> - <input type="hidden" name="database_id" value="<?php echo $database_id; ?>"> - <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> - <input type="hidden" name="op" value="save"> - </td> - </tr> - </table> -</form> +<?php + if (!isset($database_name)) $database_name = ''; + if (!isset($sort_order)) $sort_order = ''; + if (!isset($database_id)) $database_id = ''; +?> +<script type="text/javascript" language="JavaScript"> + var nameString = '<?php echo translate("Please enter a name"); ?>'; + + function checkForm(frm) { + if (frm.database_name.value == '') { + alert(nameString); + frm.database_name.focus(); + return false; + } + return true; + } +</script> + +<b><?php echo $page_title; ?> </b> +<hr size="1"> +<form method="post" onsubmit="return checkForm(this)"> + <table border='0'> + <?php if ($error) { ?> + <tr> + <td colspan="2" class="error"> + <?php echo $error; ?> + </td> + </tr> + <?php } ?> + <tr> + <td align="right" valign="top"> + <?php echo translate("Name"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="30" name="database_name" value="<?php echo stripslashes(htmlspecialchars($database_name)); ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Sort Order"); ?>: + </td> + <td> + <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + + </td> + <td> + <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> + <input type="hidden" name="database_id" value="<?php echo $database_id; ?>"> + <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> + <input type="hidden" name="op" value="save"> + </td> + </tr> + </table> +</form> Index: group-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/group-edit.html,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- group-edit.html 25 Oct 2004 12:07:03 -0000 1.7 +++ group-edit.html 20 Jul 2005 18:01:35 -0000 1.8 @@ -1,53 +1,58 @@ -<script type="text/javascript" language="JavaScript"> - var nameString = '<?php echo translate("Please enter a name"); ?>'; - - function checkForm(frm) { - if (frm.group_name.value == '') { - alert(nameString); - frm.group_name.focus(); - return false; - } - return true; - } -</script> -<b><?php echo $page_title; ?></b> -<hr size="1"> -<form method="post" onsubmit="return checkForm(this)"> - <table border='0'> - <?php if (!empty($error)) { ?> - <tr> - <td colspan="2" class="error"> - <?php echo $error; ?> - </td> - </tr> - <?php } ?> - <tr> - <td align="right" valign="top"> - Name: - </td> - <td> - <input type="text" size="20" maxlength="40" name="group_name" value="<?php echo stripslashes(htmlspecialchars($group_name)); ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - Assignable: - </td> - <td> - <input type="checkbox" name="assignable" value="1" <?php if ($assignable > 0) echo 'checked'; ?>> - </td> - </tr> - <tr> - <td align="right" valign="top"> - - </td> - <td> - <input type='submit' value='<?php echo translate("Submit"); ?>'> - <input type="hidden" name="op" value="save"> - <input type="hidden" name="group_id" value="<?php echo $group_id; ?>"> - <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> - </td> - </tr> - </table> -</form> - +<?php + if (!isset($group_name)) $group_name = ''; + if (!isset($assignable)) $assignable = ''; + if (!isset($group_id)) $group_id = ''; +?> +<script type="text/javascript" language="JavaScript"> + var nameString = '<?php echo translate("Please enter a name"); ?>'; + + function checkForm(frm) { + if (frm.group_name.value == '') { + alert(nameString); + frm.group_name.focus(); + return false; + } + return true; + } +</script> +<b><?php echo $page_title; ?></b> +<hr size="1"> +<form method="post" onsubmit="return checkForm(this)"> + <table border='0'> + <?php if (!empty($error)) { ?> + <tr> + <td colspan="2" class="error"> + <?php echo $error; ?> + </td> + </tr> + <?php } ?> + <tr> + <td align="right" valign="top"> + Name: + </td> + <td> + <input type="text" size="20" maxlength="40" name="group_name" value="<?php echo stripslashes(htmlspecialchars($group_name)); ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + Assignable: + </td> + <td> + <input type="checkbox" name="assignable" value="1" <?php if ($assignable > 0) echo 'checked'; ?>> + </td> + </tr> + <tr> + <td align="right" valign="top"> + + </td> + <td> + <input type='submit' value='<?php echo translate("Submit"); ?>'> + <input type="hidden" name="op" value="save"> + <input type="hidden" name="group_id" value="<?php echo $group_id; ?>"> + <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> + </td> + </tr> + </table> +</form> + Index: os-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/os-edit.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- os-edit.html 25 Oct 2004 12:07:03 -0000 1.6 +++ os-edit.html 20 Jul 2005 18:01:35 -0000 1.7 @@ -1,60 +1,66 @@ -<script type="text/javascript" language="JavaScript"> - var nameString = '<?php echo translate("Please enter a name"); ?>'; - - function checkForm(frm) { - if (frm.os_name.value == '') { - alert(nameString); - frm.os_name.focus(); - return false; - } - return true; - } -</script> -<b><?php echo $page_title; ?></b> -<hr size="1"> -<form method="post" onsubmit="return checkForm(this)"> - <table border='0'> - <?php if (!empty($error)) { ?> - <tr> - <td colspan="2" class="error"> - <?php echo $error; ?> - </td> - </tr> - <?php } ?> - <tr> - <td align="right" valign="top"> - <?php echo translate("Name"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="os_name" value="<?php echo $os_name; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Regex"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="regex" value="<?php echo $regex; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Sort Order"); ?>: - </td> - <td> - <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - - </td> - <td> - <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> - <input type="hidden" name="op" value="save"> - <input type="hidden" name="os_id" value="<?php echo $os_id; ?>"> - <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> - </td> - </tr> - </table> -</form> +<?php + if (!isset($os_name)) $os_name = ''; + if (!isset($regex)) $regex = ''; + if (!isset($sort_order)) $sort_order = ''; + if (!isset($os_id)) $os_id = ''; +?> +<script type="text/javascript" language="JavaScript"> + var nameString = '<?php echo translate("Please enter a name"); ?>'; + + function checkForm(frm) { + if (frm.os_name.value == '') { + alert(nameString); + frm.os_name.focus(); + return false; + } + return true; + } +</script> +<b><?php echo $page_title; ?></b> +<hr size="1"> +<form method="post" onsubmit="return checkForm(this)"> + <table border='0'> + <?php if (!empty($error)) { ?> + <tr> + <td colspan="2" class="error"> + <?php echo $error; ?> + </td> + </tr> + <?php } ?> + <tr> + <td align="right" valign="top"> + <?php echo translate("Name"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="os_name" value="<?php echo $os_name; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Regex"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="regex" value="<?php echo $regex; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Sort Order"); ?>: + </td> + <td> + <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + + </td> + <td> + <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> + <input type="hidden" name="op" value="save"> + <input type="hidden" name="os_id" value="<?php echo $os_id; ?>"> + <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> + </td> + </tr> + </table> +</form> Index: project-add.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/project-add.html,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- project-add.html 25 Oct 2004 12:07:03 -0000 1.7 +++ project-add.html 20 Jul 2005 18:01:35 -0000 1.8 @@ -1,3 +1,13 @@ +<?php + if (!isset($project_name)) $project_name = ''; + if (!isset($project_desc)) $project_desc = ''; + if (!isset($version_error)) $version_error = ''; + if (!isset($version_name)) $version_name = ''; + if (!isset($component_error)) $component_error = ''; + if (!isset($component_desc)) $component_desc = ''; + if (!isset($component_name)) $component_name = ''; + if (!isset($owner)) $owner = ''; +?> <script language="JavaScript"> <!-- var nameString = '<?php echo translate("Please enter a name"); ?>'; Index: resolution-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/resolution-edit.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- resolution-edit.html 25 Oct 2004 12:07:03 -0000 1.6 +++ resolution-edit.html 20 Jul 2005 18:01:35 -0000 1.7 @@ -1,68 +1,74 @@ -<script type="text/javascript" language="JavaScript"> - var nameString = '<?php echo translate("Please enter a name"); ?>'; - var descString = '<?php echo translate("Please enter a description"); ?>'; - - function checkForm(frm) { - if (frm.resolution_name.value == '') { - alert(nameString); - frm.resolution_name.focus(); - return false; - } - if (frm.resolution_desc.value == '') { - alert(descString); - frm.resolution_desc.focus(); - return false; - } - return true; - } -</script> -<b><?php echo $page_title; ?> </b> -<hr size="1"> -<form method="post" onsubmit="return checkForm(this)"> - <table border='0'> - <?php if($error) { ?> - <tr> - <td colspan="2" class="error"> - <?php echo $error; ?> - </td> - </tr> - <?php } ?> - <tr> - <td align="right" valign="top"> - <?php echo translate("Name"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="resolution_name" value="<?php echo stripslashes(htmlspecialchars($resolution_name)); ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Description"); ?>: - </td> - <td> - <textarea name="resolution_desc" cols="20" rows="5" wrap="virtual"> - <?php echo stripslashes(htmlspecialchars($resolution_desc)); ?> - </textarea> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Sort Order"); ?>: - </td> - <td> - <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - - </td> - <td> - <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> - <input type="hidden" name="resolution_id" value="<?php echo $resolution_id; ?>"> - <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> - <input type="hidden" name="op" value="save"> - </td> - </tr> - </table> -</form> +<?php + if (!isset($resolution_name)) $resolution_name = ''; + if (!isset($resolution_desc)) $resolution_desc = ''; + if (!isset($sort_order)) $sort_order = ''; + if (!isset($resolution_id)) $resolution_id = ''; +?> +<script type="text/javascript" language="JavaScript"> + var nameString = '<?php echo translate("Please enter a name"); ?>'; + var descString = '<?php echo translate("Please enter a description"); ?>'; + + function checkForm(frm) { + if (frm.resolution_name.value == '') { + alert(nameString); + frm.resolution_name.focus(); + return false; + } + if (frm.resolution_desc.value == '') { + alert(descString); + frm.resolution_desc.focus(); + return false; + } + return true; + } +</script> +<b><?php echo $page_title; ?> </b> +<hr size="1"> +<form method="post" onsubmit="return checkForm(this)"> + <table border='0'> + <?php if($error) { ?> + <tr> + <td colspan="2" class="error"> + <?php echo $error; ?> + </td> + </tr> + <?php } ?> + <tr> + <td align="right" valign="top"> + <?php echo translate("Name"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="resolution_name" value="<?php echo stripslashes(htmlspecialchars($resolution_name)); ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Description"); ?>: + </td> + <td> + <textarea name="resolution_desc" cols="20" rows="5" wrap="virtual"> + <?php echo stripslashes(htmlspecialchars($resolution_desc)); ?> + </textarea> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Sort Order"); ?>: + </td> + <td> + <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + + </td> + <td> + <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> + <input type="hidden" name="resolution_id" value="<?php echo $resolution_id; ?>"> + <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> + <input type="hidden" name="op" value="save"> + </td> + </tr> + </table> +</form> Index: severity-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/severity-edit.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- severity-edit.html 25 Oct 2004 12:07:03 -0000 1.6 +++ severity-edit.html 20 Jul 2005 18:01:35 -0000 1.7 @@ -1,77 +1,84 @@ -<script type="text/javascript" language="JavaScript"> - var nameString = '<?php echo translate("Please enter a name"); ?>'; - var descString = '<?php echo translate("Please enter a description"); ?>'; - - function checkForm(frm) { - if (frm.severity_name.value == '') { - alert(nameString); - frm.severity_name.focus(); - return false; - } - if (frm.severity_desc.value == '') { - alert(descString); - frm.severity_desc.focus(); - return false; - } - return true; - } -</script> -<b><?php echo $page_title; ?> </b> -<hr size="1"> -<form method="post" onsubmit="return checkForm(this)"> - <table border='0'> - <?php if($error) { ?> - <tr> - <td colspan="2" class="error"> - <?php echo $error; ?> - </td> - </tr> - <?php } ?> - <tr> - <td align="right" valign="top"> - <?php echo translate("Name"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="severity_name" value="<?php echo stripslashes(htmlspecialchars($severity_name)); ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Description"); ?>: - </td> - <td> - <textarea name="severity_desc" cols="20" rows="5" wrap="virtual"><?php echo stripslashes(htmlspecialchars($severity_desc)); ?> - </textarea> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Sort Order"); ?>: - </td> - <td> - <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Row Color"); ?>: - </td> - <td> - <input type="text" size="11" maxlength="10" name="severity_color" value="<?php echo $severity_color; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - - </td> - <td> - <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> - <input type="hidden" name="severity_id" value="<?php echo $severity_id; ?>"> - <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> - <input type="hidden" name="op" value="save"> - </td> - </tr> - </table> - - <br> -</form> +<?php + if (!isset($severity_name)) $severity_name = ''; + if (!isset($severity_desc)) $severity_desc = ''; + if (!isset($sort_order)) $sort_order = ''; + if (!isset($severity_color)) $severity_color = ''; + if (!isset($severity_id)) $severity_id = ''; +?> +<script type="text/javascript" language="JavaScript"> + var nameString = '<?php echo translate("Please enter a name"); ?>'; + var descString = '<?php echo translate("Please enter a description"); ?>'; + + function checkForm(frm) { + if (frm.severity_name.value == '') { + alert(nameString); + frm.severity_name.focus(); + return false; + } + if (frm.severity_desc.value == '') { + alert(descString); + frm.severity_desc.focus(); + return false; + } + return true; + } +</script> +<b><?php echo $page_title; ?> </b> +<hr size="1"> +<form method="post" onsubmit="return checkForm(this)"> + <table border='0'> + <?php if($error) { ?> + <tr> + <td colspan="2" class="error"> + <?php echo $error; ?> + </td> + </tr> + <?php } ?> + <tr> + <td align="right" valign="top"> + <?php echo translate("Name"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="severity_name" value="<?php echo stripslashes(htmlspecialchars($severity_name)); ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Description"); ?>: + </td> + <td> + <textarea name="severity_desc" cols="20" rows="5" wrap="virtual"><?php echo stripslashes(htmlspecialchars($severity_desc)); ?> + </textarea> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Sort Order"); ?>: + </td> + <td> + <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Row Color"); ?>: + </td> + <td> + <input type="text" size="11" maxlength="10" name="severity_color" value="<?php echo $severity_color; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + + </td> + <td> + <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> + <input type="hidden" name="severity_id" value="<?php echo $severity_id; ?>"> + <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> + <input type="hidden" name="op" value="save"> + </td> + </tr> + </table> + + <br> +</form> Index: site-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/site-edit.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- site-edit.html 25 Oct 2004 12:07:03 -0000 1.3 +++ site-edit.html 20 Jul 2005 18:01:35 -0000 1.4 @@ -1,54 +1,59 @@ -<script type="text/javascript" language="JavaScript"> - var nameString = '<?php echo translate("Please enter a name"); ?>'; - - function checkForm(frm) { - if (frm.site_name.value == '') { - alert(nameString); - frm.site_name.focus(); - return false; - } - return true; - } -</script> -<b><?php echo $page_title; ?> </b> -<hr size="1"> -<form method="post" onsubmit="return checkForm(this)"> - <table border='0'> - <?php if($error) { ?> - <tr> - <td colspan="2" class="error"> - <?php echo $error; ?> - </td> - </tr> - <?php } ?> - <tr> - <td align="right" valign="top"> - <?php echo translate("Name"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="50" name="site_name" value="<?php echo stripslashes(htmlspecialchars($site_name)); ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Sort Order"); ?>: - </td> - <td> - <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - - </td> - <td> - <input type="submit" name="<?php echo translate("Submit"); ?>"> - <input type="hidden" name="site_id" value="<?php echo $site_id; ?>"> - <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> - <input type="hidden" name="op" value="save"> - </td> - </tr> - </table> -</form> - - +<?php + if (!isset($site_name)) $site_name = ''; + if (!isset($sort_order)) $sort_order = ''; + if (!isset($site_id)) $site_id = ''; +?> +<script type="text/javascript" language="JavaScript"> + var nameString = '<?php echo translate("Please enter a name"); ?>'; + + function checkForm(frm) { + if (frm.site_name.value == '') { + alert(nameString); + frm.site_name.focus(); + return false; + } + return true; + } +</script> +<b><?php echo $page_title; ?> </b> +<hr size="1"> +<form method="post" onsubmit="return checkForm(this)"> + <table border='0'> + <?php if($error) { ?> + <tr> + <td colspan="2" class="error"> + <?php echo $error; ?> + </td> + </tr> + <?php } ?> + <tr> + <td align="right" valign="top"> + <?php echo translate("Name"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="50" name="site_name" value="<?php echo stripslashes(htmlspecialchars($site_name)); ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Sort Order"); ?>: + </td> + <td> + <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + + </td> + <td> + <input type="submit" name="<?php echo translate("Submit"); ?>"> + <input type="hidden" name="site_id" value="<?php echo $site_id; ?>"> + <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> + <input type="hidden" name="op" value="save"> + </td> + </tr> + </table> +</form> + + Index: status-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/status-edit.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- status-edit.html 25 Oct 2004 12:07:03 -0000 1.8 +++ status-edit.html 20 Jul 2005 18:01:35 -0000 1.9 @@ -1,75 +1,81 @@ -<script type="text/javascript" language="JavaScript"> - var nameString = '<?php echo translate("Please enter a name"); ?>'; - var descString = '<?php echo translate("Please enter a description"); ?>'; - - function checkForm(frm) { - if (frm.status_name.value == '') { - alert(nameString); - frm.status_name.focus(); - return false; - } - if (frm.status_desc.value == '') { - alert(descString); - frm.status_desc.focus(); - return false; - } - return true; - } -</script> -<b><?php echo $page_title; ?> </b> -<hr size="1"> -<form method="post" onsubmit="return checkForm(this)"> - <table border='0'> - <?php if($error) { ?> - <tr> - <td colspan="2" class="error"> - <?php echo $error; ?> - </td> - </tr> - <?php } ?> - <tr> - <td align="right" valign="top"> - <?php echo translate("Name"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="status_name" value="<?php echo stripslashes(htmlspecialchars($status_name)); ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Description"); ?>: - </td> - <td> - <textarea name="status_desc" cols="20" rows="5" wrap="virtual"><?php echo stripslashes(htmlspecialchars($status_desc)); ?></textarea> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Sort Order"); ?>: - </td> - <td> - <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Open/Closed"); ?>: - </td> - <td> - <input type="radio" name="bug_open" value="1" <?php echo $bug_open ? ' checked="checked"' : ''; ?>> <?php echo translate("Open"); ?> <input type="radio" name="bug_open" value="0" <?php echo $bug_open ? '' : ' checked="checked"'; ?>> <?php echo translate("Closed"); ?> - </td> - </tr> - <tr> - <td align="right" valign="top"> - - </td> - <td> - <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> - <input type="hidden" name="status_id" value="<?php echo $status_id; ?>"> - <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> - <input type="hidden" name="op" value="save"> - </td> - </tr> - </table> -</form> - +<?php + if (!isset($status_name)) $status_name = ''; + if (!isset($status_desc)) $status_desc = ''; + if (!isset($sort_order)) $sort_order = ''; + if (!isset($status_id)) $status_id = ''; +?> +<script type="text/javascript" language="JavaScript"> + var nameString = '<?php echo translate("Please enter a name"); ?>'; + var descString = '<?php echo translate("Please enter a description"); ?>'; + + function checkForm(frm) { + if (frm.status_name.value == '') { + alert(nameString); + frm.status_name.focus(); + return false; + } + if (frm.status_desc.value == '') { + alert(descString); + frm.status_desc.focus(); + return false; + } + return true; + } +</script> +<b><?php echo $page_title; ?> </b> +<hr size="1"> +<form method="post" onsubmit="return checkForm(this)"> + <table border='0'> + <?php if($error) { ?> + <tr> + <td colspan="2" class="error"> + <?php echo $error; ?> + </td> + </tr> + <?php } ?> + <tr> + <td align="right" valign="top"> + <?php echo translate("Name"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="status_name" value="<?php echo stripslashes(htmlspecialchars($status_name)); ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Description"); ?>: + </td> + <td> + <textarea name="status_desc" cols="20" rows="5" wrap="virtual"><?php echo stripslashes(htmlspecialchars($status_desc)); ?></textarea> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Sort Order"); ?>: + </td> + <td> + <input type="text" size="3" maxlength="3" name="sort_order" value="<?php echo $sort_order; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Open/Closed"); ?>: + </td> + <td> + <input type="radio" name="bug_open" value="1" <?php echo $bug_open ? ' checked="checked"' : ''; ?>> <?php echo translate("Open"); ?> <input type="radio" name="bug_open" value="0" <?php echo $bug_open ? '' : ' checked="checked"'; ?>> <?php echo translate("Closed"); ?> + </td> + </tr> + <tr> + <td align="right" valign="top"> + + </td> + <td> + <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> + <input type="hidden" name="status_id" value="<?php echo $status_id; ?>"> + <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> + <input type="hidden" name="op" value="save"> + </td> + </tr> + </table> +</form> + Index: user-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/user-edit.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- user-edit.html 25 Oct 2004 12:07:03 -0000 1.4 +++ user-edit.html 20 Jul 2005 18:01:35 -0000 1.5 @@ -1,114 +1,122 @@ -<script type="text/javascript" language="JavaScript"> -<!-- - var hadAdmin = <?php echo $hadadmin; ?>; - var numAdmins = <?php echo $numadmins; ?>; - - function checkAdmin(slct) { - var adminSelected = false; - - if (hadAdmin && numAdmins == 1) { - for (current = 0; current < slct.options.length; current++ ) { - if (slct.options[current].selected && slct.options[current].value == 1) { - adminSelected = true; - } - } - if (!adminSelected) { - alert('This is the only admin user for the system. Removing this user from the Admin group would be unwise.'); - } - } - } -// --> -</script> -<b><?php echo $page_title; ?> </b> -<hr size="1"> -<form action="user.php" method="post"> - <table border='0'> - <?php if($error) { ?> - <tr> - <td colspan="2" class="error"> - <?php echo $error; ?> - </td> - </tr> - <?php } ?><?php if(!EMAIL_IS_LOGIN) { ?> - <tr> - <td align="right" valign="top"> - <?php echo translate("Login"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="login" value="<?php echo stripslashes(htmlspecialchars($login)); ?>"> - </td> - </tr> - <?php } ?> - <tr> - <td align="right" valign="top"> - <?php echo translate("Email"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="email" value="<?php echo $email; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("First Name"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="first_name" value="<?php echo stripslashes(htmlspecialchars($first_name)); ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Last Name"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="last_name" value="<?php echo stripslashes(htmlspecialchars($last_name)); ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Password"); ?>: - </td> - <td> - <input type="text" size="20" maxlength="40" name="password" value="<?php echo $password; ?>"> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("User Groups"); ?>: - </td> - <td> - <select name="fusergroup[]" size="5" multiple onclick="checkAdmin(this)"> - <?php build_select('group', $user_groups); ?> - </select> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Active"); ?>: - </td> - <td> - <input type="checkbox" name="active" value="1" <?php echo $active ? 'checked' : ''; ?>> - </td> - </tr> - <tr> - <td align="right" valign="top"> - <?php echo translate("Email Notify"); ?>: - </td> - <td> - <input type="checkbox" name="fe_notice" value="1" <?php echo $email_notices ? 'checked' : ''; ?>> - </td> - </tr> - <tr> - <td align="right" valign="top"> - - </td> - <td> - <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> - <input type="hidden" name="user_id" value="<?php echo $user_id; ?>"> - <input type="hidden" name="filter" value="<?php echo $_REQUEST['filter']; ?>"> - <input type="hidden" name="use_js" value="<?php echo $_REQUEST['use_js']; ?>"> - <input type="hidden" name="op" value="save"> - </td> - </tr> - </table> -</form> - +<?php + if (!isset($email)) $email = ''; + if (!isset($first_name)) $first_name = ''; + if (!isset($last_name)) $last_name = ''; + if (!isset($active)) $active = ''; + if (!isset($email_notices)) $email_notices = ''; + if (!isset($user_id)) $user_id = ''; +?> +<script type="text/javascript" language="JavaScript"> +<!-- + var hadAdmin = <?php echo $hadadmin; ?>; + var numAdmins = <?php echo $numadmins; ?>; + + function checkAdmin(slct) { + var adminSelected = false; + + if (hadAdmin && numAdmins == 1) { + for (current = 0; current < slct.options.length; current++ ) { + if (slct.options[current].selected && slct.options[current].value == 1) { + adminSelected = true; + } + } + if (!adminSelected) { + alert('This is the only admin user for the system. Removing this user from the Admin group would be unwise.'); + } + } + } +// --> +</script> +<b><?php echo $page_title; ?> </b> +<hr size="1"> +<form action="user.php" method="post"> + <table border='0'> + <?php if(isset($error)) { ?> + <tr> + <td colspan="2" class="error"> + <?php echo $error; ?> + </td> + </tr> + <?php } ?><?php if(!EMAIL_IS_LOGIN) { ?> + <tr> + <td align="right" valign="top"> + <?php echo translate("Login"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="login" value="<?php echo stripslashes(htmlspecialchars($login)); ?>"> + </td> + </tr> + <?php } ?> + <tr> + <td align="right" valign="top"> + <?php echo translate("Email"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="email" value="<?php echo $email; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("First Name"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="first_name" value="<?php echo stripslashes(htmlspecialchars($first_name)); ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Last Name"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="last_name" value="<?php echo stripslashes(htmlspecialchars($last_name)); ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Password"); ?>: + </td> + <td> + <input type="text" size="20" maxlength="40" name="password" value="<?php echo $password; ?>"> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("User Groups"); ?>: + </td> + <td> + <select name="fusergroup[]" size="5" multiple onclick="checkAdmin(this)"> + <?php build_select('group', $user_groups); ?> + </select> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Active"); ?>: + </td> + <td> + <input type="checkbox" name="active" value="1" <?php echo $active ? 'checked' : ''; ?>> + </td> + </tr> + <tr> + <td align="right" valign="top"> + <?php echo translate("Email Notify"); ?>: + </td> + <td> + <input type="checkbox" name="fe_notice" value="1" <?php echo $email_notices ? 'checked' : ''; ?>> + </td> + </tr> + <tr> + <td align="right" valign="top"> + + </td> + <td> + <input type='submit' name='submit' value='<?php echo translate("Submit"); ?>'> + <input type="hidden" name="user_id" value="<?php echo $user_id; ?>"> + <input type="hidden" name="filter" value="<?php echo (isset($_REQUEST['filter']) ? $_REQUEST['filter'] : ''); ?>"> + <input type="hidden" name="use_js" value="<?php echo (isset($_REQUEST['use_js']) ? $_REQUEST['use_js'] : ''); ?>"> + <input type="hidden" name="op" value="save"> + </td> + </tr> + </table> +</form> + Index: version-edit.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/version-edit.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- version-edit.html 25 Oct 2004 12:07:03 -0000 1.8 +++ version-edit.html 20 Jul 2005 18:01:35 -0000 1.9 @@ -1,3 +1,8 @@ +<?php + if (!isset($version_name)) $version_name = ''; + if (!isset($active)) $active = ''; + if (!isset($version_id)) $version_id = ''; +?> <script language="JavaScript"> var nameString = '<?php echo translate("Please enter a version"); ?>'; |
|
From: Ulf E. <ulf...@us...> - 2005-07-20 18:01:44
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28833 Modified Files: bugform.html index.html report.html wrap.html Log Message: Silencing some "undefined variable/index" warnings. Index: bugform.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/bugform.html,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- bugform.html 5 Dec 2004 15:45:07 -0000 1.11 +++ bugform.html 20 Jul 2005 18:01:33 -0000 1.12 @@ -1,3 +1,16 @@ +<?php + if (!isset($reporter)) $reporter = ''; + if (!isset($version)) $version = ''; + if (!isset($title)) $title = ''; + if (!isset($description)) $description = ''; + if (!isset($url)) $url = ''; + if (!isset($severity)) $severity = ''; + if (!isset($priority)) $priority = ''; + if (!isset($component)) $component = ''; + if (!isset($database)) $database = ''; + if (!isset($site)) $site = ''; + if (!isset($os)) $os = ''; +?> <form action="bug.php" method="post" enctype="multipart/form-data"> <table border="0"> <?php if (!empty($error)) { ?> Index: index.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/index.html,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- index.html 25 Oct 2004 12:07:04 -0000 1.13 +++ index.html 20 Jul 2005 18:01:34 -0000 1.14 @@ -52,7 +52,7 @@ <?php foreach ($stats as $statid => $info) { ?> <tr> <td><a href="query.php?op=doquery&status[]=<?php echo $statid ?>"><?php echo $info['name'] ?></a></td> - <td align="center"><?php echo $info['count'] ? $info['count'] : 0 ?></td> + <td align="center"><?php echo isset($info['count']) && $info['count'] ? $info['count'] : 0 ?></td> </tr> <?php } ?> </table> Index: report.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/report.html,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- report.html 25 Oct 2004 12:07:04 -0000 1.9 +++ report.html 20 Jul 2005 18:01:34 -0000 1.10 @@ -2,7 +2,7 @@ <?php echo translate("Show bug statistics for the selected project"); ?>: <select name="projectid" onChange="document.location.href='<?php echo $_SERVER['SCRIPT_NAME']; ?>?projectid='+this.options[this.selectedIndex].value"> <option value="0"><?php echo translate("All projects"); ?></option> - <?php build_select('project', $_GET['projectid']); ?> + <?php build_select('project', isset($_GET['projectid']) ? $_GET['projectid'] : ''); ?> </select> <input type="submit" value="<?php echo translate("Go"); ?>"> </form> Index: wrap.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/wrap.html,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- wrap.html 19 Jul 2005 20:24:05 -0000 1.30 +++ wrap.html 20 Jul 2005 18:01:34 -0000 1.31 @@ -32,14 +32,14 @@ <?php if (basename($_SERVER['SCRIPT_NAME']) != 'newaccount.php') { ?> <div class="personalarea"> -<form method="post" action="<?php echo $_SERVER['SCRIPT_NAME'].($_SERVER['REQUEST_STRING'] ? '?'.$_SERVER['REQUEST_STRING'] : '') ?>"> +<form method="post" action="<?php echo $_SERVER['SCRIPT_NAME'].(isset($_SERVER['REQUEST_STRING']) ? '?'.$_SERVER['REQUEST_STRING'] : '') ?>"> <?php if (empty($_SESSION['uid'])) { ?> <?php if (EMAIL_IS_LOGIN) $loginlabel = translate("Email"); else $loginlabel = translate("Login"); ?> <?php echo !empty($loginerror) ? $loginerror : ''; ?> - <?php echo $loginlabel ?>: <input type="text" name="username" class="bottomnavinput" value="<?php echo $_COOKIE['phpbt_user'] ?>"> + <?php echo $loginlabel ?>: <input type="text" name="username" class="bottomnavinput" value="<?php echo (isset($_COOKIE['phpbt_user']) ? $_COOKIE['phpbt_user'] : '') ?>"> <?php echo translate("Password") ?>: <input type="password" name="password" class="bottomnavinput"> <input type="hidden" name="dologin" value="1"> <input type="submit" value="<?php echo translate("Login"); ?>" class="bottomnavinput"> |
|
From: Ulf E. <ulf...@fa...> - 2005-07-19 20:53:14
|
Benjamin, Please close old trackers for translations that have already been committed or are too old to be committed (based on one of the earlier translation templates). I have looked at the few translations posted after that the new translation template was presented. Only two were valid translations. They are both committed to CVS now. ---- Committed to CVS: 1166617 2005-03-18 1.0 rc5 - Spain Spanish Translation 2005-03-19 12:11 1214800 japanese language file. 2005-06-04 06:30 ( 1082198 ) ( I make japanese lang file. ) ( 2004-12-09 07:26 ) * New translation template * 2004-07-20 03:51 Old Template (v0.9.1 or older): 1191802 French translation 2005-04-28 08:50 1089397 Turkish Update 2004-12-21 14:05 935041 hebrew 2004-04-14 09:34 931362 portuguese-brazilian language update 2004-04-07 14:51 919364 Spanish Update 2004-03-19 01:11 880688 Italian language update [attach] 2004-01-20 09:08 880686 Italian language update 2004-01-20 09:07 827086 languages/ru.php 2003-10-20 12:50 782457 languages/hu.php 2003-08-03 13:17 716724 languages/lt.php 2003-04-07 06:12 648852 Spannish Localization 2002-12-05 00:14 642423 italian language definition 2002-11-22 09:50 633874 language/ja.php 2002-11-05 08:08 605089 italian templates and other stuff... 2002-09-05 08:01 |