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-29 17:40:10
|
Update of /cvsroot/phpbt/phpbt/schemas
In directory usw-pr-cvs1:/tmp/cvs-serv8445/schemas
Modified Files:
oci8.in
Log Message:
Getting closer to oracle working
Index: oci8.in
===================================================================
RCS file: /cvsroot/phpbt/phpbt/schemas/oci8.in,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- oci8.in 26 Mar 2002 18:43:25 -0000 1.6
+++ oci8.in 29 Mar 2002 17:40:07 -0000 1.7
@@ -57,7 +57,7 @@
bug_id number(10) default '0' NOT NULL,
title varchar2(100) default '' NOT NULL,
description varchar2(4000) NOT NULL ,
- url varchar2(255) default '' NOT NULL,
+ url varchar2(255) default '',
severity_id number(3) default '0' NOT NULL,
priority number(3) default '0' NOT NULL,
status_id number(3) default '0' NOT NULL,
@@ -259,13 +259,13 @@
(user_id, login, first_name, last_name, email, password)
values (1, 'OPTION_ADMIN_EMAIL', 'System', 'Admin', 'OPTION_ADMIN_EMAIL',
'OPTION_ADMIN_PASS');
-INSERT INTO TBL_DB_SEQUENCE values ('TBL_AUTH_USER', 1);
+CREATE SEQUENCE TBL_AUTH_USER_seq START WITH 2 NOCACHE;
-- 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) VALUES (3, 'Developer', 1);
-CREATE SEQUENCE TBL_AUTH_USER_seq START WITH 1;
+CREATE SEQUENCE TBL_AUTH_GROUP_seq START WITH 4 NOCACHE;
-- ... and only two permissions
INSERT INTO TBL_AUTH_PERM (perm_id, perm_name) VALUES (1, 'Admin');
@@ -333,7 +333,7 @@
INSERT INTO TBL_OS VALUES (29,'Solaris',29,'/Mozilla.*\\(.*;.*; SunOS 5.*\\)/');
INSERT INTO TBL_OS VALUES (30,'SunOS',30,'/Mozilla.*\\(.*;.*; SunOS.*\\)/');
INSERT INTO TBL_OS VALUES (31,'other',31,'');
-CREATE SEQUENCE TBL_OS_seq START WITH 31;
+CREATE SEQUENCE TBL_OS_seq START WITH 32 NOCACHE;
INSERT INTO TBL_RESOLUTION VALUES (1,'Fixed','Bug was eliminated',1);
INSERT INTO TBL_RESOLUTION VALUES (2,'Not a bug','It''s not a bug -- it''s a feature!',2);
@@ -341,7 +341,7 @@
INSERT INTO TBL_RESOLUTION VALUES (4,'Deferred','We''ll get around to it later',4);
INSERT INTO TBL_RESOLUTION VALUES (5,'Works for me','Can''t replicate the bug',5);
INSERT INTO TBL_RESOLUTION VALUES (6,'Duplicate','',6);
-CREATE SEQUENCE TBL_RESOLUTION_seq START WITH 6;
+CREATE SEQUENCE TBL_RESOLUTION_seq START WITH 7 NOCACHE;
INSERT INTO TBL_SEVERITY VALUES (1,'Unassigned','Default bug creation',1,'#dadada');
INSERT INTO TBL_SEVERITY VALUES (2,'Idea','Ideas for further development',2,'#dad0d0');
@@ -350,7 +350,7 @@
INSERT INTO TBL_SEVERITY VALUES (5,'Content','Non-functional related bugs, such as text content',5,'#dababa');
INSERT INTO TBL_SEVERITY VALUES (6,'Significant','A bug affecting the intended performance of the product',6,'#dab0b0');
INSERT INTO TBL_SEVERITY VALUES (7,'Critical','A bug severe enough to prevent the release of the product',7,'#daaaaa');
-CREATE SEQUENCE TBL_SEVERITY_seq START WITH 7;
+CREATE SEQUENCE TBL_SEVERITY_seq START WITH 8 NOCACHE;
INSERT INTO TBL_STATUS VALUES (1,'Unconfirmed','Reported but not confirmed',1);
INSERT INTO TBL_STATUS VALUES (2,'New','A new bug',2);
@@ -359,4 +359,4 @@
INSERT INTO TBL_STATUS VALUES (5,'Resolved','Set by engineer with a resolution',5);
INSERT INTO TBL_STATUS VALUES (6,'Verified','The resolution is confirmed by the reporter',6);
INSERT INTO TBL_STATUS VALUES (7,'Closed','The bug is officially squashed (QA)',7);
-CREATE SEQUENCE TBL_STATUS_seq START WITH 7;
+CREATE SEQUENCE TBL_STATUS_seq START WITH 8 NOCACHE;
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 22:26:10
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv15731/admin
Modified Files:
project.php
Log Message:
Cleanup
Index: project.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/project.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- project.php 28 Mar 2002 17:12:46 -0000 1.33
+++ project.php 28 Mar 2002 22:26:06 -0000 1.34
@@ -315,9 +315,11 @@
if (!isset($_gv['order'])) { $order = '1'; $sort = 'asc'; }
else { $order = $_gv['order']; $sort = $_gv['sort']; }
+ $page = isset($_gv['page']) ? $_gv['page'] : 1;
+
$nr = $db->getOne("select count(*) from ".TBL_PROJECT);
- list($selrange, $llimit, $npages, $pages) = multipages($nr,$_gv['page'],
+ list($selrange, $llimit, $npages, $pages) = multipages($nr, $page,
"order=$order&sort=$sort");
$t->set_var(array(
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 22:26:10
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv15731
Modified Files:
index.php
Log Message:
Cleanup
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- index.php 27 Mar 2002 23:19:07 -0000 1.25
+++ index.php 28 Mar 2002 22:26:06 -0000 1.26
@@ -141,8 +141,8 @@
$rs = $db->query("$querystring, count(bug_id) as \"Total\" from ".TBL_BUG.
" b left join ".TBL_PROJECT." p using (project_id)".
- " where b.project_id not in ($restricted_projects) group by b.project_id".
- " order by project_name");
+ " where b.project_id not in ($restricted_projects) group by b.project_id,".
+ " project_name order by project_name");
if (!$rs->numRows()) {
$t->set_var('projblock', '');
} else {
@@ -186,11 +186,11 @@
if (DB::isError($rs) or !$rs->numRows()) {
$t->set_var('recentrows', $STRING['nobugs']);
} else {
- while (extract($rs->fetchRow())) {
+ while ($rs->fetchInto($recent)) {
$t->set_var(array(
- 'title' => stripslashes($title),
- 'bugid' => $bug_id,
- 'project' => stripslashes($project_name)
+ 'title' => stripslashes($recent['title']),
+ 'bugid' => $recent['bug_id'],
+ 'project' => stripslashes($recent['project_name'])
));
$t->parse('recentrows', 'recentrow', true);
}
@@ -204,11 +204,11 @@
if (DB::isError($rs) or !$rs->numRows()) {
$t->set_var('closerows', $STRING['nobugs']);
} else {
- while (extract($rs->fetchRow())) {
+ while ($rs->fetchInto($closed)) {
$t->set_var(array(
- 'title' => stripslashes($title),
- 'bugid' => $bug_id,
- 'project' => stripslashes($project_name)
+ 'title' => stripslashes($closed['title']),
+ 'bugid' => $closed['bug_id'],
+ 'project' => stripslashes($closed['project_name'])
));
$t->parse('closerows', 'closerow', true);
}
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 22:18:48
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv13788
Modified Files:
upgrade.php
Log Message:
Different query for checking if upgrade has already happened
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/upgrade.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- upgrade.php 28 Mar 2002 22:11:45 -0000 1.18
+++ upgrade.php 28 Mar 2002 22:18:44 -0000 1.19
@@ -29,7 +29,7 @@
global $db;
// Note, no upgrades for oracle since we didn't support oracle before 0.8.0
- $upgraded = $db->getOne('select count(*) from '.TBL_BUG.'_seq');
+ $upgraded = $db->getOne('select varname from '.TBL_CONFIGURATION.' where varname = \'FORCE_LOGIN\'');
if (!$upgraded or DB::isError($upgraded)) {
// Convert the sequences
if (DB_TYPE == 'mysql') {
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 22:14:48
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv12757
Modified Files:
include.php newaccount.php
Log Message:
Cleaned up the forced login
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- include.php 28 Mar 2002 20:47:06 -0000 1.103
+++ include.php 28 Mar 2002 22:14:44 -0000 1.104
@@ -222,8 +222,7 @@
}
-if (FORCE_LOGIN and !$u and
- !strstr($HTTP_SERVER_VARS['SCRIPT_NAME'], 'newaccount.php')) {
+if (defined('FORCE_LOGIN') and FORCE_LOGIN and !$u and !defined('NO_AUTH')) {
include(INSTALL_PATH.'/templates/'.THEME.'/login.html');
exit;
}
Index: newaccount.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- newaccount.php 17 Mar 2002 01:44:24 -0000 1.24
+++ newaccount.php 28 Mar 2002 22:14:44 -0000 1.25
@@ -22,6 +22,7 @@
// ------------------------------------------------------------------------
// $Id$
+define('NO_AUTH', 1);
include 'include.php';
function do_form() {
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 22:11:48
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv11968
Modified Files:
upgrade.php
Log Message:
FORCE_LOGIN default to off
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/upgrade.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- upgrade.php 28 Mar 2002 20:47:06 -0000 1.17
+++ upgrade.php 28 Mar 2002 22:11:45 -0000 1.18
@@ -57,7 +57,7 @@
}
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('RECALL_LOGIN','0','Enable use of cookies to store username between logins','bool')");
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('SHOW_PROJECT_SUMMARIES', '1', 'Itemize bug stats by project on the home page', 'bool')");
- $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('FORCE_LOGIN', '1', 'Force users to login before being able to use the bug tracker', 'bool')");
+ $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('FORCE_LOGIN', '0', 'Force users to login before being able to use the bug tracker', 'bool')");
}
include 'templates/default/upgrade-finished.html';
}
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 21:08:08
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory usw-pr-cvs1:/tmp/cvs-serv22128/templates/default Modified Files: index.html Log Message: Mozilla starting collapsing this Index: index.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/index.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- index.html 26 Mar 2002 18:44:33 -0000 1.6 +++ index.html 28 Mar 2002 21:01:45 -0000 1.7 @@ -1,6 +1,6 @@ <table border=0 width="100%"> <tr> - <td valign="top"> + <td valign="top" width="250"> <b>Five most recently submitted bugs:</b> <br> <!-- BEGIN recentrow --> |
|
From: Benjamin C. <bc...@us...> - 2002-03-28 20:47:13
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv17805
Modified Files:
include.php upgrade.php
Log Message:
Add the ability to restrict the bug tracker from anonymous browsing
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- include.php 26 Mar 2002 18:40:27 -0000 1.102
+++ include.php 28 Mar 2002 20:47:06 -0000 1.103
@@ -186,8 +186,9 @@
// Check to see if the user is trying to login
if (isset($_pv['dologin'])) {
- if (isset($_pv['sendpass'])) {
- list($email, $password) = $db->getRow("select email, password from ".TBL_AUTH_USER." where login = '{$_pv['username']}' and active > 0");
+ if (!empty($_pv['sendpass'])) {
+ $username = $_pv['username'];
+ list($email, $password) = $db->getRow("select email, password from ".TBL_AUTH_USER." where login = '{$_pv['username']}' and active > 0", null, DB_FETCHMODE_ORDERED);
if (!$email) {
$t->set_var('loginerror', '<div class="error">Invalid login</div>');
} else {
@@ -200,10 +201,12 @@
$password), sprintf("From: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n",ADMIN_EMAIL, $STRING['lang_charset']));
$t->set_var('loginerror',
'<div class="result">Your password has been emailed to you</div>');
+ $emailsuccess = true;
}
} else {
if (!$u = $auth->auth_validatelogin()) {
$t->set_var('loginerror', '<div class="error">Invalid login</div>');
+ $username = $_pv['username'];
}
}
@@ -217,6 +220,12 @@
}
}
+}
+
+if (FORCE_LOGIN and !$u and
+ !strstr($HTTP_SERVER_VARS['SCRIPT_NAME'], 'newaccount.php')) {
+ include(INSTALL_PATH.'/templates/'.THEME.'/login.html');
+ exit;
}
$op = isset($_gv['op']) ? $_gv['op'] : (isset($_pv['op']) ? $_pv['op'] : '');
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/upgrade.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- upgrade.php 26 Mar 2002 18:43:25 -0000 1.16
+++ upgrade.php 28 Mar 2002 20:47:06 -0000 1.17
@@ -57,6 +57,7 @@
}
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('RECALL_LOGIN','0','Enable use of cookies to store username between logins','bool')");
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('SHOW_PROJECT_SUMMARIES', '1', 'Itemize bug stats by project on the home page', 'bool')");
+ $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('FORCE_LOGIN', '1', 'Force users to login before being able to use the bug tracker', 'bool')");
}
include 'templates/default/upgrade-finished.html';
}
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 20:47:13
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv17805/templates/default
Modified Files:
login.html
Log Message:
Add the ability to restrict the bug tracker from anonymous browsing
Index: login.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/login.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- login.html 1 Aug 2001 13:55:56 -0000 1.1
+++ login.html 28 Mar 2002 20:47:06 -0000 1.2
@@ -1,21 +1,7 @@
-<?php
-
-global $formvars;
-if (!$formvars) {
- $formvars = htmlentities(serialize($GLOBALS[HTTP_POST_VARS]));
-}
-?>
-
<html>
<head>
<title>phpBugTracker Login</title>
- <!--<link rel="StyleSheet" href="/siteadmin.css" type="text/css">-->
- <style>
- td { font-family: "Verdana","Tahoma","Arial","Helvetica","Times";
- color: rgb(0,0,0);
- font-size: 9px; }
-
- </style>
+ <link rel="StyleSheet" href="css.php" type="text/css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#004433" alink="#004433" vlink="#004433">
<center>
@@ -25,8 +11,7 @@
<div align='center'><b>User Login</b></div>
<br>
- <form action='<?php print $GLOBALS[REQUEST_URI] ?>' method='post'>
- <input type="hidden" name="formvars" value="<?php echo $formvars ?>">
+ <form action='index.php' method='post'>
<table border="0">
<?php global $username, $emailsuccess; if (isset($username)) { ?>
<tr>
@@ -44,10 +29,10 @@
</tr>
<?php } ?>
<tr>
- <td>Login (Email):</td>
+ <td><?php echo EMAIL_IS_LOGIN ? 'Email' : 'Login' ?></td>
</tr>
<tr>
- <td><input size="30" name='username' value='<?php if (isset($this->auth["uname"])) print $this->auth["uname"] ?>'></td>
+ <td><input size="30" name='username' value='<?php if (isset($_sv["uname"])) print $_sv["uname"] ?>'></td>
</tr>
<tr>
<td>Password:</td>
@@ -57,10 +42,12 @@
</tr>
<tr>
<td align="right">
- <input type="submit" name="emailpass" value="Email my password">
+ <input type="submit" name="sendpass" value="Email my password">
<input type="submit" value="Go">
+ <input type="hidden" name="dologin" value="1">
</td>
</tr>
+ <?php if (!NEW_ACCOUNTS_DISABLED) { ?>
<tr>
<td align="center">
<hr size="1" color="#000000" width="140">
@@ -69,6 +56,7 @@
<a href="newaccount.php">Open a new account</a>
</td>
</tr>
+ <?php } ?>
</table>
</form>
</center>
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 19:13:24
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv22482
Modified Files:
query.php
Log Message:
Added a simple query page which is now the default query form
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- query.php 28 Mar 2002 17:05:50 -0000 1.63
+++ query.php 28 Mar 2002 19:13:21 -0000 1.64
@@ -33,32 +33,37 @@
}
function show_query() {
- global $db, $t, $TITLE, $u;
+ global $db, $t, $TITLE, $u, $_gv;
- $t->set_file('content','queryform.html');
- $t->set_block('content', 'savequeryblock', 'sqblock');
- $t->set_block('savequeryblock','row','rows');
-
- if ($u != 'nobody') {
- // Grab the saved queries if there are any
- $rs = $db->query("select * from ".TBL_SAVED_QUERY." where user_id = '$u'");
- if (!$rs->numRows()) {
- $t->set_var('rows','');
- } else {
- while ($rs->fetchInto($row)) {
- $t->set_var(array(
- 'savedquerystring' => $row['saved_query_string'],
- 'savedqueryname' => stripslashes($row['saved_query_name']),
- 'savedqueryid' => $row['saved_query_id']
- ));
- $t->parse('rows', 'row', true);
+ // Show the advanced query form
+ if (!empty($_gv['form']) and $_gv['form'] == 'advanced') {
+ $t->set_file('content','queryform.html');
+ $t->set_block('content', 'savequeryblock', 'sqblock');
+ $t->set_block('savequeryblock','row','rows');
+
+ if ($u != 'nobody') {
+ // Grab the saved queries if there are any
+ $rs = $db->query("select * from ".TBL_SAVED_QUERY." where user_id = '$u'");
+ if (!$rs->numRows()) {
+ $t->set_var('rows','');
+ } else {
+ while ($rs->fetchInto($row)) {
+ $t->set_var(array(
+ 'savedquerystring' => $row['saved_query_string'],
+ 'savedqueryname' => stripslashes($row['saved_query_name']),
+ 'savedqueryid' => $row['saved_query_id']
+ ));
+ $t->parse('rows', 'row', true);
+ }
}
+ $t->parse('sqblock', 'savequeryblock', true);
+ } else {
+ $t->set_var('sqblock', '');
}
- $t->parse('sqblock', 'savequeryblock', true);
- } else {
- $t->set_var('sqblock', '');
+ } else { // or show the simple one
+ $t->set_file('content','queryform-simple.html');
}
-
+
$t->set_var(array(
'js' => build_project_js(),
'status' => build_select('status'),
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 19:13:24
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv22482/templates/default
Modified Files:
queryform.html
Added Files:
queryform-simple.html
Log Message:
Added a simple query page which is now the default query form
--- NEW FILE: queryform-simple.html ---
<script language="JavaScript">
<!--
versions = new Array();
components = new Array();
versions['All'] = new Array(new Array('','All'));
components['All'] = new Array(new Array('','All'));
{js}
function updateMenus(f) {
sel = f.projects[f.projects.selectedIndex].text;
f.versions.length = versions[sel].length;
for (var x = 0; x < versions[sel].length; x++) {
f.versions.options[x].value = versions[sel][x][0];
f.versions.options[x].text = versions[sel][x][1];
}
f.components.length = components[sel].length;
for (var x = 0; x < components[sel].length; x++) {
f.components.options[x].value = components[sel][x][0];
f.components.options[x].text = components[sel][x][1];
}
}
//-->
</script>
<form method="get" action="query.php" name="query">
<table>
<tr>
<td valign="top"><b>Project:</b></td>
<td valign="top">
<select name="projects" onChange="updateMenus(this.form)">
<option value=''>All</option>
{projects}
</select>
</td>
</tr>
<tr>
<td valign="top"><b>Version:</b></td>
<td valign="top">
<select name="versions"><option value=''>All</option></select>
</td>
</tr>
<tr>
<td valign="top"><b>Component:</b></td>
<td valign="top">
<select name="components"><option value=''>All</option></select>
</td>
</tr>
<tr>
<td valign="top"><b>Status:</b></td>
<td valign="top">
<select name="status[]" multiple size="7">{status}</select>
</td>
</tr>
<tr>
<td valign="top"><b>Sort By:</b></td>
<td valign="top">
<select name="order">
<option value="bug_id">
Bug Number
</option>
<option selected value="severity.sort_order">
Severity
</option>
<option value="reporter">
Reporter
</option>
<option value="status.sort_order">
Status
</option>
<option value="priority">
Priority
</option>
</select>
<select name="sort">
<option selected value="asc">Ascending</option>
<option value="desc">Descending</option>
</select>
</td>
</tr>
</table>
<br>
<br>
<input type="hidden" name="op" value="doquery">
<input type="reset" value="Reset back to the default query">
<input type="submit" value="Submit query">
</form>
<br>
Go to the <a href="{me}?op=query&form=advanced">advanced query page</a>
</body>
</html>
Index: queryform.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/queryform.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- queryform.html 16 Oct 2001 04:19:49 -0000 1.6
+++ queryform.html 28 Mar 2002 19:13:21 -0000 1.7
@@ -225,6 +225,8 @@
<!-- END row -->
<!-- END savequeryblock -->
</form>
+ <br>
+ Go to the <a href="{me}?op=query">simple query page</a>
</body>
</html>
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 17:12:54
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv22130
Modified Files:
project.php
Log Message:
Cleanup
Index: project.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/project.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- project.php 17 Mar 2002 01:38:31 -0000 1.32
+++ project.php 28 Mar 2002 17:12:46 -0000 1.33
@@ -308,15 +308,16 @@
}
function list_projects() {
- global $me, $db, $t, $selrange, $order, $sort, $STRING, $TITLE, $page;
+ global $me, $db, $t, $selrange, $_gv, $STRING, $TITLE;
$t->set_file('content','projectlist.html');
$t->set_block('content','row','rows');
- if (!$order) { $order = '1'; $sort = 'asc'; }
+ if (!isset($_gv['order'])) { $order = '1'; $sort = 'asc'; }
+ else { $order = $_gv['order']; $sort = $_gv['sort']; }
$nr = $db->getOne("select count(*) from ".TBL_PROJECT);
- list($selrange, $llimit, $npages, $pages) = multipages($nr,$page,
+ list($selrange, $llimit, $npages, $pages) = multipages($nr,$_gv['page'],
"order=$order&sort=$sort");
$t->set_var(array(
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 17:05:53
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv20358
Modified Files:
query.php
Log Message:
Cleanup
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- query.php 27 Mar 2002 17:52:00 -0000 1.62
+++ query.php 28 Mar 2002 17:05:50 -0000 1.63
@@ -134,8 +134,8 @@
// Project/Version/Component
if (!empty($projects)) {
$proj[] = "b.project_id = $projects";
- if ($versions) $proj[] = "b.version_id = $versions";
- if ($components) $proj[] = "b.component_id = $components";
+ if (!empty($versions)) $proj[] = "b.version_id = $versions";
+ if (!empty($components)) $proj[] = "b.component_id = $components";
$query[] = '('.delimit_list(' and ',$proj).')';
} elseif (!$perm->have_perm('Admin')) { // Filter results from hidden projects
$query[] = "b.project_id not in ($restricted_projects)";
|
|
From: Benjamin C. <bc...@us...> - 2002-03-28 15:05:48
|
Update of /cvsroot/phpbt/phpbt/languages In directory usw-pr-cvs1:/tmp/cvs-serv16101/languages Modified Files: et.php Log Message: Index: et.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/et.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- et.php 27 Mar 2002 18:06:44 -0000 1.1 +++ et.php 28 Mar 2002 15:05:44 -0000 1.2 @@ -73,8 +73,8 @@ 0 => 'Kõik kasutajad', 1 => 'Aktiivsed kasutajad', 2 => 'Suletud/mitteaktiivsed kasutajad'), - 'dupe_dependency' => 'That bug dependency has already been added', - 'image_path_not_writeable' => 'The subdirectory "jpgimages" is not writeable by the web process, so the summary image can not be rendered' + 'dupe_dependency' => 'Selle vea sõltuvus on juba paika seatud', + 'image_path_not_writeable' => 'Alamkataloog "jpgimages" ei ole üle võrgu kirjutatav, seega ei suuda kokkuvõtte pilti renderdada' ); // Page titles |
|
From: Ben C. <php...@be...> - 2002-03-28 00:49:27
|
I tested this both with globals on and globals off and found that both
ways worked. Could someone else test it and see what results you get,
so we can try to isolate the problem? Thanks!
On Thu, Mar 28, 2002 at 12:05:01AM +0000, John Wilkins wrote:
> All,
>
> I updated by local dev copy of phpbt from cvs last week and subsequently
> found that I could not successfully log in - or rather that after
> logging
> in, the next page load would 'forget' I'd logged in.
>
> After many hours, I think that I've found the root cause to be the
> setting for register_globals in php.ini.
>
> The default out-of-the-box RedHat 7.2 install has this set to
> register_globals = On
>
> The result of this appears to be that calls such as
> $HTTP_SESSION_VARS['fred']='wilma';
> have no affect (ie no data gets written to the session file,
> typically /tmp/sess_*).
>
> Now located, this is easily changed to
> register_globals = Off
> and all seems to work properly.
>
> However, my concern is that I've had to change a default setting from
> the default ini file in one of the most recent Linux distros - it's more
> than likely that this could catch out others - particularly first time
> installers that may just give up on phpbt.
>
> It's hardly a real sample, but I've just checked my web hosts' PHP
> config
> and they too have register_globals=On - so it's not just my strange
> config.
>
> At the least, I think it would be worth adding something to the install
> script such as :
> if(ini_get("register_globals")==1){
> echo "having register_globals = On will cause trouble";
> /* or words to this effect! */
> }
>
> Or, should the session code be independant of the setting of
> register_globals?
>
> john
>
> --
> email : jp...@us... | usenet user since 1995
> Linux Counter Project : Registered user #21442 (http://counter.li.org)
>
> _______________________________________________
> phpbt-dev mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpbt-dev
|
|
From: John W. <joh...@wi...> - 2002-03-28 00:03:49
|
All,
I updated by local dev copy of phpbt from cvs last week and subsequently
found that I could not successfully log in - or rather that after
logging
in, the next page load would 'forget' I'd logged in.
After many hours, I think that I've found the root cause to be the
setting for register_globals in php.ini.
The default out-of-the-box RedHat 7.2 install has this set to
register_globals = On
The result of this appears to be that calls such as
$HTTP_SESSION_VARS['fred']='wilma';
have no affect (ie no data gets written to the session file,
typically /tmp/sess_*).
Now located, this is easily changed to
register_globals = Off
and all seems to work properly.
However, my concern is that I've had to change a default setting from
the default ini file in one of the most recent Linux distros - it's more
than likely that this could catch out others - particularly first time
installers that may just give up on phpbt.
It's hardly a real sample, but I've just checked my web hosts' PHP
config
and they too have register_globals=On - so it's not just my strange
config.
At the least, I think it would be worth adding something to the install
script such as :
if(ini_get("register_globals")==1){
echo "having register_globals = On will cause trouble";
/* or words to this effect! */
}
Or, should the session code be independant of the setting of
register_globals?
john
--
email : jp...@us... | usenet user since 1995
Linux Counter Project : Registered user #21442 (http://counter.li.org)
|
|
From: Benjamin C. <bc...@us...> - 2002-03-27 23:19:10
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv29808
Modified Files:
index.php
Log Message:
Fixed a bug with the recent bugs list
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- index.php 27 Mar 2002 18:01:33 -0000 1.24
+++ index.php 27 Mar 2002 23:19:07 -0000 1.25
@@ -189,7 +189,7 @@
while (extract($rs->fetchRow())) {
$t->set_var(array(
'title' => stripslashes($title),
- 'bugid' => $bugid,
+ 'bugid' => $bug_id,
'project' => stripslashes($project_name)
));
$t->parse('recentrows', 'recentrow', true);
@@ -207,7 +207,7 @@
while (extract($rs->fetchRow())) {
$t->set_var(array(
'title' => stripslashes($title),
- 'bugid' => $bugid,
+ 'bugid' => $bug_id,
'project' => stripslashes($project_name)
));
$t->parse('closerows', 'closerow', true);
|
|
From: Benjamin C. <bc...@us...> - 2002-03-27 21:20:52
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv14291 Modified Files: CHANGELOG Log Message: Index: CHANGELOG =================================================================== RCS file: /cvsroot/phpbt/phpbt/CHANGELOG,v retrieving revision 1.50 retrieving revision 1.51 diff -u -r1.50 -r1.51 --- CHANGELOG 20 Mar 2002 20:04:37 -0000 1.50 +++ CHANGELOG 27 Mar 2002 21:20:49 -0000 1.51 @@ -3,7 +3,12 @@ : Added bug dependencies. : Added Oracle 8.1.x support. : Added "Remember me" functionality. -: Fixed bug with losing login info when register_globals = off. +: Fixed bugs with losing login info. +: Added detailed project stats to the home page. +: Added Estonian translation (Alvar Soome) and Italian translation + (Gaetano Giunta). +: Added the ability for users to choose not to receive bug update emails. +: Fixed other minor bugs. -- 0.7.2 -- 14 Mar 2002 : Bugs were fixed with project restrictions and front-page summary info. |
|
From: Benjamin C. <bc...@us...> - 2002-03-27 21:10:38
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv7724/templates/default
Modified Files:
bugdisplay.html
Log Message:
Fixes bug #535200 -- Summary field getting chopped
Index: bugdisplay.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- bugdisplay.html 18 Mar 2002 17:43:17 -0000 1.20
+++ bugdisplay.html 27 Mar 2002 21:10:33 -0000 1.21
@@ -100,7 +100,7 @@
<td>Status:</td>
<td><b>{status}</b></td>
<td>Summary:</td>
- <td><input type="text" size="30" maxlength="30" name="title" value="{title}"></td>
+ <td><input type="text" size="30" maxlength="100" name="title" value="{title}"></td>
</tr>
<tr>
<td>Resolution:</td>
|
|
From: Benjamin C. <bc...@us...> - 2002-03-27 20:48:38
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv21632/inc
Modified Files:
auth.php
Log Message:
Fixing namespace collision problem with global and session vars
Index: auth.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/auth.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- auth.php 27 Mar 2002 17:52:09 -0000 1.12
+++ auth.php 27 Mar 2002 20:48:32 -0000 1.13
@@ -89,7 +89,7 @@
TBL_GROUP_PERM." gp where group_id in (".
delimit_list(',', $HTTP_SESSION_VARS['group_ids']).") and gp.perm_id = ap.perm_id");
foreach ($perms as $perm) {
- $HTTP_SESSION_VARS['perm'][$perm] = true;
+ $HTTP_SESSION_VARS['perms'][$perm] = true;
}
$HTTP_SESSION_VARS['uid'] = $u['user_id'];
@@ -101,7 +101,7 @@
global $HTTP_SESSION_VARS;
$HTTP_SESSION_VARS['uid'] = 0;
- $HTTP_SESSION_VARS['perm'] = array();
+ $HTTP_SESSION_VARS['perms'] = array();
$HTTP_SESSION_VARS['exp'] = 0;
$HTTP_SESSION_VARS['group'] = array();
$HTTP_SESSION_VARS['group_ids'] = array(0);
@@ -117,10 +117,10 @@
global $HTTP_SESSION_VARS;
if (!$this->have_perm($p)) {
- if (!isset($HTTP_SESSION_VARS['perm']) ) {
- $HTTP_SESSION_VARS['perm'] = '';
+ if (!isset($HTTP_SESSION_VARS['perms']) ) {
+ $HTTP_SESSION_VARS['perms'] = '';
}
- $this->perm_invalid($HTTP_SESSION_VARS['perm'], $p);
+ $this->perm_invalid($HTTP_SESSION_VARS['perms'], $p);
exit();
}
}
@@ -156,12 +156,12 @@
function have_perm($req_perms) {
- return $this->check_auth('perm', $req_perms);
+ return $this->check_auth('perms', $req_perms);
}
- function perm_invalid() {
- global $t, $HTTP_SESSION_VARS;
+ function perm_invalid($actual_perms, $required_perms) {
+ global $t;
$t->set_file('content','badperm.html');
$t->pparse('main',array('content','wrap','main'));
|
|
From: Benjamin C. <bc...@us...> - 2002-03-27 18:27:41
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv18193
Modified Files:
report.php index.php
Log Message:
Some Oracle tweaks suggested by Liam
Index: report.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/report.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- report.php 17 Mar 2002 01:42:40 -0000 1.20
+++ report.php 27 Mar 2002 18:01:33 -0000 1.21
@@ -69,6 +69,7 @@
$t->parse('rows', 'row', true);
$t->set_var('cols', '');
$i = 0;
+ $db->setOption('optimize', 'performance'); // For Oracle to do this loop
while ($rs->fetchInto($row)) {
foreach ($resfields as $col) {
if (!isset($row[$col]) || $row[$col] == '') {
@@ -91,6 +92,7 @@
//for header default
$t->set_var('trclass','alt');
}
+ $db->setOption('optimize', 'portability');
}
}
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- index.php 26 Mar 2002 18:44:32 -0000 1.23
+++ index.php 27 Mar 2002 18:01:33 -0000 1.24
@@ -155,6 +155,7 @@
$t->parse('prows', 'projectrow', true);
$t->set_var('cols', '');
$i = 0;
+ $db->setOption('optimize', 'performance'); // For Oracle to do this loop
while ($rs->fetchInto($row)) {
foreach ($resfields as $col) {
$t->set_var(array(
@@ -172,6 +173,7 @@
}
$t->parse('projblock', 'projectsummaryblock', true);
$rs->free();
+ $db->setOption('optimize', 'portability');
}
} else {
$t->set_var('projblock', '');
|
|
From: Benjamin C. <bc...@us...> - 2002-03-27 18:27:40
|
Update of /cvsroot/phpbt/phpbt/languages In directory usw-pr-cvs1:/tmp/cvs-serv21844/languages Added Files: et.php Log Message: Estonian strings and titles translated by Alvar Soome --- NEW FILE: et.php --- <?php // et.php - Estonian strings and titles // ------------------------------------------------------------------------ // Copyright (c) 2002 Alvar Soome (FinSoft) <al...@we...> // ------------------------------------------------------------------------ // 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. // ------------------------------------------------------------------------ // $Id: et.php,v 1.1 2002/03/27 18:06:44 bcurtis Exp $ $STRING = array( 'lang_charset' => 'iso-8859-1', 'nouser' => 'Kasutajat ei eksisteeri', 'dupeofself' => 'Viga ei saa olla iseenda dublikaat', 'nobug' => 'Viga ei eksisteeri', 'givesummary' => 'Sisestage kokkuvõte', 'givedesc' => 'Sisestage kirjeldus', 'noprojects' => 'Projekte ei leitud', 'totalbugs' => 'Kokku vigu', 'giveemail' => 'Palun sisestage õige emaili aadress', 'givelogin' => 'Andke kasutajanimi', 'loginused' => 'See kasutajanimi on juba olemas', 'newacctsubject' => 'phpBugTrackeri sisselogimine', 'newacctmessage' => "Teie phpBugTrackeri parool on %s", 'nobugs' => 'Vigu ei leitud', 'givename' => 'Palun sisestage nimi', 'edit' => 'Muuda', 'addnew' => 'Lisa uus', 'nooses' => 'Ei leitud OP süsteeme', 'giveinitversion' => 'Sisestage projekti hekteversioon', 'giveversion' => 'Sisestage versioon', 'noversions' => 'Versioone ei leitud', 'nocomponents' => 'Komponente ei leitud', 'nostatuses' => 'Staatuseid ei leitud', 'noseverities' => 'Raskusaste', 'givepassword' => 'Sisestage parool', 'nousers' => 'Kasutajaid ei leitud', 'bugbadperm' => 'Te ei saa seda viga muuta', 'bugbadnum' => 'Seda viga ei eksisteeri', 'datecollision' => 'Keegi muutis seda viga samal ajal kui Teie seda vaatasite. Vea info on uuesti sisse loetud koos uute muudatustega.', 'passwordmatch' => 'Parooli ei ühti, sisestage uuesti', 'nobughistory' => 'Selle vea kohta pole ajalugu', 'logintomodify' => 'Te peate sisse logitud olema, et viga muuta', 'dupe_attachment' => 'Selline lisa on juba veal olemas', 'give_attachment' => 'Määrake fail üleslaadimiseks', 'no_attachment_save_path' => 'Ei leitud kataloogi kuhu fail salvestada!', 'attachment_path_not_writeable' => 'Ei suutnud määratud kataloogi faili salvestada', 'attachment_move_error' => 'Tekkis viga lisa liigutamisel', 'bad_attachment' => 'Seda lisa ei eksisteeri', 'attachment_too_large' => 'Teie antud fail on suurem kui '.number_format(ATTACHMENT_MAX_SIZE).' baiti', 'bad_permission' => 'Teil pole selleks tegevuseks vajalikke õigusi', 'project_only_all_groups' => 'Te ei saa valida eraldi gruppe kui "Kõik grupid" on valitud', 'previous_bug' => 'Eelmine', 'next_bug' => 'Järgmine', 'already_voted' => 'Te olete juba hääletanud', 'too_many_votes' => 'Te olete ületanud maksimaalse häälte arvu kasutaja kohta', 'no_votes' => 'Sellel veal ei ole hääli', 'user_filter' => array( 0 => 'Kõik kasutajad', 1 => 'Aktiivsed kasutajad', 2 => 'Suletud/mitteaktiivsed kasutajad'), 'dupe_dependency' => 'That bug dependency has already been added', 'image_path_not_writeable' => 'The subdirectory "jpgimages" is not writeable by the web process, so the summary image can not be rendered' ); // Page titles $TITLE = array( 'enterbug' => 'Lisa viga', 'editbug' => 'Muuda viga', 'newaccount' => 'Loo uus kasutaja', 'bugquery' => 'Veapäring', 'buglist' => 'Veanimekiri', 'addcomponent' => 'Lisa komponent', 'editcomponent' => 'Muuda komponenti', 'addproject' => 'Lisa projekt', 'editproject' => 'Muuda projekti', 'addversion' => 'Lisa versioon', 'editversion' => 'Muuda versiooni', 'project' => 'Projektid', 'os' => 'Operatsioonisüsteemid', 'resolution' => 'Resolutsioonid', 'status' => 'Staatused', 'severity' => 'Raskusastmed', 'user' => 'Kasutajad', 'home' => 'Esileht', 'reporting' => 'Raport', 'group' => 'Grupid' ); ?> |
|
From: Benjamin C. <bc...@us...> - 2002-03-27 17:52:12
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv12774/inc
Modified Files:
auth.php
Log Message:
Trying to solve some session problems
Index: auth.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/auth.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- auth.php 20 Mar 2002 20:02:51 -0000 1.11
+++ auth.php 27 Mar 2002 17:52:09 -0000 1.12
@@ -28,7 +28,7 @@
var $classname = 'uauth';
function uauth() {
- global $_sv;
+ global $HTTP_SESSION_VARS;
#if (!session_is_registered('auth')) {
# session_register('auth');
@@ -40,34 +40,34 @@
#$this->auth =& $HTTP_SESSION_VARS['auth'];
- if (!isset($_sv['group_ids'])) {
- $_sv['group_ids'] = array(0);
+ if (!isset($HTTP_SESSION_VARS['group_ids'])) {
+ $HTTP_SESSION_VARS['group_ids'] = array(0);
}
if ($this->is_authenticated()) {
- if ($_sv['uid']) {
- $_sv['exp'] = time() + (60 * $this->lifetime);
+ if ($HTTP_SESSION_VARS['uid']) {
+ $HTTP_SESSION_VARS['exp'] = time() + (60 * $this->lifetime);
}
}
}
function is_authenticated() {
- global $_sv;
+ global $HTTP_SESSION_VARS;
- if (isset($_sv['uid']) && $_sv['uid'] &&
- ($this->lifetime <= 0 || time() < $_sv['exp'])) {
- return $_sv['uid'];
+ if (isset($HTTP_SESSION_VARS['uid']) && $HTTP_SESSION_VARS['uid'] &&
+ ($this->lifetime <= 0 || time() < $HTTP_SESSION_VARS['exp'])) {
+ return $HTTP_SESSION_VARS['uid'];
} else {
return false;
}
}
function auth_validatelogin() {
- global $_pv, $db, $select, $emailpass, $emailsuccess, $STRING, $_sv;
+ global $_pv, $db, $select, $emailpass, $emailsuccess, $STRING, $HTTP_SESSION_VARS;
extract($_pv);
if (!$username) return 0;
- $_sv['uname'] = $username;
+ $HTTP_SESSION_VARS['uname'] = $username;
if (ENCRYPT_PASS) {
$password = md5($password);
}
@@ -75,37 +75,37 @@
if (!$u or DB::isError($u)) {
return 0;
} else {
- $_sv['db_fields'] = @unserialize($u['bug_list_fields']);
+ $HTTP_SESSION_VARS['db_fields'] = @unserialize($u['bug_list_fields']);
// Grab group assignments and permissions based on groups
$rs = $db->query("select u.group_id, group_name from ".TBL_USER_GROUP.
" u, ".TBL_AUTH_GROUP." a where user_id = {$u['user_id']} ".
'and u.group_id = a.group_id');
while (list($groupid, $groupname) = $rs->fetchRow(DB_FETCHMODE_ORDERED)) {
- $_sv['group_ids'][] = $groupid;
- $_sv['group'][$groupname] = true;
+ $HTTP_SESSION_VARS['group_ids'][] = $groupid;
+ $HTTP_SESSION_VARS['group'][$groupname] = true;
}
$perms = $db->getCol("select perm_name from ".TBL_AUTH_PERM." ap, ".
TBL_GROUP_PERM." gp where group_id in (".
- delimit_list(',', $_sv['group_ids']).") and gp.perm_id = ap.perm_id");
+ delimit_list(',', $HTTP_SESSION_VARS['group_ids']).") and gp.perm_id = ap.perm_id");
foreach ($perms as $perm) {
- $_sv['perm'][$perm] = true;
+ $HTTP_SESSION_VARS['perm'][$perm] = true;
}
- $_sv['uid'] = $u['user_id'];
+ $HTTP_SESSION_VARS['uid'] = $u['user_id'];
return $u['user_id'];
}
}
function unauth() {
- global $_sv;
+ global $HTTP_SESSION_VARS;
- $_sv['uid'] = 0;
- $_sv['perm'] = array();
- $_sv['exp'] = 0;
- $_sv['group'] = array();
- $_sv['group_ids'] = array(0);
- $_sv['db_fields'] = array();
+ $HTTP_SESSION_VARS['uid'] = 0;
+ $HTTP_SESSION_VARS['perm'] = array();
+ $HTTP_SESSION_VARS['exp'] = 0;
+ $HTTP_SESSION_VARS['group'] = array();
+ $HTTP_SESSION_VARS['group_ids'] = array(0);
+ $HTTP_SESSION_VARS['db_fields'] = array();
}
}
@@ -114,33 +114,33 @@
var $permissions = array ();
function check($p) {
- global $_sv;
+ global $HTTP_SESSION_VARS;
if (!$this->have_perm($p)) {
- if (!isset($_sv['perm']) ) {
- $_sv['perm'] = '';
+ if (!isset($HTTP_SESSION_VARS['perm']) ) {
+ $HTTP_SESSION_VARS['perm'] = '';
}
- $this->perm_invalid($_sv['perm'], $p);
+ $this->perm_invalid($HTTP_SESSION_VARS['perm'], $p);
exit();
}
}
function check_auth($auth_var, $reqs) {
- global $_sv;
+ global $HTTP_SESSION_VARS;
// Administrators always pass
- if (isset($_sv[$auth_var]['Admin'])) {
+ if (isset($HTTP_SESSION_VARS[$auth_var]['Admin'])) {
return true;
}
if (is_array($reqs)) {
foreach ($reqs as $req) {
- if (!isset($_sv[$auth_var][$req])) {
+ if (!isset($HTTP_SESSION_VARS[$auth_var][$req])) {
return false;
}
}
} else {
- if (!isset($_sv[$auth_var][$reqs])) {
+ if (!isset($HTTP_SESSION_VARS[$auth_var][$reqs])) {
return false;
}
}
@@ -161,7 +161,7 @@
function perm_invalid() {
- global $t, $_sv;
+ global $t, $HTTP_SESSION_VARS;
$t->set_file('content','badperm.html');
$t->pparse('main',array('content','wrap','main'));
|
|
From: Benjamin C. <bc...@us...> - 2002-03-27 17:52:04
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv12659
Modified Files:
query.php user.php
Log Message:
Trying to solve some session problems
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- query.php 20 Mar 2002 20:02:51 -0000 1.61
+++ query.php 27 Mar 2002 17:52:00 -0000 1.62
@@ -151,7 +151,7 @@
function list_items($assignedto = 0, $reportedby = 0, $open = 0) {
global $me, $db, $t, $select, $TITLE, $STRING, $_gv, $u,
- $default_db_fields, $all_db_fields, $_sv, $HTTP_SERVER_VARS;
+ $default_db_fields, $all_db_fields, $HTTP_SESSION_VARS, $HTTP_SERVER_VARS;
$t->set_file('content','buglist.html');
$t->set_block('content','row','rows');
@@ -171,32 +171,32 @@
values ($nextid, $u, '$savedqueryname', '$savedquerystring')");
}
if (!isset($order)) {
- if (isset($_sv['queryinfo']['order'])) {
- $order = $_sv['queryinfo']['order'];
- $sort = $_sv['queryinfo']['sort'];
+ if (isset($HTTP_SESSION_VARS['queryinfo']['order'])) {
+ $order = $HTTP_SESSION_VARS['queryinfo']['order'];
+ $sort = $HTTP_SESSION_VARS['queryinfo']['sort'];
} else {
$order = 'bug_id';
$sort = 'asc';
}
}
- $_sv['queryinfo']['order'] = $order;
- $_sv['queryinfo']['sort'] = $sort;
+ $HTTP_SESSION_VARS['queryinfo']['order'] = $order;
+ $HTTP_SESSION_VARS['queryinfo']['sort'] = $sort;
- if (empty($_sv['queryinfo']['query']) or isset($op)) {
- $_sv['queryinfo']['query'] = build_query($assignedto, $reportedby, $open);
+ if (empty($HTTP_SESSION_VARS['queryinfo']['query']) or isset($op)) {
+ $HTTP_SESSION_VARS['queryinfo']['query'] = build_query($assignedto, $reportedby, $open);
}
if (!session_is_registered('queryinfo')) {
session_register('queryinfo');
- $_sv['queryinfo'] = array();
+ $HTTP_SESSION_VARS['queryinfo'] = array();
}
$nr = $db->getOne('select count(*) 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 '.
- (!empty($_sv['queryinfo']['query']) ? "where {$_sv['queryinfo']['query']}": ''));
+ (!empty($HTTP_SESSION_VARS['queryinfo']['query']) ? "where {$HTTP_SESSION_VARS['queryinfo']['query']}": ''));
- $_sv['queryinfo']['numrows'] = $nr;
+ $HTTP_SESSION_VARS['queryinfo']['numrows'] = $nr;
list($selrange, $llimit, $npages, $pages) = multipages($nr,$page,
"order=$order&sort=$sort");
@@ -220,7 +220,7 @@
where b.severity_id = severity.severity_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 and b.project_id = project.project_id '.
- (!empty($_sv['queryinfo']['query']) ? "and {$_sv['queryinfo']['query']} " : '').
+ (!empty($HTTP_SESSION_VARS['queryinfo']['query']) ? "and {$HTTP_SESSION_VARS['queryinfo']['query']} " : '').
"order by $order $sort, bug_id asc", $llimit, $selrange);
$headers = array(
@@ -254,7 +254,7 @@
}
// Header row
- $db_fields = !empty($_sv['db_fields']) ? $_sv['db_fields'] :
+ $db_fields = !empty($HTTP_SESSION_VARS['db_fields']) ? $HTTP_SESSION_VARS['db_fields'] :
$default_db_fields;
foreach ($db_fields as $field) {
$t->set_var(array(
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/user.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- user.php 21 Mar 2002 13:44:54 -0000 1.22
+++ user.php 27 Mar 2002 17:52:01 -0000 1.23
@@ -32,9 +32,9 @@
}
function change_bug_list_columns($column_list) {
- global $db, $u, $t, $_sv;
+ global $db, $u, $t, $HTTP_SESSION_VARS;
- $_sv['db_fields'] = $column_list;
+ $HTTP_SESSION_VARS['db_fields'] = $column_list;
$column_list = serialize($column_list);
$db->query("update ".TBL_AUTH_USER." set bug_list_fields = '$column_list' where user_id = $u");
//$t->set_file('content', 'columnlistchanged.html');
|
|
From: Benjamin C. <bc...@us...> - 2002-03-26 18:44:36
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv12851/templates/default
Modified Files:
index.html
Log Message:
Added detailed project stats. Note that these stats can get very long, thus the configuration option to turn them off. Not tested yet on postgres
Index: index.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/index.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- index.html 26 Mar 2002 17:41:53 -0000 1.5
+++ index.html 26 Mar 2002 18:44:33 -0000 1.6
@@ -35,3 +35,18 @@
</td>
</tr>
</table>
+<br>
+<br>
+<!-- BEGIN projectsummaryblock -->
+<table border="0" cellpadding="4">
+ <!-- BEGIN projectrow -->
+ <tr class="{trclass}">
+ <!-- BEGIN col -->
+ <td class="{colclass}">
+ {coldata}
+ </td>
+ <!-- END col -->
+ </tr>
+ <!-- END projectrow -->
+</table>
+<!-- END projectsummaryblock -->
|