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: Benjamin C. <bc...@us...> - 2002-03-02 18:53:15
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv20665 Modified Files: CHANGELOG Log Message: Index: CHANGELOG =================================================================== RCS file: /cvsroot/phpbt/phpbt/CHANGELOG,v retrieving revision 1.43 retrieving revision 1.44 diff -u -r1.43 -r1.44 --- CHANGELOG 1 Mar 2002 01:26:46 -0000 1.43 +++ CHANGELOG 2 Mar 2002 18:53:10 -0000 1.44 @@ -4,6 +4,9 @@ information when selecting a different project. : Added bug voting : Added a filter for active and inactive users in the admin user list +: Prettied up the default template +: Fixed some bugginess with the restricted projects +: Fixed a bug in the multi-page listing of the project admin -- 0.6.2 -- 27 Dec 2001 : Improved compatibility with Opera and IIS. |
|
From: Benjamin C. <bc...@us...> - 2002-03-02 18:49:55
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv19884/templates/default
Modified Files:
wrap.html
Log Message:
A new look
Index: wrap.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/wrap.html,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- wrap.html 1 Mar 2002 00:45:33 -0000 1.13
+++ wrap.html 2 Mar 2002 18:49:51 -0000 1.14
@@ -1,72 +1,78 @@
<html>
<head>
- <META HTTP-EQUIV="Expires" CONTENT="-1">
- <title>phpBugTracker - {TITLE}</title>
+ <META HTTP-EQUIV="Expires" CONTENT="-1">
+ <title>phpBugTracker - {TITLE}</title>
<link rel="StyleSheet" href="css.php" type="text/css">
</head>
-<body bgcolor="#ffffff" link="#006699" vlink="#006699" alink="#006699">
-<table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="640" colspan="2"><hr size="1" width="640"></td>
- </tr>
- <tr>
- <td width="540" valign="middle">
- <font class="navfont"><b>
- [
- <a href="index.php">Home</a> |
- <a href="bug.php?op=add">Enter Bug</a> |
- <a href="query.php?op=query">Query Bugs</a> |
- <a href="report.php">Reporting</a> |
- <a href="docs/html/userguide.html">Documentation</a>
- ]
- </b></font>
- </td>
- <td width="100" align="right" valign="middle">
- <font class="navfont"><b>
+<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
+ <table width="100%" cellspacing="0" cellpadding="0" height="100%">
+ <tr>
+ <td width="150" height="30" class="nav">
+ phpBugTracker
+ </td>
+ <form action="bug.php">
+ <input type="hidden" name="op" value="show">
+ <td height="30" class="nav" align="right">
+ Find bug <input type="text" name="bugid" size="4" class="navinput">
+
+ </td>
+ </form>
+ </tr>
+ <tr>
+ <td width="150" class="sidenav">
+ <!-- Nav Links -->
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='index.php'">
+ <a href="index.php" class="sidenavlink">Home</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='bug.php?op=add'">
+ <a href="bug.php?op=add" class="sidenavlink">Add a New Bug</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='query.php?op=query'">
+ <a href="query.php?op=query" class="sidenavlink">Query Bugs</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='report.php'">
+ <a href="report.php" class="sidenavlink">View Reports</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='docs/html/userguide.html'">
+ <a href="docs/html/userguide.html" class="sidenavlink">Read Documentation</a>
+ </div>
<!-- BEGIN adminnavblock -->
- [
- <a href="admin/project.php">Admin Tools</a>
- ]
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='admin/project.php'">
+ <a href="admin/project.php" class="sidenavlink">Admin Tools</a>
+ </div>
<!-- END adminnavblock -->
-
- </b></font>
- </td>
- </tr>
- <tr>
- <td width="640" colspan="2"><hr size="1" width="640"></td>
- </tr>
-</table>
-{content}
-<table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="640"><hr size="1" width="640"></td>
- </tr>
- <tr>
- <!-- BEGIN loginblock -->
- <td class="login-box" nowrap>
+ </td>
+ <td class="maincontent">
+ {content}
+ </td>
+ </tr>
+ <tr>
+ <td width="150" height="30" class="sidenav">
+  
+ </td>
<form method="post" action="{me2}">
- {loginerror}
- {loginlabel}: <input type="text" name="username" class="login-box">
- Password: <input type="password" name="password" class="login-box">
- <input type="hidden" name="dologin" value="1">
- <input type="submit" value="Login" class="login-box">
- <input type="submit" name="sendpass" value="Email Password" class="login-box" title="Forgot your password? Have it sent to you">
- </form>
- </td>
- <!-- END loginblock -->
- <!-- BEGIN logoutblock -->
- <td>
- <font class="navfont"> <b>
+ <td height="30" class="bottomnav">
+
+ <!-- BEGIN loginblock -->
+ {loginerror}
+ {loginlabel}: <input type="text" name="username" class="bottomnavinput">
+ Password: <input type="password" name="password" class="bottomnavinput">
+ <input type="hidden" name="dologin" value="1">
+ <input type="submit" value="Login" class="bottomnavinput">
+ <input type="submit" name="sendpass" value="Email Password" class="bottomnavinput" title="Forgot your password? Have it sent to you">
+ <!-- END loginblock -->
+ <!-- BEGIN logoutblock -->
[ Bugs assigned to me: <a href="query.php?op=mybugs&assignedto=1&open=1" title="Open">{owner_open}</a> / <a href="query.php?op=mybugs&assignedto=1&open=0" title="Closed">{owner_closed}</a>
| Bugs reported by me: <a href="query.php?op=mybugs&reportedby=1&open=1" title="Open">{reporter_open}</a> / <a href="query.php?op=mybugs&reportedby=1&open=0" title="Closed">{reporter_closed}</a>
| <a href="user.php">Personal Page</a>
| <a href="logout.php">Logout {loggedinas}</a>
]
- </b></font>
- </td>
- <!-- END logoutblock -->
- </tr>
-</table>
+ <!-- END logoutblock -->
+
+ </td>
+ </form>
+ </tr>
+ </table>
</body>
</html>
<head><meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></head>
|
|
From: Benjamin C. <bc...@us...> - 2002-03-02 18:49:55
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv19884
Modified Files:
css.php
Log Message:
A new look
Index: css.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/css.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- css.php 5 Jan 2002 20:01:17 -0000 1.4
+++ css.php 2 Mar 2002 18:49:50 -0000 1.5
@@ -23,10 +23,10 @@
// $Id$
$colors['default'] = array(
- 'link' => '',
- 'vlink' => '',
- 'body' => '',
- 'body-bg' => '',
+ 'link' => '#006699',
+ 'vlink' => '#006699',
+ 'body' => '#000000',
+ 'body-bg' => '#ffffff',
'td' => '',
'tr.alt-bg' => '#dddddd',
'td.head-bg' => '#eeeeee',
@@ -52,7 +52,6 @@
?>
body {
- margin: 4px;
font-size: 12px;
color: <?php echo $color['body'] ?>;
background-color: <?php echo $color['body-bg'] ?>;
@@ -157,4 +156,108 @@
font-weight: bold;
color: #0000ff;
padding-bottom: 0.1em;
+ }
+
+a.sidenavlink {
+ color: #000000;
+ text-decoration: none;
+ }
+
+.nav {
+ vertical-align: middle;
+ background: #9999ff;
+ color: #ffffff;
+ font-family: "Arial", sans-serif;
+ font-size: 16px;
+ font-weight: bold;
+ border-width: 0px 0px 3px 0px;
+ border-color: #000000;
+ border-style: solid;
+ }
+
+.navinput {
+ vertical-align: middle;
+ background: #ffffff;
+ color: #00000;
+ font-family: "Arial", sans-serif;
+ font-size: 12px;
+ }
+
+.sidenav {
+ vertical-align: top;
+ background: #9999ff;
+ color: #ffffff;
+ font-family: "Verdana", "Tahoma", "Helvetica", sans-serif;
+ font-size: 14px;
+ font-weight: bold;
+ }
+
+.bottomnav {
+ vertical-align: middle;
+ background: #ffffcc;
+ color: #000000;
+ font-family: "Arial", sans-serif;
+ font-size: 10px;
+ font-weight: bold;
+ }
+
+.bottomnavinput {
+ vertical-align: middle;
+ color: #00000;
+ font-family: "Arial", sans-serif;
+ font-size: 10px;
+ }
+
+.topnavbox {
+ vertical-align: middle;
+ background: #9999ff;
+ color: #ffffff;
+ font-family: "Arial", sans-serif;
+ font-size: 14px;
+ font-weight: bold;
+ border-width: 1px 0px 1px 0px;
+ border-color: #ffffff;
+ border-style: solid;
+ padding: 5px;
+ cursor: pointer;
+ cursor: hand;
+ }
+
+.navbox {
+ vertical-align: middle;
+ background: #9999ff;
+ color: #ffffff;
+ font-family: "Arial", sans-serif;
+ font-size: 14px;
+ font-weight: bold;
+ border-width: 0px 0px 1px 0px;
+ border-color: #ffffff;
+ border-style: solid;
+ padding: 5px;
+ cursor: pointer;
+ cursor: hand;
+ }
+
+.navboxselected {
+ vertical-align: middle;
+ background: #ffffcc;
+ color: #ffffff;
+ font-family: "Arial", sans-serif;
+ font-size: 14px;
+ font-weight: bold;
+ border-width: 0px 0px 1px 0px;
+ border-color: #ffffff;
+ border-style: solid;
+ padding: 5px;
+ cursor: pointer;
+ cursor: hand;
+ }
+
+.maincontent {
+ vertical-align: top;
+ background: #ffffff;
+ color: #000000;
+ font-family: "Arial", sans-serif;
+ font-size: 12px;
+ padding: 5px;
}
|
|
From: Benjamin C. <bc...@us...> - 2002-03-02 18:49:55
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv19884/templates/default/admin
Modified Files:
wrap.html
Log Message:
A new look
Index: wrap.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/wrap.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- wrap.html 1 Mar 2002 00:45:33 -0000 1.7
+++ wrap.html 2 Mar 2002 18:49:51 -0000 1.8
@@ -4,74 +4,87 @@
<title>phpBugTracker Admin - {TITLE}</title>
<link rel="StyleSheet" href="../css.php" type="text/css">
</head>
-<body bgcolor="#ffffff" link="#006699" vlink="#006699" alink="#006699">
-<table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="640" colspan="2"><hr size="1" width="640"></td>
- </tr>
- <tr>
- <td width="540">
- <font class="navfont"><b>
- [
- <a href="configure.php">Configuration</a> |
- <a href="project.php">Projects</a> |
- <a href="user.php">Users</a> |
- <a href="group.php">Groups</a> |
- <a href="status.php">Statuses</a> |
- <a href="resolution.php">Resolutions</a> |
- <a href="severity.php">Severity</a> |
- <a href="os.php">OSes</a> |
- <a href="../docs/html/adminguide.html">Documentation</a>
- ]
- </b></font>
- </td>
- <td width="100" align="right">
- <font class="navfont"><b>
- [
- <a href="../index.php">User Tools</a>
- ]
- </font>
- </td>
- </tr>
- <tr>
- <td width="640" colspan="2"><hr size="1" width="640"></td>
- </tr>
-</table>
-{content}
-<table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="640"><hr size="1" width="640"></td>
- </tr>
- <tr>
- <!-- BEGIN loginblock -->
- <td class="login-box">
- <form method="post" action="{me2}">
- {loginerror}
- {loginlabel}: <input type="text" name="username" class="login-box">
- Password: <input type="password" name="password" class="login-box">
- <!--<input type="image" border="0" name="login" value="doit" src="go.gif" width="30" height="20" align="middle" class="login-button">-->
- <input type="hidden" name="login" value="1">
- <input type="submit" value="Login" class="login-box">
- <input type="submit" name="sendpass" value="Email Password" class="login-box" title="Forgot your password? Have it sent to you">
- </form>
- </td>
- <!-- END loginblock -->
- <!-- BEGIN logoutblock -->
- <td>
- <font class="navfont"><b>
- [ Bugs assigned to me: <a href="../query.php?op=mybugs&assignedto=1&open=1" title="Open">{owner_open}</a> / <a href="query.php?op=mybugs&assignedto=1&open=0" title="Closed">{owner_closed}</a>
- | Bugs reported by me: <a href="../query.php?op=mybugs&reportedby=1&open=1" title="Open">{reporter_open}</a> / <a href="query.php?op=mybugs&reportedby=1&open=0" title="Closed">{reporter_closed}</a>
- | <a href="../user.php">Personal Page</a>
- | <a href="../logout.php">Logout {loggedinas}</a>
- ]
- </b></font>
- </td>
- <!-- END logoutblock -->
- </tr>
-</table>
-<!-- BEGIN adminnavblock -->
-
-<!-- END adminnavblock -->
+<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
+ <table width="100%" cellspacing="0" cellpadding="0" height="100%">
+ <tr>
+ <td width="150" height="30" class="nav">
+ phpBugTracker
+ </td>
+ <form action="../bug.php">
+ <input type="hidden" name="op" value="show">
+ <td height="30" class="nav" align="right">
+ Find bug <input type="text" name="bugid" size="4" class="navinput">
+
+ </td>
+ </form>
+ </tr>
+ <tr>
+ <td width="150" class="sidenav">
+ <!-- Nav Links -->
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='configure.php'">
+ <a href="configure.php" class="sidenavlink">Configuration</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='project.php'">
+ <a href="project.php" class="sidenavlink">Projects</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='user.php'">
+ <a href="user.php" class="sidenavlink">Users</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='group.php'">
+ <a href="group.php" class="sidenavlink">Groups</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='status.php'">
+ <a href="status.php" class="sidenavlink">Statuses</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='resolution.php'">
+ <a href="resolution.php" class="sidenavlink">Resolutions</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='severity.php'">
+ <a href="severity.php" class="sidenavlink">Severities</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='os.php'">
+ <a href="os.php" class="sidenavlink">OSes</a>
+ </div>
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='../docs/html/userguide.html'">
+ <a href="../docs/html/userguide.html" class="sidenavlink">Read Documentation</a>
+ </div>
+ <!-- BEGIN adminnavblock -->
+ <div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='../index.php'">
+ <a href="../index.php" class="sidenavlink">User Tools</a>
+ </div>
+ <!-- END adminnavblock -->
+ </td>
+ <td class="maincontent">
+ {content}
+ </td>
+ </tr>
+ <tr>
+ <td width="150" height="30" class="sidenav">
+  
+ </td>
+ <form method="post" action="{me2}">
+ <td height="30" class="bottomnav">
+
+ <!-- BEGIN loginblock -->
+ {loginerror}
+ {loginlabel}: <input type="text" name="username" class="bottomnavinput">
+ Password: <input type="password" name="password" class="bottomnavinput">
+ <input type="hidden" name="dologin" value="1">
+ <input type="submit" value="Login" class="bottomnavinput">
+ <input type="submit" name="sendpass" value="Email Password" class="bottomnavinput" title="Forgot your password? Have it sent to you">
+ <!-- END loginblock -->
+ <!-- BEGIN logoutblock -->
+ [ Bugs assigned to me: <a href="../query.php?op=mybugs&assignedto=1&open=1" title="Open">{owner_open}</a> / <a href="../query.php?op=mybugs&assignedto=1&open=0" title="Closed">{owner_closed}</a>
+ | Bugs reported by me: <a href="../query.php?op=mybugs&reportedby=1&open=1" title="Open">{reporter_open}</a> / <a href="../query.php?op=mybugs&reportedby=1&open=0" title="Closed">{reporter_closed}</a>
+ | <a href="../user.php">Personal Page</a>
+ | <a href="../logout.php">Logout {loggedinas}</a>
+ ]
+ <!-- END logoutblock -->
+
+ </td>
+ </form>
+ </tr>
+ </table>
</body>
</html>
<head><meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></head>
|
|
From: Benjamin C. <bc...@us...> - 2002-03-02 18:48:33
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv19586
Modified Files:
index.php
Log Message:
A new look, and restrict project summary data to the visible projects for the user
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- index.php 23 Jan 2002 14:41:10 -0000 1.15
+++ index.php 2 Mar 2002 18:48:30 -0000 1.16
@@ -29,9 +29,11 @@
));
$t->set_block('content', 'statsblock', 'sblock');
$t->set_block('statsblock','row','rows');
+$t->set_block('content', 'recentrow', 'recentrows');
+$t->set_block('content', 'closerow', 'closerows');
$t->set_var('TITLE',$TITLE['home']);
-function grab_data() {
+function grab_data($restricted_projects) {
global $q;
// Grab the legend
@@ -41,7 +43,8 @@
}
// Grab the data
- $q->query("select status_id, count(status_id) as count from ".TBL_BUG." group by status_id");
+ $q->query("select status_id, count(status_id) as count from ".TBL_BUG.
+ " where project_id not in ($restricted_projects) group by status_id");
while ($row = $q->grab()) {
$stats[$row['status_id']]['count'] = $row['count'];
}
@@ -49,12 +52,12 @@
return $stats;
}
-function build_image() {
+function build_image($restricted_projects) {
error_reporting(0); // Force this, just in case
include_once JPGRAPH_PATH.'jpgraph.php';
include_once JPGRAPH_PATH.'jpgraph_pie.php';
- $stats = grab_data();
+ $stats = grab_data($restricted_projects);
$totalbugs = 0;
foreach ($stats as $statid => $stat) {
if ($stat['count']) {
@@ -89,11 +92,22 @@
"<img align=\"right\" src=\"jpgimages/".GenImgName()."\" ISMAP USEMAP=\"#myimagemap\" border=0>";
}
+// Check to see if we have bugs from projects that shouldn't be visible to the user
+$restricted_projects = '0';
+if (!$perm->have_perm('Admin')) {
+ $matching_projects = delimit_list(',',
+ $q->grab_field_set("select project_id from ".TBL_PROJECT_GROUP.
+ " where group_id not in (".delimit_list(',', $auth->auth['group_ids']).")"));
+ if ($matching_projects) {
+ $restricted_projects .= ",$matching_projects";
+ }
+}
+// Show the overall bug stats
if (USE_JPGRAPH) {
- $t->set_var('sblock', build_image());
+ $t->set_var('sblock', build_image($restricted_projects));
} else {
- $stats = grab_data();
+ $stats = grab_data($restricted_projects);
$total = 0;
foreach ($stats as $statid => $stat) {
$t->set_var(array(
@@ -112,6 +126,38 @@
$t->parse('rows','row',true);
$t->parse('sblock', 'statsblock', true);
}
+
+// Show the recently added and closed bugs
+$q->query("select bug_id, title from ".TBL_BUG.
+ " where project_id not in ($restricted_projects)".
+ ' order by created_date desc limit 5');
+if (!$q->num_rows()) {
+ $t->set_var('recentrows', $STRING['nobugs']);
+} else {
+ while (list($bugid, $title) = $q->grab()) {
+ $t->set_var(array(
+ 'title' => stripslashes($title),
+ 'bugid' => $bugid
+ ));
+ $t->parse('recentrows', 'recentrow', true);
+ }
+}
+$q->query('select b.bug_id, title from '.TBL_BUG.' b, '.TBL_BUG_HISTORY.
+ " h where project_id not in ($restricted_projects) and b.bug_id = h.bug_id".
+ " and changed_field = 'Status' and new_value = 'Closed'".
+ ' order by h.created_date desc limit 5');
+if (!$q->num_rows()) {
+ $t->set_var('closerows', $STRING['nobugs']);
+} else {
+ while (list($bugid, $title) = $q->grab()) {
+ $t->set_var(array(
+ 'title' => stripslashes($title),
+ 'bugid' => $bugid
+ ));
+ $t->parse('closerows', 'closerow', true);
+ }
+}
+
$t->pparse('main',array('content','wrap','main'));
|
|
From: Benjamin C. <bc...@us...> - 2002-03-02 18:48:33
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv19586/templates/default
Modified Files:
index.html
Log Message:
A new look, and restrict project summary data to the visible projects for the user
Index: index.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/index.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- index.html 23 Nov 2001 05:06:52 -0000 1.3
+++ index.html 2 Mar 2002 18:48:30 -0000 1.4
@@ -1,21 +1,18 @@
-<h2>Welcome to phpBugTracker</h2>
-<TABLE BORDER=0 WIDTH="640">
+<table border=0 width="100%">
<tr>
<td valign="top">
- <b>Here's what you can do:</b>
+ <b>Five most recently submitted bugs:</b>
<br>
+ <!-- BEGIN recentrow -->
+ <a href="bug.php?op=show&bugid={bugid}">{title}</a><br>
+ <!-- END recentrow -->
<br>
- <a href="query.php?op=query">Query existing bug reports</a><br>
- <a href="bug.php?op=add">Enter a new bug report</a><br>
- <a href="report.php">Get summary reports</a><br>
- <p>
- <a href="newaccount.php">Open a new account</a><br>
- <a href="user.php">Change password or user preferences</a><br>
- <a href="logout.php">Forget currently stored login</a><br>
<br>
- <FORM METHOD=GET ACTION="bug.php">
- <input type="hidden" name="op" value="show">
- <INPUT TYPE=SUBMIT VALUE="Find"> bug # <INPUT NAME=bugid SIZE=6></FORM>
+ <b>Five most recently closed bugs:</b>
+ <br>
+ <!-- BEGIN closerow -->
+ <a href="bug.php?op=show&bugid={bugid}">{title}</a><br>
+ <!-- END closerow -->
</td>
<td valign="top">
<!-- BEGIN statsblock -->
|
|
From: Benjamin C. <bc...@us...> - 2002-03-02 18:47:20
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv19269/inc
Modified Files:
auth.php
Log Message:
Fixed a bug with the group and permission assignments at login
Index: auth.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/auth.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- auth.php 2 Mar 2002 18:02:23 -0000 1.7
+++ auth.php 2 Mar 2002 18:47:16 -0000 1.8
@@ -76,16 +76,18 @@
$this->auth['db_fields'] = @unserialize($u['bug_list_fields']);
// Grab group assignments and permissions based on groups
- $q->query("select gp.group_id, group_name, perm_name"
- ." from ".TBL_AUTH_PERM." ap, ".TBL_GROUP_PERM." gp, ".TBL_AUTH_GROUP." ag, ".TBL_USER_GROUP." ug"
- ." where ap.perm_id = gp.perm_id and gp.group_id = ag.group_id"
- ." and ag.group_id = ug.group_id and ug.user_id = {$u['user_id']}");
- while (list($groupid, $group, $perm) = $q->grab()) {
+ $this->auth['group_ids'] = $q->grab_field_set("select group_id from ".
+ TBL_USER_GROUP." where user_id = {$u['user_id']}");
+ foreach ($this->auth['group_ids'] as $group) {
+ $this->auth['group'][$group] = true;
+ }
+ $q->query("select perm_name from ".TBL_AUTH_PERM." ap, ".
+ TBL_GROUP_PERM." gp where group_id in (".
+ delimit_list(',', $this->auth['group_ids']).") and gp.perm_id = ap.perm_id");
+ while ($perm = $q->grab_field()) {
$this->auth['perm'][$perm] = true;
- $this->auth['uid'] = $u['user_id'];
- $this->auth['group'][$group] = true;
- $this->auth['group_ids'][] = $groupid;
}
+ $this->auth['uid'] = $u['user_id'];
return $u['user_id'];
}
|
|
From: Benjamin C. <bc...@us...> - 2002-03-02 18:08:59
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv9260/templates/default/admin
Modified Files:
projectlist.html
Log Message:
Bug fixes with the project multi-page display
Index: projectlist.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/projectlist.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- projectlist.html 11 Oct 2001 14:24:04 -0000 1.1
+++ projectlist.html 2 Mar 2002 18:08:55 -0000 1.2
@@ -14,4 +14,12 @@
<td align="center">{active}</td>
</tr>
<!-- END row -->
+ <tr>
+ <td colspan="3" align="center">
+ <br>
+ {first} to {last} of {records}
+ <br>
+ {pages}
+ </td>
+ </tr>
</table>
|
|
From: Benjamin C. <bc...@us...> - 2002-03-02 18:08:59
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv9260/admin
Modified Files:
project.php
Log Message:
Bug fixes with the project multi-page display
Index: project.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/project.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- project.php 26 Jan 2002 16:46:52 -0000 1.30
+++ project.php 2 Mar 2002 18:08:55 -0000 1.31
@@ -314,7 +314,7 @@
$t->set_block('content','row','rows');
if (!$order) { $order = '1'; $sort = 'asc'; }
- $nr = $q->query("select count(*) from ".TBL_PROJECT);
+ $nr = $q->grab_field("select count(*) from ".TBL_PROJECT);
list($selrange, $llimit, $npages, $pages) = multipages($nr,$page,
"order=$order&sort=$sort");
|
|
From: Benjamin C. <bc...@us...> - 2002-03-02 18:02:26
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv7904/inc
Modified Files:
auth.php
Log Message:
Need to clear the user groups
Index: auth.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/auth.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- auth.php 26 Feb 2002 09:02:27 -0000 1.6
+++ auth.php 2 Mar 2002 18:02:23 -0000 1.7
@@ -96,6 +96,7 @@
$this->auth['perm'] = array();
$this->auth['exp'] = 0;
$this->auth['group'] = array();
+ $this->auth['group_ids'] = array(0);
$this->auth['db_fields'] = array();
}
}
|
|
From: Benjamin C. <bc...@us...> - 2002-03-01 01:26:49
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv11719 Modified Files: CHANGELOG Log Message: Index: CHANGELOG =================================================================== RCS file: /cvsroot/phpbt/phpbt/CHANGELOG,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- CHANGELOG 28 Feb 2002 18:59:26 -0000 1.42 +++ CHANGELOG 1 Mar 2002 01:26:46 -0000 1.43 @@ -3,6 +3,7 @@ : Added dynamic select boxes to the bug form for changing component and version information when selecting a different project. : Added bug voting +: Added a filter for active and inactive users in the admin user list -- 0.6.2 -- 27 Dec 2001 : Improved compatibility with Opera and IIS. |
|
From: Benjamin C. <bc...@us...> - 2002-03-01 00:45:36
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin In directory usw-pr-cvs1:/tmp/cvs-serv1372/templates/default/admin Modified Files: wrap.html Log Message: Extra no-cache directive for brain-dead versions of IE Index: wrap.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/wrap.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- wrap.html 5 Jan 2002 20:01:17 -0000 1.6 +++ wrap.html 1 Mar 2002 00:45:33 -0000 1.7 @@ -74,3 +74,4 @@ <!-- END adminnavblock --> </body> </html> +<head><meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></head> |
|
From: Benjamin C. <bc...@us...> - 2002-03-01 00:45:36
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory usw-pr-cvs1:/tmp/cvs-serv1372/templates/default Modified Files: wrap.html Log Message: Extra no-cache directive for brain-dead versions of IE Index: wrap.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/wrap.html,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- wrap.html 5 Jan 2002 20:01:17 -0000 1.12 +++ wrap.html 1 Mar 2002 00:45:33 -0000 1.13 @@ -69,3 +69,4 @@ </table> </body> </html> +<head><meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></head> |
Update of /cvsroot/phpbt/phpbt/languages In directory usw-pr-cvs1:/tmp/cvs-serv322/languages Modified Files: de.php en.php es.php fr.php gb2312.php no.php pt-br.php ru_koi8-r.php ru_windows-1251.php se.php Log Message: Allow for filtering of the active or inactive users Index: de.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/de.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- de.php 28 Feb 2002 17:45:54 -0000 1.10 +++ de.php 1 Mar 2002 00:41:31 -0000 1.11 @@ -71,7 +71,11 @@ 'next_bug' => 'Next', 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles Index: en.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/en.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- en.php 28 Feb 2002 17:45:54 -0000 1.10 +++ en.php 1 Mar 2002 00:41:31 -0000 1.11 @@ -68,7 +68,11 @@ 'next_bug' => 'Next', 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles Index: es.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/es.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- es.php 28 Feb 2002 17:45:54 -0000 1.3 +++ es.php 1 Mar 2002 00:41:31 -0000 1.4 @@ -68,7 +68,11 @@ 'next_bug' => 'Siguiente', 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles Index: fr.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/fr.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- fr.php 28 Feb 2002 17:45:54 -0000 1.7 +++ fr.php 1 Mar 2002 00:41:31 -0000 1.8 @@ -69,7 +69,11 @@ 'next_bug' => 'Next', 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles Index: gb2312.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/gb2312.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- gb2312.php 28 Feb 2002 17:45:54 -0000 1.6 +++ gb2312.php 1 Mar 2002 00:41:31 -0000 1.7 @@ -71,7 +71,11 @@ 'next_bug' => 'Next', 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles Index: no.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/no.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- no.php 28 Feb 2002 17:45:54 -0000 1.9 +++ no.php 1 Mar 2002 00:41:31 -0000 1.10 @@ -69,7 +69,11 @@ 'next_bug' => 'Next', 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles Index: pt-br.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/pt-br.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- pt-br.php 28 Feb 2002 17:45:54 -0000 1.11 +++ pt-br.php 1 Mar 2002 00:41:31 -0000 1.12 @@ -69,7 +69,11 @@ 'next_bug' => 'Próximo' , 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles Index: ru_koi8-r.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/ru_koi8-r.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- ru_koi8-r.php 28 Feb 2002 17:45:54 -0000 1.8 +++ ru_koi8-r.php 1 Mar 2002 00:41:31 -0000 1.9 @@ -68,7 +68,11 @@ 'next_bug' => 'Next', 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles Index: ru_windows-1251.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/ru_windows-1251.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- ru_windows-1251.php 28 Feb 2002 17:45:54 -0000 1.8 +++ ru_windows-1251.php 1 Mar 2002 00:41:31 -0000 1.9 @@ -68,7 +68,11 @@ 'next_bug' => 'Next', 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles Index: se.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/se.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- se.php 28 Feb 2002 17:45:54 -0000 1.10 +++ se.php 1 Mar 2002 00:41:31 -0000 1.11 @@ -69,7 +69,11 @@ 'next_bug' => 'Next', 'already_voted' => 'You have already voted for this bug', 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug' + 'no_votes' => 'There are no votes for this bug', + 'user_filter' => array( + 0 => 'All users', + 1 => 'Active users', + 2 => 'Inactive users') ); // Page titles |
|
From: Benjamin C. <bc...@us...> - 2002-03-01 00:41:34
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv322/admin
Modified Files:
user.php
Log Message:
Allow for filtering of the active or inactive users
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/user.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- user.php 26 Jan 2002 16:46:52 -0000 1.38
+++ user.php 1 Mar 2002 00:41:31 -0000 1.39
@@ -124,7 +124,7 @@
}
}
}
- header("Location: $me?");
+ header("Location: $me?filter={$_pv['filter']}");
}
function show_form($userid = 0, $error = '') {
@@ -194,12 +194,19 @@
$sort = $_gv['sort'];
}
- $page = isset($_gv['page']) ? $_gv['page'] : 0;
+ $page = isset($_gv['page']) ? $_gv['page'] : 1;
+ $user_filter = isset($_gv['filter']) ? $_gv['filter'] : 0;
- $nr = $q->grab_field("select count(*) from ".TBL_AUTH_USER);
+ $filter_query = '';
+ if (isset($_gv['filter'])) switch($_gv['filter']) {
+ case 1 : $filter_query = ' where active = 1'; break;
+ case 2 : $filter_query = ' where active = 0'; break;
+ default : $filter_query = '';
+ }
+ $nr = $q->grab_field("select count(*) from ".TBL_AUTH_USER.$filter_query);
list($selrange, $llimit, $npages, $pages) = multipages($nr, $page,
- "order=$order&sort=$sort");
+ "order=$order&sort=$sort&filter=$user_filter");
$t->set_var(array(
'pages' => '[ '.$pages.' ]',
@@ -209,12 +216,7 @@
$q->limit_query("select user_id, first_name, last_name,
email, login, created_date, active from ".TBL_AUTH_USER
- ." order by $order $sort", $selrange, $llimit);
-
- if (!$q->num_rows()) {
- $t->set_var('rows',"<tr><td>{$STRING['nousers']}</td></tr>");
- return;
- }
+ ."$filter_query order by $order $sort", $selrange, $llimit);
$headers = array(
'userid' => 'user_id',
@@ -225,22 +227,29 @@
'active' => 'active',
'date' => 'created_date');
- sorting_headers($me, $headers, $order, $sort);
+ sorting_headers($me, $headers, $order, $sort, "page=$page&filter=$user_filter");
- $i = 0;
- while ($row = $q->grab()) {
- $t->set_var(array(
- 'bgcolor' => (++$i % 2 == 0) ? '#dddddd' : '#ffffff',
- 'trclass' => $i % 2 ? '' : 'alt',
- 'userid' => $row['user_id'],
- 'login' => $row['login'],
- 'name' => stripslashes("{$row['first_name']} {$row['last_name']}"),
- 'email' => $row['email'],
- 'active' => $row['active'] ? 'Yes' : 'No',
- 'date' => date(DATE_FORMAT, $row['created_date'])));
- $t->parse('rows','row',true);
+ if (!$q->num_rows()) {
+ $t->set_var('rows',"<tr><td>{$STRING['nousers']}</td></tr>");
+ } else {
+ $i = 0;
+ while ($row = $q->grab()) {
+ $t->set_var(array(
+ 'bgcolor' => (++$i % 2 == 0) ? '#dddddd' : '#ffffff',
+ 'trclass' => $i % 2 ? '' : 'alt',
+ 'userid' => $row['user_id'],
+ 'login' => $row['login'],
+ 'name' => stripslashes("{$row['first_name']} {$row['last_name']}"),
+ 'email' => $row['email'],
+ 'active' => $row['active'] ? 'Yes' : 'No',
+ 'date' => date(DATE_FORMAT, $row['created_date'])));
+ $t->parse('rows','row',true);
+ }
}
-
+ $t->set_var(array(
+ 'filter_select' => build_select('user_filter', $user_filter),
+ 'filter' => $user_filter));
+
show_form($userid, $error);
$t->set_var('TITLE', $TITLE['user']);
}
|
|
From: Benjamin C. <bc...@us...> - 2002-03-01 00:41:33
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv322/templates/default/admin
Modified Files:
userlist.html
Log Message:
Allow for filtering of the active or inactive users
Index: userlist.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/userlist.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- userlist.html 13 Oct 2001 22:03:56 -0000 1.2
+++ userlist.html 1 Mar 2002 00:41:31 -0000 1.3
@@ -5,6 +5,12 @@
<td valign="top">
<b> User List</b>
<hr size="1">
+ <form>
+ <div align="center">
+ <select name="filter" onChange="document.location.href='{me}?filter=' + this.options[this.selectedIndex].value">{filter_select}</select>
+ <input type="submit" value="Filter">
+ </div>
+ </form>
<table border="0">
<tr>
<th bgcolor="{logincolor}"><a href="{loginurl}">Login</a></th>
@@ -14,7 +20,7 @@
</tr>
<!-- BEGIN row -->
<tr class="{trclass}">
- <td><a href="{me}?op=edit&id={userid}">{login}</a></td>
+ <td><a href="{me}?op=edit&id={userid}&filter={filter}">{login}</a></td>
<td align="center">{name}</td>
<td align="center">{date}</td>
<td align="center">{active}</td>
@@ -35,6 +41,7 @@
<hr size="1">
<form action="user.php" method="post">
<input type="hidden" name="id" value="{fuserid}">
+ <input type="hidden" name="filter" value="{filter}">
<table border='0'>
<tr>
<td colspan="2" align="center" valign="top">
|
|
From: Benjamin C. <bc...@us...> - 2002-03-01 00:41:33
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv322/inc
Modified Files:
functions.php
Log Message:
Allow for filtering of the active or inactive users
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- functions.php 26 Jan 2002 16:53:17 -0000 1.3
+++ functions.php 1 Mar 2002 00:41:30 -0000 1.4
@@ -43,7 +43,7 @@
///
/// Build a select box with the item matching $value selected
function build_select($box, $value = '', $project = 0) {
- global $q, $select, $perm, $auth;
+ global $q, $select, $perm, $auth, $STRING;
//create hash to map tablenames
$cfgDatabase = array(
@@ -77,6 +77,12 @@
}
switch($box) {
+ case 'user_filter' :
+ foreach ($STRING['user_filter'] as $k => $v) {
+ $text .= sprintf("<option value=\"%d\"%s>%s</option>",
+ $k, ($k == $value ? ' selected' : ''), $v);
+ }
+ break;
case 'group' :
if ($project) { // If we are building for project admin page
if (!count($value) or (count($value) && in_array(0, $value))) {
|
|
From: Benjamin C. <bc...@us...> - 2002-02-28 18:59:31
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv32491 Modified Files: CHANGELOG Log Message: Index: CHANGELOG =================================================================== RCS file: /cvsroot/phpbt/phpbt/CHANGELOG,v retrieving revision 1.41 retrieving revision 1.42 diff -u -r1.41 -r1.42 --- CHANGELOG 23 Jan 2002 14:28:20 -0000 1.41 +++ CHANGELOG 28 Feb 2002 18:59:26 -0000 1.42 @@ -2,6 +2,7 @@ : Removed the requirement for register_globals = on in PHP settings. : Added dynamic select boxes to the bug form for changing component and version information when selecting a different project. +: Added bug voting -- 0.6.2 -- 27 Dec 2001 : Improved compatibility with Opera and IIS. |
|
From: Benjamin C. <bc...@us...> - 2002-02-28 18:55:47
|
Update of /cvsroot/phpbt/phpbt/docs/sgml In directory usw-pr-cvs1:/tmp/cvs-serv30999/docs/sgml Modified Files: installation.sgml Log Message: Updated the installation instructions to note the magic_quotes_gpc requirement Index: installation.sgml =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/sgml/installation.sgml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- installation.sgml 1 Dec 2001 17:56:33 -0000 1.4 +++ installation.sgml 28 Feb 2002 18:55:44 -0000 1.5 @@ -13,6 +13,9 @@ <step> <para>After completing the installation, login and start reporting bugs.</para> +<important> +<para>You must have <varname>magic_quotes_gpc</varname> set to On either in <filename>php.ini</filename> or in <filename>.htaccess</filename> (see <ulink url="http://www.php.net/manual/en/configuration.php">http://www.php.net/manual/en/configuration.php</ulink> for more info).</para> +</important> <note> <para>Optional: Install JpGraph (<ulink url="http://www.aditus.nu/jpgraph/">http://www.aditus.nu/jpgraph</ulink>) if you wish to use it for the summary bug display on the home page.</para> </note> |
|
From: Benjamin C. <bc...@us...> - 2002-02-28 18:55:47
|
Update of /cvsroot/phpbt/phpbt/docs/html In directory usw-pr-cvs1:/tmp/cvs-serv30999/docs/html Modified Files: adminguide.html bugdetail.html bugsearch.html configuration.html devguide.html devstandards.html index.html schema.html userguide.html Log Message: Updated the installation instructions to note the magic_quotes_gpc requirement Index: adminguide.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/adminguide.html,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- adminguide.html 15 Dec 2001 18:58:14 -0000 1.12 +++ adminguide.html 28 Feb 2002 18:55:43 -0000 1.13 @@ -4,7 +4,8 @@ >Administrator's Guide</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK REL="HOME" TITLE="phpBugTracker" HREF="index.html"><LINK @@ -71,9 +72,7 @@ CLASS="CHAPTER" ><H1 ><A -NAME="ADMINGUIDE" ->Chapter 2. Administrator's Guide</A -></H1 +NAME="ADMINGUIDE">Chapter 2. Administrator's Guide</H1 ><DIV CLASS="TOC" ><DL @@ -98,9 +97,7 @@ ><DIV CLASS="ABSTRACT" ><A -NAME="AEN119" -></A -><P +NAME="AEN119"><P >One of the main design goals of phpBugTracker is to make installation and administration easy. In fact, the difficulty of installing bugzilla was a key motivator for phpBugTracker's existence.</P ></DIV ></BLOCKQUOTE @@ -109,9 +106,7 @@ ><H1 CLASS="SECT1" ><A -NAME="INSTALLATION" ->2.1. Installation Instructions</A -></H1 +NAME="INSTALLATION">2.1. Installation Instructions</H1 ><DIV CLASS="PROCEDURE" ><A @@ -130,6 +125,43 @@ ><LI ><P >After completing the installation, login and start reporting bugs.</P +><DIV +CLASS="IMPORTANT" +><TABLE +CLASS="IMPORTANT" +WIDTH="100%" +BORDER="0" +><TR +><TD +WIDTH="25" +ALIGN="CENTER" +VALIGN="TOP" +><IMG +SRC="images/important.gif" +HSPACE="5" +ALT="Important"></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>You must have <TT +CLASS="VARNAME" +>magic_quotes_gpc</TT +> set to On either in <TT +CLASS="FILENAME" +>php.ini</TT +> or in <TT +CLASS="FILENAME" +>.htaccess</TT +> (see <A +HREF="http://www.php.net/manual/en/configuration.php" +TARGET="_top" +>http://www.php.net/manual/en/configuration.php</A +> for more info).</P +></TD +></TR +></TABLE +></DIV ><DIV CLASS="NOTE" ><TABLE Index: bugdetail.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/bugdetail.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- bugdetail.html 15 Dec 2001 18:58:14 -0000 1.2 +++ bugdetail.html 28 Feb 2002 18:55:43 -0000 1.3 @@ -4,7 +4,8 @@ >Working with Bugs</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK REL="HOME" TITLE="phpBugTracker" HREF="index.html"><LINK @@ -75,9 +76,7 @@ ><H1 CLASS="SECT1" ><A -NAME="BUGDETAIL" ->1.3. Working with Bugs</A -></H1 +NAME="BUGDETAIL">1.3. Working with Bugs</H1 ><P >The majority of the time you spend with phpBugTracker will probably be on the bug detail page. This page shows you all the information about a bug, and allows you to change most of it. </P ><DIV Index: bugsearch.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/bugsearch.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- bugsearch.html 15 Dec 2001 18:58:14 -0000 1.3 +++ bugsearch.html 28 Feb 2002 18:55:43 -0000 1.4 @@ -4,7 +4,8 @@ >Searching the Bug Database</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK REL="HOME" TITLE="phpBugTracker" HREF="index.html"><LINK @@ -75,9 +76,7 @@ ><H1 CLASS="SECT1" ><A -NAME="BUGSEARCH" ->1.2. Searching the Bug Database</A -></H1 +NAME="BUGSEARCH">1.2. Searching the Bug Database</H1 ><P >The query page presents a wide array of options for finding a specific set of bugs, and thus can be a little overwhelming at first sight. By submitting the default form, without selecting any options, a list of all the bugs in the database will be returned. Every option selected will filter out more bugs as you get more specific in your search.</P ><DIV Index: configuration.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/configuration.html,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- configuration.html 15 Dec 2001 18:58:14 -0000 1.12 +++ configuration.html 28 Feb 2002 18:55:43 -0000 1.13 @@ -4,7 +4,8 @@ >Configuration Options</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK REL="HOME" TITLE="phpBugTracker" HREF="index.html"><LINK @@ -75,17 +76,13 @@ ><H1 CLASS="SECT1" ><A -NAME="CONFIGURATION" ->2.2. Configuration Options</A -></H1 +NAME="CONFIGURATION">2.2. Configuration Options</H1 ><BLOCKQUOTE CLASS="ABSTRACT" ><DIV CLASS="ABSTRACT" ><A -NAME="AEN135" -></A -><P +NAME="AEN141"><P >Most of the options listed here can be configured via the Configuration page of the admin tools. The <TT CLASS="VARNAME" >DB_</TT Index: devguide.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/devguide.html,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- devguide.html 15 Dec 2001 18:58:14 -0000 1.18 +++ devguide.html 28 Feb 2002 18:55:43 -0000 1.19 @@ -4,7 +4,8 @@ >Developer's Guide</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK REL="HOME" TITLE="phpBugTracker" HREF="index.html"><LINK @@ -71,9 +72,7 @@ CLASS="CHAPTER" ><H1 ><A -NAME="DEVGUIDE" ->Chapter 3. Developer's Guide</A -></H1 +NAME="DEVGUIDE">Chapter 3. Developer's Guide</H1 ><DIV CLASS="TOC" ><DL @@ -131,9 +130,7 @@ ><DIV CLASS="ABSTRACT" ><A -NAME="AEN253" -></A -><P +NAME="AEN259"><P >Adding on to or extending phpBugTracker should be easy for those with a knowledge of PHP and SQL. New developers are always welcome to join the project at <A HREF="http://www.sourceforge.net/projects/phpbt/" TARGET="_top" @@ -146,17 +143,13 @@ ><H1 CLASS="SECT1" ><A -NAME="DEPENDENCIES" ->3.1. Dependencies</A -></H1 +NAME="DEPENDENCIES">3.1. Dependencies</H1 ><BLOCKQUOTE CLASS="ABSTRACT" ><DIV CLASS="ABSTRACT" ><A -NAME="AEN258" -></A -><P +NAME="AEN264"><P >phpBugTracker requires one external package, PHPlib, and can optionally use JpGraph. Of course a web server running a version of PHP later than 4.0 and a database server are also necessary.</P ></DIV ></BLOCKQUOTE @@ -165,9 +158,7 @@ ><H2 CLASS="SECT2" ><A -NAME="DEP-PHPLIB" ->3.1.1. PHPlib</A -></H2 +NAME="DEP-PHPLIB">3.1.1. PHPlib</H2 ><P >As of version 0.6.0, phpBugTracker includes the required portions of the PHPlib package in the <TT CLASS="FILENAME" @@ -178,9 +169,7 @@ ><H3 CLASS="SECT3" ><A -NAME="AEN264" ->3.1.1.1. Database Abstraction</A -></H3 +NAME="AEN270">3.1.1.1. Database Abstraction</H3 ><P >Instead of using PHP's database functions directly, interactions are done via database objects, which extend PHPlib's <TT CLASS="CLASSNAME" @@ -209,9 +198,7 @@ ><DIV CLASS="EXAMPLE" ><A -NAME="AEN275" -></A -><P +NAME="AEN281"><P ><B >Example 3-1. Using the database class</B ></P @@ -247,17 +234,13 @@ ><H3 CLASS="SECT3" ><A -NAME="AEN278" ->3.1.1.2. Templates</A -></H3 +NAME="AEN284">3.1.1.2. Templates</H3 ><P >Instead of outputting HTML from the scripts, templates are used to separate the code from the HTML. The templates contain tokens that are replaced by the scripts with values. The general process for using templates is as follows:</P ><DIV CLASS="EXAMPLE" ><A -NAME="AEN281" -></A -><P +NAME="AEN287"><P ><B >Example 3-2. Using the template class</B ></P @@ -292,9 +275,7 @@ ><H3 CLASS="SECT3" ><A -NAME="AEN284" ->3.1.1.3. Session and Authentication</A -></H3 +NAME="AEN290">3.1.1.3. Session and Authentication</H3 ><P >The session start and authentication code is included in <TT CLASS="FILENAME" @@ -364,9 +345,7 @@ ><DIV CLASS="EXAMPLE" ><A -NAME="AEN309" -></A -><P +NAME="AEN315"><P ><B >Example 3-3. Permission and Group Checking</B ></P @@ -401,9 +380,7 @@ ><H2 CLASS="SECT2" ><A -NAME="DEP-JPGRAPH" ->3.1.2. JpGraph</A -></H2 +NAME="DEP-JPGRAPH">3.1.2. JpGraph</H2 ><P >This section will not cover the usage of JpGraph in any detail, since it is not an integral part of phpBugTracker. Developers who are interested in using this class for generating bug reports or charting activity can see <TT CLASS="FILENAME" Index: devstandards.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/devstandards.html,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- devstandards.html 15 Dec 2001 18:58:14 -0000 1.19 +++ devstandards.html 28 Feb 2002 18:55:43 -0000 1.20 @@ -4,7 +4,8 @@ >Development Standards</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK REL="HOME" TITLE="phpBugTracker" HREF="index.html"><LINK @@ -75,17 +76,13 @@ ><H1 CLASS="SECT1" ><A -NAME="DEVSTANDARDS" ->3.2. Development Standards</A -></H1 +NAME="DEVSTANDARDS">3.2. Development Standards</H1 ><BLOCKQUOTE CLASS="ABSTRACT" ><DIV CLASS="ABSTRACT" ><A -NAME="AEN319" -></A -><P +NAME="AEN325"><P > This section details the coding and process standards to be followed by the developers working on phpBugTracker. </P @@ -96,17 +93,13 @@ ><H2 CLASS="SECT2" ><A -NAME="DEVSTANDARDS-CODE" ->3.2.1. Coding Standards</A -></H2 +NAME="DEVSTANDARDS-CODE">3.2.1. Coding Standards</H2 ><DIV CLASS="SECT3" ><H3 CLASS="SECT3" ><A -NAME="DEVSTANDARDS-INDENTING" ->3.2.1.1. Indenting</A -></H3 +NAME="DEVSTANDARDS-INDENTING">3.2.1.1. Indenting</H3 ><P > Use an indent of one tab per indent. </P @@ -116,9 +109,7 @@ ><H3 CLASS="SECT3" ><A -NAME="DEVSTANDARDS-CONTROL" ->3.2.1.2. Control Structures</A -></H3 +NAME="DEVSTANDARDS-CONTROL">3.2.1.2. Control Structures</H3 ><P > These include if, for, while, switch, etc. Here is an example if statement, since it is the most complicated of them: @@ -158,9 +149,7 @@ ><H3 CLASS="SECT3" ><A -NAME="DEVSTANDARDS-FUNCCALLS" ->3.2.1.3. Function Calls</A -></H3 +NAME="DEVSTANDARDS-FUNCCALLS">3.2.1.3. Function Calls</H3 ><P > Functions should be called with no spaces between the function name, the opening parenthesis, and the first parameter; spaces between @@ -190,9 +179,7 @@ ><H3 CLASS="SECT3" ><A -NAME="DEVSTANDARDS-FUNCDEFS" ->3.2.1.4. Function Definitions</A -></H3 +NAME="DEVSTANDARDS-FUNCDEFS">3.2.1.4. Function Definitions</H3 ><P > Function definitions follow the format of function calls, with the opening brace at the end of the line of the function declaration. The @@ -259,9 +246,7 @@ ><H3 CLASS="SECT3" ><A -NAME="DEVSTANDARDS-COMMENTS" ->3.2.1.5. Comments</A -></H3 +NAME="DEVSTANDARDS-COMMENTS">3.2.1.5. Comments</H3 ><P > Non-documentation comments are strongly encouraged. A general rule of thumb is that if you look at a section of code and think "Wow, I don't @@ -274,9 +259,7 @@ ><H3 CLASS="SECT3" ><A -NAME="DEVSTANDARDS-INCLUDING" ->3.2.1.6. Including Code</A -></H3 +NAME="DEVSTANDARDS-INCLUDING">3.2.1.6. Including Code</H3 ><P > Anywhere you are unconditionally including a class file, use <A @@ -313,9 +296,7 @@ ><H3 CLASS="SECT3" ><A -NAME="DEVSTANDARDS-PHPTAGS" ->3.2.1.7. PHP Tags</A -></H3 +NAME="DEVSTANDARDS-PHPTAGS">3.2.1.7. PHP Tags</H3 ><P > Always use <TT CLASS="COMPUTEROUTPUT" @@ -333,9 +314,7 @@ ><H3 CLASS="SECT3" ><A -NAME="DEVSTANDARDS-CONSTANTS" ->3.2.1.8. Naming Constants</A -></H3 +NAME="DEVSTANDARDS-CONSTANTS">3.2.1.8. Naming Constants</H3 ><P > Constants should always be uppercase, with underscores to separate words. @@ -347,17 +326,13 @@ ><H2 CLASS="SECT2" ><A -NAME="OTHERCONVENTIONS" ->3.2.2. Other Conventions</A -></H2 +NAME="OTHERCONVENTIONS">3.2.2. Other Conventions</H2 ><DIV CLASS="SECT3" ><H3 CLASS="SECT3" ><A -NAME="DEVSTANDARDS-FILENAMING" ->3.2.2.1. File Naming</A -></H3 +NAME="DEVSTANDARDS-FILENAMING">3.2.2.1. File Naming</H3 ><P > File names should be all lowercase and contain no spaces. HTML files should have <TT Index: index.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/index.html,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- index.html 15 Dec 2001 18:58:14 -0000 1.16 +++ index.html 28 Feb 2002 18:55:44 -0000 1.17 @@ -4,7 +4,8 @@ >phpBugTracker</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK REL="NEXT" TITLE="User's Guide" HREF="userguide.html"><LINK @@ -21,23 +22,17 @@ ><DIV CLASS="BOOK" ><A -NAME="INDEX" -></A -><DIV +NAME="INDEX"><DIV CLASS="TITLEPAGE" ><H1 CLASS="TITLE" ><A -NAME="AEN2" ->phpBugTracker</A -></H1 +NAME="AEN2">phpBugTracker</H1 ><DIV ><DIV CLASS="ABSTRACT" ><A -NAME="AEN4" -></A -><P +NAME="AEN4"><P >phpBugTracker is a web-based bug reporting and tracking system. It helps development teams to manage the testing and debugging segments of the development cycle.</P ></DIV ></DIV @@ -128,17 +123,17 @@ ></DT ><DT >3-1. <A -HREF="devguide.html#AEN275" +HREF="devguide.html#AEN281" >Using the database class</A ></DT ><DT >3-2. <A -HREF="devguide.html#AEN281" +HREF="devguide.html#AEN287" >Using the template class</A ></DT ><DT >3-3. <A -HREF="devguide.html#AEN309" +HREF="devguide.html#AEN315" >Permission and Group Checking</A ></DT ></DL Index: schema.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/schema.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- schema.html 15 Dec 2001 18:58:14 -0000 1.4 +++ schema.html 28 Feb 2002 18:55:44 -0000 1.5 @@ -4,7 +4,8 @@ >Database Schema</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK REL="HOME" TITLE="phpBugTracker" HREF="index.html"><LINK @@ -68,15 +69,11 @@ ><H1 CLASS="SECT1" ><A -NAME="SCHEMA" ->3.3. Database Schema</A -></H1 +NAME="SCHEMA">3.3. Database Schema</H1 ><DIV CLASS="TABLE" ><A -NAME="AEN377" -></A -><P +NAME="AEN383"><P ><B >Table 3-1. Schema for table active_sessions</B ></P @@ -187,9 +184,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN409" -></A -><P +NAME="AEN415"><P ><B >Table 3-2. Schema for table attachment</B ></P @@ -367,9 +362,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN459" -></A -><P +NAME="AEN465"><P ><B >Table 3-3. Schema for table auth_group</B ></P @@ -531,9 +524,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN505" -></A -><P +NAME="AEN511"><P ><B >Table 3-4. Schema for table auth_perm</B ></P @@ -680,9 +671,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN547" -></A -><P +NAME="AEN553"><P ><B >Table 3-5. Schema for table auth_user</B ></P @@ -932,9 +921,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN617" -></A -><P +NAME="AEN623"><P ><B >Table 3-6. Schema for table bug</B ></P @@ -1319,9 +1306,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN725" -></A -><P +NAME="AEN731"><P ><B >Table 3-7. Schema for table bug_cc</B ></P @@ -1427,9 +1412,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN755" -></A -><P +NAME="AEN761"><P ><B >Table 3-8. Schema for table bug_group</B ></P @@ -1501,9 +1484,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN776" -></A -><P +NAME="AEN782"><P ><B >Table 3-9. Schema for table bug_history</B ></P @@ -1645,9 +1626,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN816" -></A -><P +NAME="AEN822"><P ><B >Table 3-10. Schema for table comment</B ></P @@ -1771,9 +1750,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN851" -></A -><P +NAME="AEN857"><P ><B >Table 3-11. Schema for table component</B ></P @@ -1990,9 +1967,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN912" -></A -><P +NAME="AEN918"><P ><B >Table 3-12. Schema for table configuration</B ></P @@ -2100,9 +2075,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN943" -></A -><P +NAME="AEN949"><P ><B >Table 3-13. Schema for table db_sequence</B ></P @@ -2174,9 +2147,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN964" -></A -><P +NAME="AEN970"><P ><B >Table 3-14. Schema for table group_perm</B ></P @@ -2246,9 +2217,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN984" -></A -><P +NAME="AEN990"><P ><B >Table 3-15. Schema for table os</B ></P @@ -2354,9 +2323,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1014" -></A -><P +NAME="AEN1020"><P ><B >Table 3-16. Schema for table project</B ></P @@ -2534,9 +2501,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1064" -></A -><P +NAME="AEN1070"><P ><B >Table 3-17. Schema for table project_group</B ></P @@ -2642,9 +2607,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1094" -></A -><P +NAME="AEN1100"><P ><B >Table 3-18. Schema for table resolution</B ></P @@ -2750,9 +2713,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1124" -></A -><P +NAME="AEN1130"><P ><B >Table 3-19. Schema for table saved_query</B ></P @@ -2863,9 +2824,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1156" -></A -><P +NAME="AEN1162"><P ><B >Table 3-20. Schema for table severity</B ></P @@ -2992,9 +2951,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1192" -></A -><P +NAME="AEN1198"><P ><B >Table 3-21. Schema for table status</B ></P @@ -3100,9 +3057,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1222" -></A -><P +NAME="AEN1228"><P ><B >Table 3-22. Schema for table user_group</B ></P @@ -3208,9 +3163,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1252" -></A -><P +NAME="AEN1258"><P ><B >Table 3-23. Schema for table user_perm</B ></P @@ -3280,9 +3233,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1272" -></A -><P +NAME="AEN1278"><P ><B >Table 3-24. Schema for table version</B ></P Index: userguide.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/userguide.html,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- userguide.html 15 Dec 2001 18:58:15 -0000 1.10 +++ userguide.html 28 Feb 2002 18:55:44 -0000 1.11 @@ -4,7 +4,8 @@ >User's Guide</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK REL="HOME" TITLE="phpBugTracker" HREF="index.html"><LINK @@ -71,9 +72,7 @@ CLASS="CHAPTER" ><H1 ><A -NAME="USERGUIDE" ->Chapter 1. User's Guide</A -></H1 +NAME="USERGUIDE">Chapter 1. User's Guide</H1 ><DIV CLASS="TOC" ><DL @@ -117,9 +116,7 @@ ><DIV CLASS="ABSTRACT" ><A -NAME="AEN8" -></A -><P +NAME="AEN8"><P >Currently all interactions with phpBugTracker are done via the web interface. Users can submit bugs, communicate with developers and testers about bugs, and search through the bug database.</P ></DIV ></BLOCKQUOTE @@ -128,17 +125,13 @@ ><H1 CLASS="SECT1" ><A -NAME="PRIMER" ->1.1. Getting Started</A -></H1 +NAME="PRIMER">1.1. Getting Started</H1 ><DIV CLASS="SECT2" ><H2 CLASS="SECT2" ><A -NAME="CREATEACCOUNT" ->1.1.1. Creating an account</A -></H2 +NAME="CREATEACCOUNT">1.1.1. Creating an account</H2 ><P >You can create a new account by following the link labeled <SPAN CLASS="bold" @@ -153,9 +146,7 @@ ><H2 CLASS="SECT2" ><A -NAME="ENTERBUG" ->1.1.2. Entering a bug</A -></H2 +NAME="ENTERBUG">1.1.2. Entering a bug</H2 ><P >Once you have logged in to the system you can follow the <SPAN CLASS="bold" |
|
From: Benjamin C. <bc...@us...> - 2002-02-28 18:55:47
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv30999 Modified Files: INSTALL Log Message: Updated the installation instructions to note the magic_quotes_gpc requirement Index: INSTALL =================================================================== RCS file: /cvsroot/phpbt/phpbt/INSTALL,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- INSTALL 20 Dec 2001 14:45:06 -0000 1.13 +++ INSTALL 28 Feb 2002 18:55:41 -0000 1.14 @@ -11,5 +11,5 @@ 3. After completing the installation, login and start reporting bugs. -* Note: You must have register_globals set to On either in php.ini or in -.htaccess. This requirement will be removed in an upcoming version. +* Note: You must have magic_quotes_gpc set to On either in php.ini or in +.htaccess (see http://www.php.net/manual/en/configuration.php for more info). |
|
From: Benjamin C. <bc...@us...> - 2002-02-28 18:23:37
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv21611/templates/default
Modified Files:
user.html
Log Message:
Allow the user to review and delete bug votes
Index: user.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/user.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- user.html 20 Aug 2001 23:16:50 -0000 1.2
+++ user.html 28 Feb 2002 18:23:31 -0000 1.3
@@ -31,25 +31,49 @@
<form action="{me}" method="post">
<input type="hidden" name="do" value="changecolumnlist">
<table border="0" cellpadding="0" cellspacing="0" width="600">
- <tr>
- <td width="600"><b>Bug List Columns</b></td>
- </tr>
- <tr>
- <td width="600">Choose the fields you want to see in the bug list</td>
- </tr>
- <!-- BEGIN column_list_row -->
- <tr>
- <td>
- <input type="checkbox" name="column_list[]" value="{column_name}" {checked}>
- {column_title}
- </td>
- </tr>
- <!-- END column_list_row -->
- <tr>
- <td>
- <input type="reset">
- <input type="submit" value="Submit">
- </td>
- </tr>
- </table>
+ <td width="300">
+ <table border="0" cellpadding="0" cellspacing="0" width="300">
+ <tr>
+ <td width="300"><b>Bug List Columns</b></td>
+ </tr>
+ <tr>
+ <td width="600">Choose the fields you want to see in the bug list</td>
+ </tr>
+ <!-- BEGIN column_list_row -->
+ <tr>
+ <td>
+ <input type="checkbox" name="column_list[]" value="{column_name}" {checked}>
+ {column_title}
+ </td>
+ </tr>
+ <!-- END column_list_row -->
+ <tr>
+ <td>
+ <input type="reset">
+ <input type="submit" value="Submit">
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td valign="top">
+ <!-- BEGIN votesblock -->
+ <b>Votes</b>
+ <table border="0" cellpadding="1" cellspacing="1" width="300">
+ <tr>
+ <th>Bug</th>
+ <th>When</th>
+ <th></th>
+ </tr>
+ <!-- BEGIN vote_row -->
+ <tr>
+ <td class="{trclass}" bgcolor="{bgcolor}" align="center"><a href="bug.php?op=show&bugid={bugid}">#{bugid}</a></td>
+ <td class="{trclass}" bgcolor="{bgcolor}" align="center">{date}</td>
+ <td class="{trclass}" bgcolor="{bgcolor}" align="center"><a href="{me}?op=delvote&bugid={bugid}" onClick="return confirm('Are you sure you want to delete this vote?');">Delete</a></td>
+ </tr>
+ <!-- END vote_row -->
+ </table>
+ <!-- END votesblock -->
+ </td>
+ </tr>
+</table>
</form>
|
|
From: Benjamin C. <bc...@us...> - 2002-02-28 18:23:37
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv21611
Modified Files:
user.php
Log Message:
Allow the user to review and delete bug votes
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/user.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- user.php 14 Nov 2001 14:28:06 -0000 1.18
+++ user.php 28 Feb 2002 18:23:31 -0000 1.19
@@ -20,9 +20,17 @@
// along with phpBugTracker; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ------------------------------------------------------------------------
+// $Id$
include 'include.php';
+function delete_vote($bug_id) {
+ global $q, $u, $me, $now;
+
+ $q->query("delete from ".TBL_BUG_VOTE." where user_id = $u and bug_id = $bug_id");
+ header("Location: $me?r=$now");
+}
+
function change_bug_list_columns($column_list) {
global $q, $u, $t, $auth;
@@ -55,10 +63,12 @@
}
function show_preferences_form($error = '') {
- global $t, $pass1, $pass2, $all_db_fields, $default_db_fields, $auth;
+ global $t, $pass1, $pass2, $all_db_fields, $default_db_fields, $auth, $q, $u;
$t->set_file('content', 'user.html');
$t->set_block('content', 'column_list_row', 'list_rows');
+ $t->set_block('content', 'votesblock', 'votesb');
+ $t->set_block('votesblock', 'vote_row', 'vote_rows');
$t->set_var(array(
'error' => $error ? $error.'<br><br>' : '',
@@ -79,12 +89,33 @@
));
$t->parse('list_rows', 'column_list_row', true);
}
+
+ // Display the votes (if any)
+ $q->query("select * from ".TBL_BUG_VOTE." where user_id = $u");
+ if (!$q->num_rows()) {
+ $t->set_var('votesb', ' ');
+ } else {
+ $i = 0;
+ while ($row = $q->grab()) {
+ $t->set_var(array(
+ 'bgcolor' => (++$i % 2 == 0) ? '#dddddd' : '#ffffff',
+ 'trclass' => $i % 2 ? '' : 'alt',
+ 'bugid' => $row['bug_id'],
+ 'date' => date(DATE_FORMAT.' '.TIME_FORMAT, $row['created_date'])
+ ));
+ $t->parse('vote_rows', 'vote_row', true);
+ }
+ $t->parse('votesb', 'votesblock', true);
+ }
}
$t->set_file('wrap', 'wrap.html');
$perm->check_group('User');
-if (isset($_pv['do'])) switch ($_pv['do']) {
+if (isset($_gv['op'])) switch ($_gv['op']) {
+ case 'delvote' : delete_vote($_gv['bugid']); break;
+}
+elseif (isset($_pv['do'])) switch ($_pv['do']) {
case 'changepassword' : change_password($_pv['pass1'], $_pv['pass2']); break;
case 'changecolumnlist' : change_bug_list_columns($_pv['column_list']); break;
default : show_preferences_form();
|
|
From: Benjamin C. <bc...@us...> - 2002-02-28 18:21:36
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv20649
Modified Files:
bug.php
Log Message:
Fixed an off-by-one error
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- bug.php 28 Feb 2002 17:48:57 -0000 1.80
+++ bug.php 28 Feb 2002 18:21:30 -0000 1.81
@@ -65,7 +65,7 @@
}
// Check whether the user has used his allotment of votes (if there is a max)
if (MAX_USER_VOTES and $q->grab_field("select count(*) from ".TBL_BUG_VOTE.
- " where user_id = $u") > MAX_USER_VOTES) {
+ " where user_id = $u") >= MAX_USER_VOTES) {
show_bug($bug_id, array('vote' => $STRING['too_many_votes']));
return;
}
|
|
From: Benjamin C. <bc...@us...> - 2002-02-28 17:49:11
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv11076/templates/default
Modified Files:
bugdisplay.html
Log Message:
Use the string from the strings file for the javascript alert
Index: bugdisplay.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- bugdisplay.html 28 Feb 2002 17:31:45 -0000 1.17
+++ bugdisplay.html 28 Feb 2002 17:48:58 -0000 1.18
@@ -228,7 +228,7 @@
</table>
</form>
{vote_error}
-<b><a href="{me}?op=vote&bugid={bugid}" onClick="if ({already_voted}) { alert ('You have already voted for this bug'); return false; }">Vote for this bug</a></b> |
+<b><a href="{me}?op=vote&bugid={bugid}" onClick="if ({already_voted}) { alert ('{already_voted_string}'); return false; }">Vote for this bug</a></b> |
<b><a href="{me}?op=viewvotes&bugid={bugid}">View votes ({num_votes}) for this bug</a></b> |
<b><a href="{me}?op=history&bugid={bugid}">View bug activity</a></b> |
<b><a href="{me}?op=print&&bugid={bugid}">Printable view</a></b>
|