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...> - 2001-12-06 14:28:35
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv6198
Modified Files:
dbchanges.sql include.php
Log Message:
Changes for project -> group management
Index: dbchanges.sql
===================================================================
RCS file: /cvsroot/phpbt/phpbt/dbchanges.sql,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- dbchanges.sql 2001/12/05 04:46:12 1.14
+++ dbchanges.sql 2001/12/06 14:28:31 1.15
@@ -1,3 +1,12 @@
alter table auth_group add locked tinyint(1) not null default 0 after group_name;
update auth_group set locked = 1;
insert into db_sequence values('auth_group', 3);
+
+create table project_group (
+ project_id int(10) unsigned NOT NULL default '0',
+ group_id int(10) unsigned NOT NULL default '0',
+ created_by int(10) unsigned NOT NULL default '0',
+ created_date bigint(20) unsigned NOT NULL default '0',
+ PRIMARY KEY (project_id,group_id),
+ KEY group_id (group_id)
+) TYPE=MyISAM;
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- include.php 2001/12/01 19:51:20 1.79
+++ include.php 2001/12/06 14:28:31 1.80
@@ -77,6 +77,19 @@
return $retval;
}
+ function grab_set($q_string = '') {
+ $retary = array();
+ if ($q_string) $this->query($q_string);
+ while ($row = $this->grab()) { $retary[] = $row; }
+ return $retary;
+ }
+
+ function grab_field_set($q_string = '') {
+ $retary = array();
+ if ($q_string) $this->query($q_string);
+ while ($item = $this->grab_field()) { $retary[] = $item; }
+ return $retary;
+ }
function nextid($seq_name) {
global $auth;
@@ -252,6 +265,14 @@
switch($box) {
case 'group' :
+ if ($project) { // If we are building for project admin page
+ if (!count($value) or (count($value) && in_array(0, $value))) {
+ $sel = ' selected';
+ } else {
+ $sel = '';
+ }
+ $text = "<option value=\"all\"$sel>All Groups</option>";
+ }
$q->query($queries[$box]);
while ($row = $q->grab()) {
if (count($value) && in_array($row[$box.'_id'], $value)) $sel = ' selected';
|
|
From: Benjamin C. <bc...@us...> - 2001-12-06 14:28:34
|
Update of /cvsroot/phpbt/phpbt/schemas In directory usw-pr-cvs1:/tmp/cvs-serv6198/schemas Modified Files: mysql.in pgsql.in Log Message: Changes for project -> group management Index: mysql.in =================================================================== RCS file: /cvsroot/phpbt/phpbt/schemas/mysql.in,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- mysql.in 2001/12/04 14:32:24 1.10 +++ mysql.in 2001/12/06 14:28:31 1.11 @@ -173,6 +173,13 @@ PRIMARY KEY (project_id) ) TYPE=MyISAM; +CREATE TABLE TBL_PROJECT_GROUP ( + project_id int(10) unsigned NOT NULL default '0', + group_id int(10) unsigned NOT NULL default '0', + PRIMARY KEY (project_id,group_id), + KEY group_id (group_id) +) TYPE=MyISAM; + CREATE TABLE TBL_RESOLUTION ( resolution_id int(10) unsigned NOT NULL default '0', resolution_name varchar(30) NOT NULL default '', Index: pgsql.in =================================================================== RCS file: /cvsroot/phpbt/phpbt/schemas/pgsql.in,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- pgsql.in 2001/12/04 14:32:24 1.12 +++ pgsql.in 2001/12/06 14:28:31 1.13 @@ -176,6 +176,14 @@ PRIMARY KEY (project_id) ); +CREATE TABLE TBL_PROJECT_GROUP ( + project_id INT4 NOT NULL DEFAULT '0', + group_id INT4 NOT NULL DEFAULT '0', + created_by INT4 NOT NULL DEFAULT '0', + created_date INT8 NOT NULL DEFAULT '0', + PRIMARY KEY (project_id,group_id) +); + CREATE TABLE TBL_RESOLUTION ( resolution_id INT4 NOT NULL DEFAULT '0', resolution_name varchar(30) NOT NULL DEFAULT '', |
|
From: Benjamin C. <bc...@us...> - 2001-12-06 14:28:24
|
Update of /cvsroot/phpbt/phpbt/languages In directory usw-pr-cvs1:/tmp/cvs-serv6122/languages Modified Files: de.php en.php fr.php gb2312.php no.php pt-br.php ru_koi8-r.php ru_windows-1251.php se.php Log Message: Changes for project -> group management Index: de.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/de.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- de.php 2001/12/04 14:32:23 1.6 +++ de.php 2001/12/06 14:28:21 1.7 @@ -65,7 +65,8 @@ 'attachment_move_error' => 'Es gab einen Fehler beim Bewegen der upzuloadenen Datei', 'bad_attachment' => 'Dieser Dateianhang existiert nicht', 'attachment_too_large' => 'Die angegebene Datei ist größer als '.number_format(ATTACHMENT_MAX_SIZE).' bytes', - 'bad_permission' => 'Sie haben nicht die erforderlichen Rechte für diese Funktion' + 'bad_permission' => 'Sie haben nicht die erforderlichen Rechte für diese Funktion', + 'project_only_all_groups' => 'You cannot choose specific groups when "All Groups" is chosen' ); // Page titles Index: en.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/en.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- en.php 2001/12/04 14:32:24 1.6 +++ en.php 2001/12/06 14:28:21 1.7 @@ -62,7 +62,8 @@ 'attachment_move_error' => 'There was an error moving the uploaded file', 'bad_attachment' => 'That attachment does not exist', 'attachment_too_large' => 'The file you specified is larger than '.number_format(ATTACHMENT_MAX_SIZE).' bytes', - 'bad_permission' => 'You do not have the permissions required for that function' + 'bad_permission' => 'You do not have the permissions required for that function', + 'project_only_all_groups' => 'You cannot choose specific groups when "All Groups" is chosen' ); // Page titles Index: fr.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/fr.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- fr.php 2001/12/04 14:32:24 1.3 +++ fr.php 2001/12/06 14:28:21 1.4 @@ -63,7 +63,8 @@ 'bad_attachment' => 'Ce fichier attaché n\'existe pas', 'attachment_too_large' => 'Le fichier envoyé dépasse la limite des '.number_format(ATTACHMENT_MAX_SIZE).' octets', 'bad_permission' => 'Vous n\'avez pas les droits pour réaliser cette action', - 'noseverities' => 'Pas de criticités trouvées' + 'noseverities' => 'Pas de criticités trouvées', + 'project_only_all_groups' => 'You cannot choose specific groups when "All Groups" is chosen' ); // Page titles Index: gb2312.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/gb2312.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- gb2312.php 2001/12/04 14:32:24 1.2 +++ gb2312.php 2001/12/06 14:28:21 1.3 @@ -65,7 +65,8 @@ 'attachment_move_error' => 'ÒÆ¶¯¸½¼þʱ³ö´í', 'bad_attachment' => '¸½¼þ²»´æÔÚ', 'attachment_too_large' => 'ÄúÉÏÔØµÄ¸½¼þ´óÓÚ '.number_format(ATTACHMENT_MAX_SIZE).' ×Ö½Ú', - 'bad_permission' => 'ÄúûÓÐʹÓÃÕâ¸ö¹¦ÄܵÄȨÏÞ' + 'bad_permission' => 'ÄúûÓÐʹÓÃÕâ¸ö¹¦ÄܵÄȨÏÞ', + 'project_only_all_groups' => 'You cannot choose specific groups when "All Groups" is chosen' ); // Page titles Index: no.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/no.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- no.php 2001/12/04 14:32:24 1.5 +++ no.php 2001/12/06 14:28:21 1.6 @@ -63,7 +63,8 @@ 'bad_attachment' => 'Det vedlegget eksisterer ikke', 'attachment_too_large' => 'Filen du har spesifisert er større enn '.number_format(ATTACHMENT_MAX_SIZE).' bytes', 'bad_permission' => 'Du har ikke de nødvendige rettighetene til det', - 'noseverities' => 'Ingen alvorligheter funnet' + 'noseverities' => 'Ingen alvorligheter funnet', + 'project_only_all_groups' => 'You cannot choose specific groups when "All Groups" is chosen' ); // Page titles Index: pt-br.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/pt-br.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- pt-br.php 2001/12/04 14:32:24 1.6 +++ pt-br.php 2001/12/06 14:28:21 1.7 @@ -63,7 +63,8 @@ 'attachment_move_error' => 'Ocorreu um erro ao mover o arquivo transmitido', 'bad_attachment' => 'Este anexo não existe', 'attachment_too_large' => 'O arquivo escolhido é maior que '.number_format(ATTACHMENT_MAX_SIZE).' bytes', - 'bad_permission' => 'Você não tem as permissões necessárias para essa função' + 'bad_permission' => 'Você não tem as permissões necessárias para essa função', + 'project_only_all_groups' => 'You cannot choose specific groups when "All Groups" is chosen' ); // Page titles Index: ru_koi8-r.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/ru_koi8-r.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ru_koi8-r.php 2001/12/04 14:32:24 1.4 +++ ru_koi8-r.php 2001/12/06 14:28:21 1.5 @@ -62,7 +62,8 @@ 'attachment_move_error' => 'ðÒÉ ÐÅÒÅÍÅÝÅÎÉÉ ÚÁÇÒÕÖÅÎÎÏÇÏ ÆÁÊÌÁ ÐÒÏÉÚÏÛÌÁ ÏÛÉÂËÁ', 'bad_attachment' => 'ôÁËÏÇÏ ÐÒÉÌÏÖÅÎÉÑ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ', 'attachment_too_large' => 'õËÁÚÁÎÎÙÊ ÆÁÊÌ ÉÍÅÅÔ ÒÁÚÍÅÒ ÂÏÌØÛÅ ÞÅÍ '.number_format(ATTACHMENT_MAX_SIZE).' ÂÁÊÔ', - 'bad_permission' => 'õ ×ÁÓ ÎÅÔ ÐÏÌÎÏÍÏÞÉÊ, ÎÅÏÂÈÏÄÉÍÙÈ ÄÌÑÄÁÎÎÏÊ ÆÕÎËÃÉÉ' + 'bad_permission' => 'õ ×ÁÓ ÎÅÔ ÐÏÌÎÏÍÏÞÉÊ, ÎÅÏÂÈÏÄÉÍÙÈ ÄÌÑÄÁÎÎÏÊ ÆÕÎËÃÉÉ', + 'project_only_all_groups' => 'You cannot choose specific groups when "All Groups" is chosen' ); // Page titles Index: ru_windows-1251.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/ru_windows-1251.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ru_windows-1251.php 2001/12/04 14:32:24 1.4 +++ ru_windows-1251.php 2001/12/06 14:28:21 1.5 @@ -62,7 +62,8 @@ 'attachment_move_error' => 'Ïðè ïåðåìåùåíèè çàãðóæåííîãî ôàéëà ïðîèçîøëà îøèáêà', 'bad_attachment' => 'Òàêîãî ïðèëîæåíèÿ íå ñóùåñòâóåò', 'attachment_too_large' => 'Óêàçàííûé ôàéë èìååò ðàçìåð áîëüøå ÷åì '.number_format(ATTACHMENT_MAX_SIZE).' áàéò', - 'bad_permission' => 'Ó âàñ íåò ïîëíîìî÷èé, íåîáõîäèìûõ äëÿäàííîé ôóíêöèè' + 'bad_permission' => 'Ó âàñ íåò ïîëíîìî÷èé, íåîáõîäèìûõ äëÿäàííîé ôóíêöèè', + 'project_only_all_groups' => 'You cannot choose specific groups when "All Groups" is chosen' ); // Page titles Index: se.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/se.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- se.php 2001/12/04 14:32:24 1.6 +++ se.php 2001/12/06 14:28:21 1.7 @@ -63,7 +63,8 @@ 'attachment_move_error' => 'Ett fel uppstod när den inskickade filen skulle flyttas', 'bad_attachment' => 'Bilagan existerar inte', 'attachment_too_large' => 'Filen du angav är större än '.number_format(ATTACHMENT_MAX_SIZE).' bytes', - 'bad_permission' => 'Du har inte den behövliga behörigheten för att använda den funktionen' + 'bad_permission' => 'Du har inte den behövliga behörigheten för att använda den funktionen', + 'project_only_all_groups' => 'You cannot choose specific groups when "All Groups" is chosen' ); // Page titles |
|
From: Benjamin C. <bc...@us...> - 2001-12-05 14:00:17
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv6286 Modified Files: CHANGELOG Log Message: Index: CHANGELOG =================================================================== RCS file: /cvsroot/phpbt/phpbt/CHANGELOG,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- CHANGELOG 2001/11/30 06:34:30 1.31 +++ CHANGELOG 2001/12/05 14:00:14 1.32 @@ -5,10 +5,12 @@ from the bug display page. : Added a link to return to the bug list from the bug display page. : Added quick query links from the bug summary table on the home page (when - not using jpgraph). + not using jpgraph) and as a clickable image map (when using jpgraph). +: Updated code using jpgraph for jpgraph 1.4. : Fixed a bug with the language selection not being updated when changed on the configuration page. : Multiple bugs related to the bug query page fixed. +: Fixed a rendering problem with bug comments. -- 0.5.1 -- 11 Nov 2001 : Fixed a bug (introduced in 0.5.0) with severity color not being pulled in |
|
From: Benjamin C. <bc...@us...> - 2001-12-05 13:48:22
|
Update of /cvsroot/phpbt/phpbt/jpgimages In directory usw-pr-cvs1:/tmp/cvs-serv3442/jpgimages Log Message: Directory /cvsroot/phpbt/phpbt/jpgimages added to the repository |
|
From: Benjamin C. <bc...@us...> - 2001-12-05 13:48:14
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv3416
Modified Files:
index.php
Log Message:
Moved images.php here and added clickable image map for the image (jpgraph 1.4)
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- index.php 2001/11/23 05:06:52 1.13
+++ index.php 2001/12/05 13:48:10 1.14
@@ -31,17 +31,69 @@
$t->set_block('statsblock','row','rows');
$t->set_var('TITLE',$TITLE['home']);
-if (USE_JPGRAPH) {
- $t->set_var('sblock', '<img src="images.php" align="right">');
-} else {
- $q->query("select * from ".TBL_STATUS." order by sort_order");
+function grab_data() {
+ global $q;
+
+ // Grab the legend
+ $q->query("select status_id, status_name from ".TBL_STATUS." order by sort_order");
while ($row = $q->grab()) {
$stats[$row['status_id']]['name'] = $row['status_name'];
}
+
+ // Grab the data
$q->query("select status_id, count(status_id) as count from ".TBL_BUG." group by status_id");
while ($row = $q->grab()) {
$stats[$row['status_id']]['count'] = $row['count'];
}
+
+ return $stats;
+}
+
+function build_image() {
+ error_reporting(0); // Force this, just in case
+ include_once JPGRAPH_PATH.'jpgraph.php';
+ include_once JPGRAPH_PATH.'jpgraph_pie.php';
+
+ $stats = grab_data();
+ $totalbugs = 0;
+ foreach ($stats as $statid => $stat) {
+ if ($stat['count']) {
+ $data[] = $stat['count'];
+ $legend[] = "{$stat['name']} ({$stat['count']})";
+ $targ[] = "query.php?op=doquery&status[]=$statid";
+ $alts[] = $stat['name'];
+ $totalbugs += $stat['count'];
+ }
+ }
+
+ // Create the Pie Graph.
+ $graph = new PieGraph(300,200,"bug_cat_summary");
+ $graph->SetShadow();
+
+ // Set A title for the plot
+ $graph->title->Set(sprintf("Bug Summary (%d bug%s)",
+ $totalbugs, $totalbugs == 1 ? '' : 's'));
+ $graph->title->SetFont(FF_FONT1,FS_BOLD);
+
+ $graph->legend->Pos(0.03, 0.5, 'right', 'center');
+ // Create
+ $p1 = new PiePlot($data);
+ $p1->SetLegends($legend);
+ $p1->SetCSIMTargets($targ,$alts);
+ $p1->SetCenter(0.25);
+ $p1->SetPrecision(0);
+ $graph->Add($p1);
+ $graph->Stroke('jpgimages/'.GenImgName());
+
+ return $graph->GetHTMLImageMap("myimagemap").
+ "<img align=\"right\" src=\"jpgimages/".GenImgName()."\" ISMAP USEMAP=\"#myimagemap\" border=0>";
+}
+
+
+if (USE_JPGRAPH) {
+ $t->set_var('sblock', build_image());
+} else {
+ $stats = grab_data();
$total = 0;
foreach ($stats as $statid => $stat) {
$t->set_var(array(
|
|
From: Benjamin C. <bc...@us...> - 2001-12-05 13:47:05
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv3077 Removed Files: images.php Log Message: Moved to index.php --- images.php DELETED --- |
|
From: Benjamin C. <bc...@us...> - 2001-12-05 04:46:15
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv7428
Modified Files:
dbchanges.sql
Log Message:
Changes for 0.6.0
Index: dbchanges.sql
===================================================================
RCS file: /cvsroot/phpbt/phpbt/dbchanges.sql,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- dbchanges.sql 2001/11/03 14:25:31 1.13
+++ dbchanges.sql 2001/12/05 04:46:12 1.14
@@ -1 +1,3 @@
-insert into TBL_CONFIGURATION (varname, varvalue, description, vartype) values ('STRICT_UPDATING', '0', 'Only the bug reporter, bug owner, managers, and admins can change a bug', 'bool');
+alter table auth_group add locked tinyint(1) not null default 0 after group_name;
+update auth_group set locked = 1;
+insert into db_sequence values('auth_group', 3);
|
|
From: Benjamin C. <bc...@us...> - 2001-12-05 04:21:22
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv2050 Modified Files: bug.php Log Message: Fixes bug #486227 -- problem with comments regex replacements Index: bug.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/bug.php,v retrieving revision 1.63 retrieving revision 1.64 diff -u -r1.63 -r1.64 --- bug.php 2001/11/24 17:51:56 1.63 +++ bug.php 2001/12/05 04:21:19 1.64 @@ -35,8 +35,8 @@ '/cvs:([^\.\s:,\?!]+(\.[^\.\s:,\?!]+)*)(:)?(\d\.[\d\.]+)?([\W\s])?/i' // matches cvs:filename.php or cvs:filename.php:n.nn ); $replacements = array( - "\1 <a href='$me?op=show&bugid=\3'>\2\3<\/a>", // internal link to bug - '<a href="'.CVS_WEB.'\1#rev\4" target="_new">\1</a>\5' // external link to cvs web interface + "\\1 <a href='$me?op=show&bugid=\\3'>\\2\\3</a>", // internal link to bug + '<a href="'.CVS_WEB.'\\1#rev\\4" target="_new">\\1</a>\\5' // external link to cvs web interface ); return preg_replace($patterns, $replacements, |
|
From: Benjamin C. <bc...@us...> - 2001-12-05 04:08:36
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv32078
Modified Files:
images.php
Log Message:
Updated for jpgraph v1.4
Index: images.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/images.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- images.php 2001/09/01 15:44:20 1.6
+++ images.php 2001/12/05 04:08:33 1.7
@@ -57,7 +57,7 @@
// Set A title for the plot
$graph->title->Set(sprintf("Bug Summary (%d bug%s)",
$totalbugs, $totalbugs == 1 ? '' : 's'));
- $graph->title->SetFont(FONT1,FS_BOLD);
+ $graph->title->SetFont(FF_FONT1,FS_BOLD);
$graph->legend->Pos(0.03, 0.5, 'right', 'center');
// Create
|
|
From: Benjamin C. <bc...@us...> - 2001-12-04 15:16:24
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv21854/templates/default/admin
Modified Files:
wrap.html
Added Files:
grouplist.html
Log Message:
Group administration
--- NEW FILE: grouplist.html ---
<br>
<table border="0" width="640">
<tr>
<td valign="top">
<b> Group List</b>
<hr size="1">
<table border="0">
<tr bgcolor="#eeeeee">
<th><a href="{nameurl}">Name</a></th>
<th><a href="{counturl}">Users</a></th>
<th> </th>
</tr>
<!-- BEGIN row -->
<!-- BEGIN unlockedblock -->
<tr class="{trclass}">
<td><a href="{me}?op=edit&id={groupid}">{name}</a></td>
<td align="center">{count}</td>
<td align="center">
<a href="{me}?op=del&id={groupid}" onClick="return confirm('This will remove all user assignments to this group and the group itself. Continue?')">Delete</a> |
<a href="{me}?op=purge&id={groupid}" onClick="return confirm('This will remove all user assignments to this group. Continue?')">Purge</a>
</td>
</tr>
<!-- END unlockedblock -->
<!-- BEGIN lockedblock -->
<tr class="{trclass}">
<td>{name}</td>
<td align="center">{count}</td>
<td align="center">Locked</td>
</tr>
<!-- END lockedblock -->
<!-- END row -->
</table>
</td>
<td valign="top">
<div align="right"><b>{action} Group </b></div>
<hr size="1">
<form action="{me}" method="post">
<input type="hidden" name="id" value="{fgroupid}">
<table border='0'>
<tr>
<td colspan="2" align="center" valign="top">
<font color="#ff0000">{error}</font>
</td>
</tr>
<tr>
<td align="right" valign="top">Name:</td>
<td><input type="text" size="20" maxlength="40" name="fname" value="{fname}"></td>
</tr>
</table>
<div align="right">
<input type='submit' name='submit' value='Submit'>
</div>
</form>
</td>
</table>
Index: wrap.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/wrap.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- wrap.html 2001/10/13 23:15:52 1.2
+++ wrap.html 2001/12/04 14:32:24 1.3
@@ -16,6 +16,7 @@
<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> |
|
|
From: Benjamin C. <bc...@us...> - 2001-12-04 15:16:24
|
Update of /cvsroot/phpbt/phpbt/languages In directory usw-pr-cvs1:/tmp/cvs-serv21854/languages Modified Files: de.php en.php fr.php gb2312.php no.php pt-br.php ru_koi8-r.php ru_windows-1251.php se.php Log Message: Group administration Index: de.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/de.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- de.php 2001/09/03 17:03:22 1.5 +++ de.php 2001/12/04 14:32:23 1.6 @@ -88,7 +88,8 @@ 'severity' => 'Severity', 'user' => 'Benutzer', 'home' => 'Home', - 'reporting' => 'Bericht' + 'reporting' => 'Bericht', + 'group' => 'Groups' ); ?> Index: en.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/en.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- en.php 2001/09/03 17:03:22 1.5 +++ en.php 2001/12/04 14:32:24 1.6 @@ -85,7 +85,8 @@ 'severity' => 'Severity', 'user' => 'Users', 'home' => 'Home', - 'reporting' => 'Reporting' + 'reporting' => 'Reporting', + 'group' => 'Groups' ); ?> Index: fr.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/fr.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- fr.php 2001/09/04 09:46:50 1.2 +++ fr.php 2001/12/04 14:32:24 1.3 @@ -86,7 +86,8 @@ 'user' => 'Utilisateurs', 'home' => 'Sommaire', 'reporting' => 'Tableaux de bord', - 'severity' => 'Criticité' + 'severity' => 'Criticité', + 'group' => 'Groups' ); ?> Index: gb2312.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/gb2312.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- gb2312.php 2001/11/07 18:33:43 1.1 +++ gb2312.php 2001/12/04 14:32:24 1.2 @@ -88,7 +88,8 @@ 'severity' => 'ÑÏÖØ³Ì¶È', 'user' => 'Óû§', 'home' => 'Ö÷Ò³Ãæ', - 'reporting' => '±¨±í' + 'reporting' => '±¨±í', + 'group' => 'Groups' ); ?> Index: no.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/no.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- no.php 2001/09/15 14:49:16 1.4 +++ no.php 2001/12/04 14:32:24 1.5 @@ -86,7 +86,8 @@ 'user' => 'Brukere', 'home' => 'Hjem', 'reporting' => 'Rapportering', - 'severity' => 'Alvorlighet' + 'severity' => 'Alvorlighet', + 'group' => 'Groups' ); ?> Index: pt-br.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/pt-br.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- pt-br.php 2001/09/03 17:03:22 1.5 +++ pt-br.php 2001/12/04 14:32:24 1.6 @@ -86,7 +86,8 @@ 'severity' => 'Severity', 'user' => 'Usuários', 'home' => 'Home', - 'reporting' => 'Relatórios' + 'reporting' => 'Relatórios', + 'group' => 'Groups' ); ?> Index: ru_koi8-r.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/ru_koi8-r.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ru_koi8-r.php 2001/09/03 17:33:40 1.3 +++ ru_koi8-r.php 2001/12/04 14:32:24 1.4 @@ -85,7 +85,8 @@ 'severity' => '÷ÁÖÎÏÓÔØ', 'user' => 'ðÏÌØÚÏ×ÁÔÅÌÉ', 'home' => 'çÌÁ×ÎÁÑ ÓÔÒÁÎÉÃÁ', - 'reporting' => 'ïÔÞÅÔÙ' + 'reporting' => 'ïÔÞÅÔÙ', + 'group' => 'Groups' ); ?> Index: ru_windows-1251.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/ru_windows-1251.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ru_windows-1251.php 2001/09/03 17:33:40 1.3 +++ ru_windows-1251.php 2001/12/04 14:32:24 1.4 @@ -85,7 +85,8 @@ 'severity' => 'Âàæíîñòü', 'user' => 'Ïîëüçîâàòåëè', 'home' => 'Ãëàâíàÿ ñòðàíèöà', - 'reporting' => 'Îò÷åòû' + 'reporting' => 'Îò÷åòû', + 'group' => 'Groups' ); ?> Index: se.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/se.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- se.php 2001/09/03 17:03:22 1.5 +++ se.php 2001/12/04 14:32:24 1.6 @@ -86,7 +86,8 @@ 'severity' => 'Severity', 'user' => 'Användare', 'home' => 'Hem', - 'reporting' => 'Rapportering' + 'reporting' => 'Rapportering', + 'group' => 'Groups' ); ?> |
|
From: Benjamin C. <bc...@us...> - 2001-12-04 15:16:24
|
Update of /cvsroot/phpbt/phpbt/schemas
In directory usw-pr-cvs1:/tmp/cvs-serv21854/schemas
Modified Files:
mysql.in pgsql.in
Log Message:
Group administration
Index: mysql.in
===================================================================
RCS file: /cvsroot/phpbt/phpbt/schemas/mysql.in,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- mysql.in 2001/11/06 16:42:05 1.9
+++ mysql.in 2001/12/04 14:32:24 1.10
@@ -27,6 +27,7 @@
CREATE TABLE TBL_AUTH_GROUP (
group_id int(10) unsigned NOT NULL default '0',
group_name varchar(80) NOT NULL default '',
+ locked tinyint(1) unsigned NOT NULL default '0',
created_by int(10) unsigned NOT NULL default '0',
created_date bigint(20) unsigned NOT NULL default '0',
last_modified_by int(10) unsigned NOT NULL default '0',
@@ -246,9 +247,10 @@
INSERT INTO TBL_DB_SEQUENCE values ('TBL_AUTH_USER', 1);
# Start off with three user levels...
-INSERT INTO TBL_AUTH_GROUP (group_id, group_name) VALUES (1, 'Admin');
-INSERT INTO TBL_AUTH_GROUP (group_id, group_name) VALUES (2, 'User');
-INSERT INTO TBL_AUTH_GROUP (group_id, group_name) VALUES (3, 'Developer');
+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);
+INSERT INTO TBL_DB_SEQUENCE values ('TBL_AUTH_GROUP', 3);
# ... and only two permissions
INSERT INTO TBL_AUTH_PERM (perm_id, perm_name) VALUES (1, 'Admin');
Index: pgsql.in
===================================================================
RCS file: /cvsroot/phpbt/phpbt/schemas/pgsql.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- pgsql.in 2001/11/06 16:16:59 1.11
+++ pgsql.in 2001/12/04 14:32:24 1.12
@@ -33,7 +33,8 @@
CREATE TABLE TBL_AUTH_GROUP (
group_id INT4 NOT NULL DEFAULT '0',
group_name varchar(80) NOT NULL DEFAULT '',
- created_by INT4 NOT NULL DEFAULT '0',
+ locked INT2 NOT NULL DEFAULT 0,
+ created_by INT4 NOT NULL DEFAULT '0',
created_date INT8 NOT NULL DEFAULT '0',
last_modified_by INT4 NOT NULL DEFAULT '0',
last_modified_date INT8 NOT NULL DEFAULT '0',
@@ -248,9 +249,10 @@
INSERT INTO TBL_DB_SEQUENCE values ('TBL_AUTH_USER', 1);
-- Start off with three user levels...
-INSERT INTO TBL_AUTH_GROUP (group_id, group_name) VALUES (1, 'Admin');
-INSERT INTO TBL_AUTH_GROUP (group_id, group_name) VALUES (2, 'User');
-INSERT INTO TBL_AUTH_GROUP (group_id, group_name) VALUES (3, 'Developer');
+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);
+INSERT INTO TBL_DB_SEQUENCE values ('TBL_AUTH_GROUP', 3);
-- ... and only two permissions
INSERT INTO TBL_AUTH_PERM (perm_id, perm_name) VALUES (1, 'Admin');
|
|
From: Benjamin C. <bc...@us...> - 2001-12-04 15:16:24
|
Update of /cvsroot/phpbt/phpbt/inc/db
In directory usw-pr-cvs1:/tmp/cvs-serv21854/inc/db
Modified Files:
pgsql.php
Log Message:
Group administration
Index: pgsql.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/db/pgsql.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pgsql.php 2001/11/30 06:06:17 1.1
+++ pgsql.php 2001/12/04 14:32:23 1.2
@@ -11,6 +11,7 @@
class DB_Sql {
var $Host = "";
+ var $Port = "";
var $Database = "";
var $User = "";
var $Password = "";
@@ -24,6 +25,7 @@
var $Errno = 0;
var $Error = "";
+ var $Debug = 0;
var $Auto_Free = 0; # Set this to 1 for automatic pg_freeresult on
# last record.
@@ -64,7 +66,7 @@
$this->connect();
-# printf("<br>Debug: query = %s<br>\n", $Query_String);
+ if ($this->Debug) printf("<br>Debug: query = %s<br>\n", $Query_String);
$this->Query_ID = pg_Exec($this->Link_ID, $Query_String);
$this->Row = 0;
@@ -203,32 +205,6 @@
print $this->Record[$Name];
}
- ## contributed Saillard Luc <luc...@al...>
-
- function nextid($seq_name) {
- $this->connect();
-
- $q_id=@pg_exec($this->Link_ID,"select nextval('$seq_name')");
- if (!$q_id) {
- if (!@pg_exec($this->Link_ID,"create sequence $seq_name")) {
- $this->halt("<BR> nextid() function - unable to create sequence");
- return 0;
- }
- $q_id=@pg_exec($this->Link_ID,"select nextval('$seq_name')");
- if (!$q_id) {
- $this->halt("<BR>pg_exec() failed:<BR>nextID function");
- return 0;
- }
- }
- $r=@pg_fetch_row($q_id, 0);
- if ($r==false)
- $nextid=0;
- else
- $nextid=$r[0];
-
- return $nextid;
- }
-
function halt($msg) {
printf("</td></tr></table><b>Database error:</b> %s<br>\n", $msg);
printf("<b>PostgreSQL Error</b>: %s (%s)<br>\n",
|
|
From: Benjamin C. <bc...@us...> - 2001-12-04 15:16:23
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv21854/admin
Added Files:
group.php
Log Message:
Group administration
--- NEW FILE: group.php ---
<?php
// gorup.php - Administer the user groups
// ------------------------------------------------------------------------
// Copyright (c) 2001 The phpBugTracker Group
// ------------------------------------------------------------------------
// This file is part of phpBugTracker
//
// phpBugTracker is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// phpBugTracker is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with phpBugTracker; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ------------------------------------------------------------------------
// $Id: group.php,v 1.1 2001/12/04 14:32:23 bcurtis Exp $
define('INCLUDE_PATH', '../');
include INCLUDE_PATH.'include.php';
function purge_group($groupid = 0) {
global $q;
$q->query("delete from ".TBL_USER_GROUP." where group_id = $groupid");
}
function del_group($groupid = 0) {
global $q;
purge_group($groupid);
$q->query("delete from ".TBL_AUTH_GROUP." where group_id = $groupid");
}
function do_form($groupid = 0) {
global $q, $me, $_pv, $STRING, $u, $now;
extract($_pv);
$error = '';
// Validation
if (!$fname = trim($fname))
$error = $STRING['givename'];
if ($error) { list_items($groupid, $error); return; }
if (!$groupid) {
$q->query("insert into ".TBL_AUTH_GROUP.
" (group_id, group_name, created_by, created_date, last_modified_by, last_modified_date)"
." values (".$q->nextid(TBL_AUTH_GROUP).", '$fname', $u, $now, $u, $now)");
} else {
$q->query("update ".TBL_AUTH_GROUP.
" set group_name = '$fname', last_modified_by = $u,
last_modified_date = $now where group_id = '$groupid'");
}
header("Location: $me?");
}
function show_form($groupid = 0, $error = '') {
global $q, $me, $t, $_pv, $STRING;
if ($groupid && !$error) {
$row = $q->grab("select * from ".TBL_AUTH_GROUP.
" where group_id = '$groupid'");
$t->set_var(array(
'action' => $STRING['edit'],
'fgroupid' => $row['group_id'],
'fname' => $row['group_name']));
} else {
$t->set_var(array(
'action' => $groupid ? $STRING['edit'] : $STRING['addnew'],
'error' => $error,
'fgroupid' => $groupid,
'fname' => isset($fname) ? $fname : ''));
}
}
function list_items($groupid = 0, $error = '') {
global $me, $q, $t, $_gv, $STRING, $TITLE;
$t->set_file('content','grouplist.html');
$t->set_block('content','row','rows');
$t->set_block('row','lockedblock','lockedb');
$t->set_block('row','unlockedblock','unlockedb');
if (empty($_gv['order'])) {
$order = 'group_name';
$sort = 'asc';
} else {
$order = $_gv['order'];
$sort = $_gv['sort'];
}
$page = isset($_gv['page']) ? $_gv['page'] : 0;
$nr = $q->grab_field("select count(*) from ".TBL_AUTH_GROUP);
list($selrange, $llimit, $npages, $pages) = multipages($nr,$page,
"order=$order&sort=$sort");
$t->set_var(array(
'pages' => '[ '.$pages.' ]',
'first' => $llimit+1,
'last' => $llimit+$selrange > $nr ? $nr : $llimit+$selrange,
'records' => $nr));
$q->limit_query("select ag.group_id, group_name, locked, count(ug.group_id) as count from ".
TBL_AUTH_GROUP." ag left join ".TBL_USER_GROUP." ug using (group_id) left join ".
TBL_AUTH_USER." using (user_id) group by ag.group_id, group_name, locked order by $order $sort",
$selrange, $llimit);
if (!$q->num_rows()) {
// This should never happen, as admin, user, and developer groups must exist
$t->set_var('rows',"");
return;
}
$headers = array(
'groupid' => 'group_id',
'name' => 'group_name',
'count' => '4');
sorting_headers($me, $headers, $order, $sort);
$i = 0;
while ($row = $q->grab()) {
$t->set_var(array(
'bgcolor' => (++$i % 2 == 0) ? '#dddddd' : '#ffffff',
'trclass' => $i % 2 ? '' : 'alt',
'groupid' => $row['group_id'],
'name' => $row['group_name'],
'count' => $row['count']
));
// Some groups (e.g. admin, developer, user) cannot be edited or deleted
if ($row['locked']) {
$t->parse('lockedb', 'lockedblock', false);
$t->set_var('unlockedb', '');
} else {
$t->parse('unlockedb', 'unlockedblock', false);
$t->set_var('lockedb', '');
}
$t->parse('rows','row',true);
}
show_form($groupid, $error);
$t->set_var('TITLE',$TITLE['group']);
}
$t->set_file('wrap','wrap.html');
$perm->check('Admin');
if (isset($_gv['op'])) switch($_gv['op']) {
case 'add' : list_items(); break;
case 'edit' : list_items($_gv['id']); break;
case 'del' : del_group($_gv['id']); list_items($_gv['id']); break;
case 'purge' : purge_group($_gv['id']); list_items($_gv['id']); break;
} elseif(isset($_pv['submit'])) {
do_form($_pv['id']);
} else list_items();
$t->pparse('main',array('content','wrap','main'));
?>
|
|
From: Benjamin C. <bc...@us...> - 2001-12-04 14:32:49
|
Update of /cvsroot/phpbt/phpbt/admin In directory usw-pr-cvs1:/tmp/cvs-serv21955/admin Modified Files: group.php Log Message: Typo Index: group.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/admin/group.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- group.php 2001/12/04 14:32:23 1.1 +++ group.php 2001/12/04 14:32:46 1.2 @@ -1,6 +1,6 @@ <?php -// gorup.php - Administer the user groups +// group.php - Administer the user groups // ------------------------------------------------------------------------ // Copyright (c) 2001 The phpBugTracker Group // ------------------------------------------------------------------------ |
|
From: Benjamin C. <bc...@us...> - 2001-12-04 14:27:26
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv20627
Modified Files:
install.php
Log Message:
Code cleanup
Index: install.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/install.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- install.php 2001/11/30 06:06:35 1.6
+++ install.php 2001/12/04 14:27:23 1.7
@@ -31,41 +31,43 @@
$_gv =& $HTTP_GET_VARS;
$_pv =& $HTTP_POST_VARS;
-$tables = array(
- '/^#.*/' => '',
- '/^--.*/' => '',
- '/TBL_ACTIVE_SESSIONS/' => $_pv['tbl_prefix'].'active_sessions',
- '/TBL_DB_SEQUENCE/' => $_pv['tbl_prefix'].'db_sequence',
- '/TBL_ATTACHMENT/' => $_pv['tbl_prefix'].'attachment',
- '/TBL_AUTH_GROUP/' => $_pv['tbl_prefix'].'auth_group',
- '/TBL_AUTH_PERM/' => $_pv['tbl_prefix'].'auth_perm',
- '/TBL_AUTH_USER/' => $_pv['tbl_prefix'].'auth_user',
- '/TBL_BUG_CC/' => $_pv['tbl_prefix'].'bug_cc',
- '/TBL_BUG_GROUP/' => $_pv['tbl_prefix'].'bug_group',
- '/TBL_BUG_HISTORY/' => $_pv['tbl_prefix'].'bug_history',
- '/TBL_BUG/' => $_pv['tbl_prefix'].'bug',
- '/TBL_COMMENT/' => $_pv['tbl_prefix'].'comment',
- '/TBL_COMPONENT/' => $_pv['tbl_prefix'].'component',
- '/TBL_CONFIGURATION/' => $_pv['tbl_prefix'].'configuration',
- '/TBL_GROUP_PERM/' => $_pv['tbl_prefix'].'group_perm',
- '/TBL_OS/' => $_pv['tbl_prefix'].'os',
- '/TBL_PROJECT/' => $_pv['tbl_prefix'].'project',
- '/TBL_RESOLUTION/' => $_pv['tbl_prefix'].'resolution',
- '/TBL_SAVED_QUERY/' => $_pv['tbl_prefix'].'saved_query',
- '/TBL_SEVERITY/' => $_pv['tbl_prefix'].'severity',
- '/TBL_STATUS/' => $_pv['tbl_prefix'].'status',
- '/TBL_USER_GROUP/' => $_pv['tbl_prefix'].'user_group',
- '/TBL_USER_PERM/' => $_pv['tbl_prefix'].'user_perm',
- '/TBL_VERSION/' => $_pv['tbl_prefix'].'version',
- '/TBL_PROJECT_GROUP/' => $_pv['tbl_prefix'].'project_group',
- '/OPTION_ADMIN_EMAIL/' => $_pv['admin_login'],
- '/OPTION_ADMIN_PASS/' => $_pv['encrypt_pass'] ? md5($_pv['admin_pass'])
- : $_pv['admin_pass'],
- '/OPTION_PHPBT_EMAIL/' => $_pv['phpbt_email'],
- '/OPTION_ENCRYPT_PASS/' => $_pv['encrypt_pass'],
- '/OPTION_INSTALL_URL/' => 'http://'.$HTTP_SERVER_VARS['SERVER_NAME'].
- dirname($HTTP_SERVER_VARS['SCRIPT_NAME']),
- );
+if (!empty($_pv)) {
+ $tables = array(
+ '/^#.*/' => '',
+ '/^--.*/' => '',
+ '/TBL_ACTIVE_SESSIONS/' => $_pv['tbl_prefix'].'active_sessions',
+ '/TBL_DB_SEQUENCE/' => $_pv['tbl_prefix'].'db_sequence',
+ '/TBL_ATTACHMENT/' => $_pv['tbl_prefix'].'attachment',
+ '/TBL_AUTH_GROUP/' => $_pv['tbl_prefix'].'auth_group',
+ '/TBL_AUTH_PERM/' => $_pv['tbl_prefix'].'auth_perm',
+ '/TBL_AUTH_USER/' => $_pv['tbl_prefix'].'auth_user',
+ '/TBL_BUG_CC/' => $_pv['tbl_prefix'].'bug_cc',
+ '/TBL_BUG_GROUP/' => $_pv['tbl_prefix'].'bug_group',
+ '/TBL_BUG_HISTORY/' => $_pv['tbl_prefix'].'bug_history',
+ '/TBL_BUG/' => $_pv['tbl_prefix'].'bug',
+ '/TBL_COMMENT/' => $_pv['tbl_prefix'].'comment',
+ '/TBL_COMPONENT/' => $_pv['tbl_prefix'].'component',
+ '/TBL_CONFIGURATION/' => $_pv['tbl_prefix'].'configuration',
+ '/TBL_GROUP_PERM/' => $_pv['tbl_prefix'].'group_perm',
+ '/TBL_OS/' => $_pv['tbl_prefix'].'os',
+ '/TBL_PROJECT/' => $_pv['tbl_prefix'].'project',
+ '/TBL_RESOLUTION/' => $_pv['tbl_prefix'].'resolution',
+ '/TBL_SAVED_QUERY/' => $_pv['tbl_prefix'].'saved_query',
+ '/TBL_SEVERITY/' => $_pv['tbl_prefix'].'severity',
+ '/TBL_STATUS/' => $_pv['tbl_prefix'].'status',
+ '/TBL_USER_GROUP/' => $_pv['tbl_prefix'].'user_group',
+ '/TBL_USER_PERM/' => $_pv['tbl_prefix'].'user_perm',
+ '/TBL_VERSION/' => $_pv['tbl_prefix'].'version',
+ '/TBL_PROJECT_GROUP/' => $_pv['tbl_prefix'].'project_group',
+ '/OPTION_ADMIN_EMAIL/' => $_pv['admin_login'],
+ '/OPTION_ADMIN_PASS/' => $_pv['encrypt_pass'] ? md5($_pv['admin_pass'])
+ : $_pv['admin_pass'],
+ '/OPTION_PHPBT_EMAIL/' => $_pv['phpbt_email'],
+ '/OPTION_ENCRYPT_PASS/' => $_pv['encrypt_pass'],
+ '/OPTION_INSTALL_URL/' => 'http://'.$HTTP_SERVER_VARS['SERVER_NAME'].
+ dirname($HTTP_SERVER_VARS['SCRIPT_NAME']),
+ );
+}
@include_once('config.php');
if (defined('DB_HOST')) { // Already configured
@@ -73,6 +75,7 @@
}
function build_select($box, $value = '', $ary) {
+ $text = '';
foreach ($ary as $val => $item) {
if ($value == $val and $value != '') $sel = ' selected';
else $sel = '';
@@ -111,10 +114,11 @@
$q_temp_ary = file('schemas/'.$_pv['db_type'].'.in');
$queries = preg_replace(array_keys($tables), array_values($tables),
$q_temp_ary);
+ $do_query = '';
foreach ($queries as $query) {
// First, collect multi-line queries into one line, then run the query
$do_query .= chop($query);
- if (substr($do_query, -1) != ';') continue;
+ if (empty($do_query) or substr($do_query, -1) != ';') continue;
$db->query($do_query);
$do_query = '';
}
@@ -123,6 +127,7 @@
function check_vars() {
global $_pv;
+ $error = '';
if (!$_pv['db_host'] = trim($_pv['db_host'])) {
$error = 'Please enter the host name for your database server';
} elseif (!$_pv['db_database'] = trim($_pv['db_database'])) {
@@ -143,7 +148,7 @@
$error = 'The admin passwords don\'t match';
}
- if ($error) {
+ if (!empty($error)) {
show_front($error);
return false;
} else {
@@ -206,15 +211,15 @@
$t->set_block('content', 'writeableblock', 'writeable');
$t->set_block('content', 'unwriteableblock', 'unwriteable');
$t->set_var(array(
- 'error' => $error ? "<div class=\"error\">$error</div>" : '',
- 'db_type' => build_select('db', $db_type, &$db_types),
- 'db_host' => $db_host ? $db_host : 'localhost',
- 'db_database' => $db_database ? $db_database : 'bug_tracker',
- 'db_user' => $db_user ? $db_user : 'root',
+ 'error' => !empty($error) ? "<div class=\"error\">$error</div>" : '',
+ 'db_type' => build_select('db', (isset($db_type) ? $db_type : ''), &$db_types),
+ 'db_host' => !empty($db_host) ? $db_host : 'localhost',
+ 'db_database' => !empty($db_database) ? $db_database : 'bug_tracker',
+ 'db_user' => !empty($db_user) ? $db_user : 'root',
'db_pass' => '',
- 'tbl_prefix' => $tbl_prefix ? $tbl_prefix : 'phpbt_',
- 'admin_login' => $admin_login,
- 'phpbt_email' => $phpbt_email ? $phpbt_email :
+ 'tbl_prefix' => !empty($tbl_prefix) ? $tbl_prefix : 'phpbt_',
+ 'admin_login' => !empty($admin_login) ? $admin_login : '',
+ 'phpbt_email' => !empty($phpbt_email) ? $phpbt_email :
'phpbt@'.$HTTP_SERVER_VARS['SERVER_NAME']
));
@@ -231,8 +236,8 @@
print $t->finish($t->parse('main', 'content'));
}
-if ($op = $_gv['op'] ? $_gv['op'] : $_pv['op']) {
- switch ($op) {
+if (isset($_pv['op'])) {
+ switch ($_pv['op']) {
case 'save_config_file' : save_config_file(); break;
case 'dump_config_file' : dump_config_file(); break;
}
|
|
From: Benjamin C. <bc...@us...> - 2001-12-04 14:09:38
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv15845
Modified Files:
config-dist.php
Log Message:
Moving dependencies into the package
Index: config-dist.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/config-dist.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- config-dist.php 2001/10/30 04:05:58 1.1
+++ config-dist.php 2001/12/04 14:09:36 1.2
@@ -60,12 +60,9 @@
define ('ONEDAY', 86400);
-require_once (PHPLIB_PATH.'db_'.DB_TYPE.'.inc');
-require_once (PHPLIB_PATH.'ct_sql.inc');
-require_once (PHPLIB_PATH.'session.inc');
-require_once (PHPLIB_PATH.'auth.inc');
-require_once (PHPLIB_PATH.'perm.inc');
-require_once (PHPLIB_PATH.'page.inc');
-require_once (PHPLIB_PATH.'template.inc');
+require_once (INSTALL_PATH.'/'.INCLUDE_PATH.'inc/db/'.DB_TYPE.'.php');
+require_once (INSTALL_PATH.'/'.INCLUDE_PATH.'inc/session.php');
+require_once (INSTALL_PATH.'/'.INCLUDE_PATH.'inc/auth.php');
+require_once (INSTALL_PATH.'/'.INCLUDE_PATH.'inc/template.php');
?>
|
|
From: Benjamin C. <bc...@us...> - 2001-12-01 19:51:23
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv9417
Modified Files:
include.php
Log Message:
Need to override these vars in the new db includes
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- include.php 2001/11/23 05:10:44 1.78
+++ include.php 2001/12/01 19:51:20 1.79
@@ -40,6 +40,8 @@
var $User = DB_USER;
var $Password = DB_PASSWORD;
var $Seq_Table = TBL_DB_SEQUENCE;
+ var $Seq_ID_Col = "nextid";
+ var $Seq_Name_Col = "seq_name";
// Attempt to handle different limit syntax
function limit_query($q_string, $limit, $offset = 0) {
|
|
From: Benjamin C. <bc...@us...> - 2001-12-01 17:56:36
|
Update of /cvsroot/phpbt/phpbt/docs/html In directory usw-pr-cvs1:/tmp/cvs-serv19137/html Modified Files: adminguide.html configuration.html devguide.html devstandards.html index.html schema.html Log Message: Updated the installation instructions Index: adminguide.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/adminguide.html,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- adminguide.html 2001/11/08 05:12:33 1.10 +++ adminguide.html 2001/12/01 17:56:33 1.11 @@ -115,67 +115,22 @@ ></H1 ><DIV CLASS="PROCEDURE" +><A +NAME="INSTALL-PROCEDURE" +></A ><OL TYPE="1" ><LI ><P ->Install PHPlib (<A -HREF="http://sourceforge.net/projects/phplib/" -TARGET="_top" ->http://sourceforge.net/projects/phplib</A ->) if it's not already installed. Note that with recent versions of PHP, PHPlib needs to be patched. Please do the following with the patch file, <TT -CLASS="FILENAME" ->page.inc.patch</TT -> in the distribution directory:</P -><TABLE -BORDER="0" -BGCOLOR="#EEEEEE" -WIDTH="100%" -><TR -><TD -><PRE -CLASS="SCREEN" -><B -CLASS="COMMAND" ->cat</B -> <TT -CLASS="FILENAME" ->page.inc.patch</TT -> | <B -CLASS="COMMAND" ->patch</B -> <TT -CLASS="OPTION" ->-p0</TT -> <TT -CLASS="OPTION" ->-b</TT -> <TT -CLASS="FILENAME" -><TT -CLASS="REPLACEABLE" -><I ->/path/to/phplib/page.inc</I -></TT -></TT -></PRE -></TD -></TR -></TABLE +>Copy the directory tree from the tarball (or zip archive) to a location suitable for serving web pages.</P +></LI +><LI ><P ->Make sure you replace <TT -CLASS="FILENAME" ->/path/to/phplib</TT -> with the actual path to the installation of PHPlib. On windows systems you can edit <TT -CLASS="FILENAME" ->page.inc</TT -> and change line 67 from <TT -CLASS="COMPUTEROUTPUT" ->if (isset($user)) {</TT -> to <TT -CLASS="COMPUTEROUTPUT" ->if (isset($user) && $user) {</TT ->.</P +>With your web browser, go the location where you installed the package. You will be presented with a web page that will help you configure and install the application.</P +></LI +><LI +><P +>After completing the installation, login and start reporting bugs.</P ><DIV CLASS="NOTE" ><TABLE @@ -204,18 +159,6 @@ ></TR ></TABLE ></DIV -></LI -><LI -><P ->Copy the directory tree from the tarball (or zip archive) to a location suitable for serving web pages.</P -></LI -><LI -><P ->With your web browser, go the location where you installed the package. You will be presented with a web page that will help you configure and install the application.</P -></LI -><LI -><P ->After completing the installation, login and start reporting bugs.</P ></LI ></OL ></DIV Index: configuration.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/configuration.html,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- configuration.html 2001/11/08 05:12:33 1.10 +++ configuration.html 2001/12/01 17:56:33 1.11 @@ -84,7 +84,7 @@ ><DIV CLASS="ABSTRACT" ><A -NAME="AEN152" +NAME="AEN135" ></A ><P >Most of the options listed here can be configured via the Configuration page of the admin tools. The <TT Index: devguide.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/devguide.html,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- devguide.html 2001/11/08 05:12:33 1.16 +++ devguide.html 2001/12/01 17:56:33 1.17 @@ -132,7 +132,7 @@ ><DIV CLASS="ABSTRACT" ><A -NAME="AEN271" +NAME="AEN254" ></A ><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 @@ -155,7 +155,7 @@ ><DIV CLASS="ABSTRACT" ><A -NAME="AEN276" +NAME="AEN259" ></A ><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 @@ -180,7 +180,7 @@ ><H3 CLASS="SECT3" ><A -NAME="AEN282" +NAME="AEN265" >3.1.1.1. Database Abstraction</A ></H3 ><P @@ -211,7 +211,7 @@ ><DIV CLASS="EXAMPLE" ><A -NAME="AEN293" +NAME="AEN276" ></A ><P ><B @@ -249,7 +249,7 @@ ><H3 CLASS="SECT3" ><A -NAME="AEN296" +NAME="AEN279" >3.1.1.2. Templates</A ></H3 ><P @@ -257,7 +257,7 @@ ><DIV CLASS="EXAMPLE" ><A -NAME="AEN299" +NAME="AEN282" ></A ><P ><B @@ -294,7 +294,7 @@ ><H3 CLASS="SECT3" ><A -NAME="AEN302" +NAME="AEN285" >3.1.1.3. Session and Authentication</A ></H3 ><P @@ -366,7 +366,7 @@ ><DIV CLASS="EXAMPLE" ><A -NAME="AEN327" +NAME="AEN310" ></A ><P ><B Index: devstandards.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/devstandards.html,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- devstandards.html 2001/11/08 05:12:33 1.17 +++ devstandards.html 2001/12/01 17:56:33 1.18 @@ -84,7 +84,7 @@ ><DIV CLASS="ABSTRACT" ><A -NAME="AEN337" +NAME="AEN320" ></A ><P > This section details the coding and process standards to be Index: index.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/index.html,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- index.html 2001/11/08 05:12:33 1.14 +++ index.html 2001/12/01 17:56:33 1.15 @@ -129,17 +129,17 @@ ></DT ><DT >3-1. <A -HREF="devguide.html#AEN293" +HREF="devguide.html#AEN276" >Using the database class</A ></DT ><DT >3-2. <A -HREF="devguide.html#AEN299" +HREF="devguide.html#AEN282" >Using the template class</A ></DT ><DT >3-3. <A -HREF="devguide.html#AEN327" +HREF="devguide.html#AEN310" >Permission and Group Checking</A ></DT ></DL Index: schema.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/html/schema.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- schema.html 2001/11/08 05:12:33 1.2 +++ schema.html 2001/12/01 17:56:33 1.3 @@ -75,7 +75,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN395" +NAME="AEN378" ></A ><P ><B @@ -188,7 +188,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN427" +NAME="AEN410" ></A ><P ><B @@ -368,7 +368,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN477" +NAME="AEN460" ></A ><P ><B @@ -514,7 +514,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN518" +NAME="AEN501" ></A ><P ><B @@ -663,7 +663,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN560" +NAME="AEN543" ></A ><P ><B @@ -915,7 +915,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN630" +NAME="AEN613" ></A ><P ><B @@ -1302,7 +1302,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN738" +NAME="AEN721" ></A ><P ><B @@ -1410,7 +1410,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN768" +NAME="AEN751" ></A ><P ><B @@ -1484,7 +1484,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN789" +NAME="AEN772" ></A ><P ><B @@ -1628,7 +1628,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN829" +NAME="AEN812" ></A ><P ><B @@ -1754,7 +1754,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN864" +NAME="AEN847" ></A ><P ><B @@ -1973,7 +1973,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN925" +NAME="AEN908" ></A ><P ><B @@ -2083,7 +2083,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN956" +NAME="AEN939" ></A ><P ><B @@ -2157,7 +2157,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN977" +NAME="AEN960" ></A ><P ><B @@ -2229,7 +2229,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN997" +NAME="AEN980" ></A ><P ><B @@ -2337,7 +2337,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1027" +NAME="AEN1010" ></A ><P ><B @@ -2517,7 +2517,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1077" +NAME="AEN1060" ></A ><P ><B @@ -2625,7 +2625,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1107" +NAME="AEN1090" ></A ><P ><B @@ -2738,7 +2738,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1139" +NAME="AEN1122" ></A ><P ><B @@ -2867,7 +2867,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1175" +NAME="AEN1158" ></A ><P ><B @@ -2975,7 +2975,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1205" +NAME="AEN1188" ></A ><P ><B @@ -3083,7 +3083,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1235" +NAME="AEN1218" ></A ><P ><B @@ -3155,7 +3155,7 @@ ><DIV CLASS="TABLE" ><A -NAME="AEN1255" +NAME="AEN1238" ></A ><P ><B |
|
From: Benjamin C. <bc...@us...> - 2001-12-01 17:56:36
|
Update of /cvsroot/phpbt/phpbt/docs/sgml In directory usw-pr-cvs1:/tmp/cvs-serv19137/sgml Modified Files: installation.sgml Log Message: Updated the installation instructions Index: installation.sgml =================================================================== RCS file: /cvsroot/phpbt/phpbt/docs/sgml/installation.sgml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- installation.sgml 2001/11/08 05:11:48 1.3 +++ installation.sgml 2001/12/01 17:56:33 1.4 @@ -2,17 +2,8 @@ <sect1 id="installation"> <title>Installation Instructions</title> -<procedure> +<procedure id="install-procedure"> <step> -<para>Install PHPlib (<ulink url="http://sourceforge.net/projects/phplib/">http://sourceforge.net/projects/phplib</ulink>) if it's not already installed. Note that with recent versions of PHP, PHPlib needs to be patched. Please do the following with the patch file, <filename>page.inc.patch</filename> in the distribution directory:</para> -<screen><command>cat</command> <filename>page.inc.patch</filename> | <command>patch</command> <option>-p0</option> <option>-b</option> <filename><replaceable>/path/to/phplib/page.inc</replaceable></filename></screen> -<para>Make sure you replace <filename>/path/to/phplib</filename> with the actual path to the installation of PHPlib. On windows systems you can edit <filename>page.inc</filename> and change line 67 from <computeroutput>if (isset($user)) {</computeroutput> to <computeroutput>if (isset($user) && $user) {</computeroutput>.</para> -<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> -</step> - -<step> <para>Copy the directory tree from the tarball (or zip archive) to a location suitable for serving web pages.</para> </step> @@ -22,6 +13,9 @@ <step> <para>After completing the installation, login and start reporting bugs.</para> +<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> </step> </procedure> |
|
From: Benjamin C. <bc...@us...> - 2001-11-30 17:38:05
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv8159
Modified Files:
query.php
Log Message:
Working on bug #487449
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- query.php 2001/11/24 17:50:53 1.44
+++ query.php 2001/11/30 17:27:28 1.45
@@ -126,7 +126,7 @@
if (!empty($flags)) $query[] = '('.delimit_list(' or ',$flags).')';
// Email field(s)
- if (isset($email1)) {
+ if (!empty($email1)) {
switch($emailtype1) {
case 'like' : $econd = "like '%$email1%'"; break;
case 'rlike' :
@@ -139,7 +139,7 @@
// Text search field(s)
foreach(array('title','description','url') as $searchfield) {
- if (isset($$searchfield)) {
+ if (!empty($$searchfield)) {
switch (${$searchfield."_type"}) {
case 'like' : $cond = "like '%".$$searchfield."%'"; break;
case 'rlike' : $cond = "rlike '".$$searchfield."'"; break;
@@ -151,7 +151,7 @@
if (!empty($fields)) $query[] = '('.delimit_list(' or ',$fields).')';
// Project/Version/Component
- if (isset($projects)) {
+ if (!empty($projects)) {
$proj[] = "b.project_id = $projects";
if ($versions) $proj[] = "b.version_id = $versions";
if ($components) $proj[] = "component_id = $components";
|
|
From: Benjamin C. <bc...@us...> - 2001-11-30 06:34:33
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv11832 Modified Files: CHANGELOG Log Message: Index: CHANGELOG =================================================================== RCS file: /cvsroot/phpbt/phpbt/CHANGELOG,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- CHANGELOG 2001/11/24 17:43:53 1.30 +++ CHANGELOG 2001/11/30 06:34:30 1.31 @@ -1,10 +1,14 @@ -- 0.6.0 -- : Fixed a bug with old queries being retained when submitting a new query. -: Moved session and auth classes into the package. +: Moved session, auth, and database classes into the package. : Added Previous and Next links for moving to other bugs in the bug list from the bug display page. +: Added a link to return to the bug list from the bug display page. : Added quick query links from the bug summary table on the home page (when not using jpgraph). +: Fixed a bug with the language selection not being updated when changed on + the configuration page. +: Multiple bugs related to the bug query page fixed. -- 0.5.1 -- 11 Nov 2001 : Fixed a bug (introduced in 0.5.0) with severity color not being pulled in |
|
From: Ben C. <php...@be...> - 2001-11-30 06:25:28
|
This has been fixed. On Wed, Nov 28, 2001 at 10:17:24PM +0100, Patrick Mairif wrote: > On Mon, Nov 26, 2001 at 04:39:06PM -0800, Ben Curtis wrote: > > It only changes the warning and error messages output by the script. For complete localization one would have to change the templates and the database data. > > When I change the setting in configure.php and submit my changes the > language setting is always restored to "en". > |
|
From: Benjamin C. <bc...@us...> - 2001-11-30 06:23:27
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv6305
Modified Files:
config.php
Log Message:
Doh
Index: config.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/config.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- config.php 2001/11/30 06:21:43 1.19
+++ config.php 2001/11/30 06:23:24 1.20
@@ -26,10 +26,10 @@
// Database Config
define ('DB_TYPE', 'mysql'); // using PHPlib file naming
-define ('DB_HOST', 'stinky');
+define ('DB_HOST', 'localhost');
define ('DB_DATABASE', 'BugTracker');
define ('DB_USER', 'root');
-define ('DB_PASSWORD', 'howdy');
+define ('DB_PASSWORD', '');
// Database Table Config
// you can change either the prefix of the table names or each table name individually
|