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-04-11 15:55:57
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory usw-pr-cvs1:/tmp/cvs-serv7345/templates/default Removed Files: wrap.html Log Message: These may make a comeback later --- wrap.html DELETED --- |
|
From: Benjamin C. <bc...@us...> - 2002-04-11 15:50:58
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv5537/templates/default
Added Files:
footer-popup.html header-popup.html
Removed Files:
bugattachmentsuccess.html
Log Message:
Cleaned up the attachment interface
--- NEW FILE: footer-popup.html ---
</td>
</tr>
</table>
</body>
</html>
<head><meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></head>
--- NEW FILE: header-popup.html ---
<html>
<head>
<META HTTP-EQUIV="Expires" CONTENT="-1">
<title>phpBugTracker - {$page_title}</title>
<link rel="StyleSheet" href="styles/{$STYLE}.css" type="text/css">
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="maincontent">
--- bugattachmentsuccess.html DELETED ---
|
|
From: Benjamin C. <bc...@us...> - 2002-04-11 15:50:04
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv5125/templates/default
Modified Files:
bugattachmentform.html bugdisplay.html
Log Message:
Cleaned up the attachment interface
Index: bugattachmentform.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugattachmentform.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- bugattachmentform.html 9 Apr 2002 23:27:03 -0000 1.4
+++ bugattachmentform.html 11 Apr 2002 15:49:58 -0000 1.5
@@ -1,16 +1,25 @@
+{if $smarty.request.use_js}
+ {include file="header-popup.html" page_title="Add Attachment"}
+{else}
+ {include file="header.html" page_title="Add Attachment"}
+{/if}
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}" method="post">
<input type="hidden" name="bugid" value="{$bugid}">
-<table border="0" width="640">
+<input type="hidden" name="use_js" value="{$smarty.request.use_js}">
+<table border="0" align="center">
<tr>
- <td colspan="2">
+ <td colspan="2" align="center">
Please choose a file to upload and enter a one-line description.
+ <br>
Maximum file size: {$max_size} bytes
+ <br>
+ <br>
</td>
</tr>
{if $error}
- <tr>
- <td colspan="2" class="error">{$error}</td>
- </tr>
+ <tr>
+ <td colspan="2" class="error">{$error}</td>
+ </tr>
{/if}
<tr>
<td>
@@ -29,9 +38,14 @@
</td>
</tr>
<tr>
- <td colspan="2">
- <input type="submit" value="Upload attachment">
+ <td colspan="2" align="center">
+ <input type="submit" name="submit" value="Upload attachment">
</td>
</tr>
</table>
</form>
+{if $smarty.request.use_js}
+ {include file="admin/footer-popup.html"}
+{else}
+ {include file="admin/footer.html"}
+{/if}
Index: bugdisplay.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- bugdisplay.html 10 Apr 2002 15:21:07 -0000 1.24
+++ bugdisplay.html 11 Apr 2002 15:49:58 -0000 1.25
@@ -1,26 +1,31 @@
{include file="header.html" page_title="Edit Bug #$bug_id"}
<script language="JavaScript">
<!--
-versions = new Array();
-components = new Array();
-versions['All'] = new Array(new Array('','All'));
-components['All'] = new Array(new Array('','All'));
-{project_js no_all=true}
+ versions = new Array();
+ components = new Array();
+ versions['All'] = new Array(new Array('','All'));
+ components['All'] = new Array(new Array('','All'));
+ {project_js no_all=true}
-{literal}
-function updateMenus(f) {
- sel = f.project_id[f.project_id.selectedIndex].text;
- f.version_id.length = versions[sel].length;
- for (var x = 0; x < versions[sel].length; x++) {
- f.version_id.options[x].value = versions[sel][x][0];
- f.version_id.options[x].text = versions[sel][x][1];
- }
- f.component_id.length = components[sel].length;
- for (var x = 0; x < components[sel].length; x++) {
- f.component_id.options[x].value = components[sel][x][0];
- f.component_id.options[x].text = components[sel][x][1];
- }
-}
+ {literal}
+ function updateMenus(f) {
+ sel = f.project_id[f.project_id.selectedIndex].text;
+ f.version_id.length = versions[sel].length;
+ for (var x = 0; x < versions[sel].length; x++) {
+ f.version_id.options[x].value = versions[sel][x][0];
+ f.version_id.options[x].text = versions[sel][x][1];
+ }
+ f.component_id.length = components[sel].length;
+ for (var x = 0; x < components[sel].length; x++) {
+ f.component_id.options[x].value = components[sel][x][0];
+ f.component_id.options[x].text = components[sel][x][1];
+ }
+ }
+
+ function popupAtt(id) {
+ window.open('attachment.php?use_js=1&bugid='+id, 'ewin', 'dependent=yes, width=350, height=200, scrollbars=auto');
+ return false;
+ }
{/literal}
//-->
</script>
@@ -157,7 +162,7 @@
<table border="0" cellpadding="0">
<tr>
<td colspan="2">Attachments:</td>
- <td colspan="3" align="right"><a href="attachment.php?bug_id={$bug_id}">Create attachment</a></td>
+ <td colspan="3" align="right"><a href="attachment.php?bugid={$bug_id}" onClick="return popupAtt({$bug_id})">Create attachment</a></td>
</tr>
<tr><td colspan="5" height="2" bgcolor="#ffffff"><spacer type="block" height="2" width="2"></td></tr>
<tr>
|
|
From: Benjamin C. <bc...@us...> - 2002-04-11 15:50:03
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv5125
Modified Files:
attachment.php
Log Message:
Cleaned up the attachment interface
Index: attachment.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/attachment.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- attachment.php 10 Apr 2002 15:07:39 -0000 1.17
+++ attachment.php 11 Apr 2002 15:49:58 -0000 1.18
@@ -58,7 +58,7 @@
}
function add_attachment($bugid, $description) {
- global $db, $HTTP_POST_FILES, $now, $u, $STRING, $t;
+ global $db, $HTTP_POST_FILES, $now, $u, $STRING, $t, $_pv;
if (!isset($HTTP_POST_FILES['attachment']) ||
$HTTP_POST_FILES['attachment']['tmp_name'] == 'none') {
@@ -122,8 +122,12 @@
$db->quote(stripslashes($description)),
$HTTP_POST_FILES['attachment']['size'],
$db->quote($HTTP_POST_FILES['attachment']['type']), $u, $now)).")");
- $t->assign('bugid', $bugid);
- $t->display('bugattachmentsuccess.html');
+
+ if ($_pv['use_js']) {
+ $t->display('admin/edit-submit.html');
+ } else {
+ header("Location: bug.php?op=show&bugid=$bugid");
+ }
}
function show_attachment_form($bugid, $error = '') {
@@ -158,7 +162,7 @@
} else {
del_attachment($_gv['del']);
}
-} elseif (isset($HTTP_POST_FILES['attachment'])) {
+} elseif (isset($_pv['submit'])) {
$perm->check('Editbug');
add_attachment($_pv['bugid'], $_pv['description']);
} elseif (isset($_gv['attachid'])) {
@@ -169,7 +173,7 @@
}
} else {
$perm->check('Editbug');
- show_attachment_form($_gv['bug_id']);
+ show_attachment_form($_gv['bugid']);
}
?>
|
|
From: Benjamin C. <bc...@us...> - 2002-04-11 15:25:19
|
Update of /cvsroot/phpbt/phpbt/languages In directory usw-pr-cvs1:/tmp/cvs-serv30030 Modified Files: de.php Log Message: Index: de.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/de.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- de.php 26 Mar 2002 17:12:29 -0000 1.13 +++ de.php 11 Apr 2002 15:25:13 -0000 1.14 @@ -1,28 +1,28 @@ <?php // strings-de.php - Deutsche Strings und Titel -// Translation by Stefan Plank +// Translation by Stefan Plank & Stefan Kunstmann // ------------------------------------------------------------------------ // Copyright (c) 2001 The phpBugTracker Group // ------------------------------------------------------------------------ // Diese Datei ist Teil des phpBugTracker -// +// // phpBugTracker ist freie Software; Sie koennen sie weiterverteilen // und/oder veraendern unter den Bedingungen der GNU General Public License, // publiziert durch die Free Software Foundation; entweder nach Version 2 // der Lizenz, oder (ihrer Wahl nach) irgendeiner spaeterern Version. // -// phpBugTracker wird in der Hoffnung verteilt, dasz es nuetzlich ist, aber -// OHNE JEDE GARANTIE; selbst ohne die eingeschloszene Garantie der +// phpBugTracker wird in der Hoffnung verteilt, dasz es nuetzlich ist, aber +// OHNE JEDE GARANTIE; selbst ohne die eingeschloszene Garantie der // VERMARKTBARKEIT [MERCHANTIBILITY] oder EIGNUNG FUER -// EINEN PARTIKULAEREN GEBRAUCH. Sie koennen mehr Details in der +// EINEN PARTIKULAEREN GEBRAUCH. Sie koennen mehr Details in der // GNU General Public License nachlesen. // // Sie sollten mit dem phpBugTracker eine Kopie der // GNU General Public License bekommen haben; wenn nicht, schreiben Sie der // Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, // MA 02111-1307, USA. -// ------------------------------------------------------------------------- +// ------------------------------------------------------------------------- // $Id$ $STRING = array( @@ -30,33 +30,33 @@ 'nouser' => 'Dieser Benutzer extistiert nicht', 'dupeofself' => 'Ein Bug kann kein Duplikat von sich selbst sein', 'nobug' => 'Dieser Bug existiert nicht', - 'givesummary' => 'Bitte geben Sie einen Bericht ein', + 'givesummary' => 'Bitte geben Sie einen Titel ein', 'givedesc' => 'Bitte geben Sie eine Beschreibung ein', 'noprojects' => 'Keine Projekte gefunden', - 'totalbugs' => 'Total Bugs', + 'totalbugs' => 'Bugs gesamt', 'giveemail' => 'Bitte geben Sie eine gültige E-mail Adresse ein.', - 'givelogin' => 'Please enter a login', - 'loginused' => 'Dieser Benutzername ist schon in Gebrauch', + 'givelogin' => 'Bitte geben Sie einen Login an', + 'loginused' => 'Dieser Benutzername ist bereits in Gebrauch', 'newacctsubject' => 'phpBugTracker Login', 'newacctmessage' => "Ihr phpBugTracker Passwort ist %s", 'nobugs' => 'Kein Bug gefunden', 'givename' => 'Bitte geben Sie einen Namen ein', 'edit' => 'Bearbeiten', - 'addnew' => 'Neuen hinzufügen', + 'addnew' => 'Neu hinzufügen: ', 'nooses' => 'Keine Betriebsysteme gefunden', 'giveinitversion' => 'Bitte geben Sie eine Initialversion für das Projekt an', 'giveversion' => 'Bitte geben Sie eine Version ein', 'noversions' => 'Keine Version gefunden', 'nocomponents' => 'Keine Komponenten gefunden', 'nostatuses' => 'Keine Stati gefunden', - 'noseverities' => 'No severities found', + 'noseverities' => 'Keine Schwierigkeitsgrade gefunden', 'givepassword' => 'Bitte geben Sie ein Passwort ein!', 'nousers' => 'Keinen Benutzer gefunden', 'bugbadperm' => 'Sie können diesen Bug nicht ändern', 'bugbadnum' => 'Dieser Bug existiert nicht', - 'datecollision' => 'Jemand hat diesen Bug behoben seit Sie ihn gesehen haben. Die Buginformation wurde mit den letzten Änderunen erneut geladen.', - 'passwordmatch' => 'Dieses Passwörter stimmen nicht -- Bitte probieren Sie noch einmal', - 'nobughistory' => 'Es gibt keine History für diesen Bug', + 'datecollision' => 'Jemand hat diesen Bug behoben seit Sie ihn gesehen haben. Die Buginformation wurde mit den letzten Änderungen erneut geladen.', + 'passwordmatch' => 'Diese Passwörter stimmen nicht -- Bitte probieren Sie es noch einmal', + 'nobughistory' => 'Es gibt keine Historie für diesen Bug', 'logintomodify' => 'Sie müssen eingeloggt sein, um diesen Bug zu ändern.', 'dupe_attachment' => 'Dieser Anhang existiert bereits für den Bug.', 'give_attachment' => 'Bitte geben Sie eine Datei für den Upload an.', @@ -64,29 +64,29 @@ 'attachment_path_not_writeable' => 'Konnte keine Datei im Speicherpfad erstellen', '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', + 'attachment_too_large' => 'Die angegebene Datei ist größer als '.number_format(ATTACHMENT_MAX_SIZE).' byte', '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', - 'previous_bug' => 'Previous', - 'next_bug' => 'Next', - 'already_voted' => 'You have already voted for this bug', - 'too_many_votes' => 'You have reached the maximum number of votes per user', - 'no_votes' => 'There are no votes for this bug', + 'project_only_all_groups' => 'Sie können keine spezifischen Gruppen angeben, wenn ALLE gewählt ist!', + 'previous_bug' => 'Letzter', + 'next_bug' => 'Nächster', + 'already_voted' => 'Sie haben für diesen Bug bereits gestimmt', + 'too_many_votes' => 'Die maximale Stimmzahl wurde bereits erreicht', + 'no_votes' => 'Für diesen Bug existieren keine Stimmen', 'user_filter' => array( - 0 => 'All users', - 1 => 'Active users', - 2 => 'Inactive users'), + 0 => 'Alle User', + 1 => 'Aktive User', + 2 => 'Inaktive User'), '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' => 'Geben Sie einen Fehler ein', - 'editbug' => 'Fehler Bearbeiten', - 'newaccount' => 'Neuen Account anlegen', - 'bugquery' => 'Fehlersuche Bug Query', - 'buglist' => 'Fehlerliste', + 'enterbug' => 'Geben Sie einen Bug ein', + 'editbug' => 'Bug Bearbeiten', + 'newaccount' => 'Einen neuen Account anlegen', + 'bugquery' => 'Bugsuche', + 'buglist' => 'Bugliste', 'addcomponent' => 'Komponente hinzufügen', 'editcomponent' => 'Komponente bearbeiten', 'addproject' => 'Projekt hinzufügen', @@ -95,13 +95,13 @@ 'editversion' => 'Version bearbeiten', 'project' => 'Projekte', 'os' => 'Betriebssysteme', - 'resolution' => 'Auflösungen', + 'resolution' => 'Lösungen', 'status' => 'Stati', - 'severity' => 'Severity', + 'severity' => 'Schwierigkeitsgrad', 'user' => 'Benutzer', 'home' => 'Home', 'reporting' => 'Bericht', - 'group' => 'Groups' + 'group' => 'Gruppen' ); ?> |
|
From: Benjamin C. <bc...@us...> - 2002-04-11 07:34:32
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv27913/templates/default
Modified Files:
header.html
Log Message:
Don't show the new account link when logged in
Index: header.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/header.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- header.html 3 Apr 2002 19:01:04 -0000 1.4
+++ header.html 11 Apr 2002 07:34:26 -0000 1.5
@@ -33,7 +33,7 @@
<div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='report.php'">
<a href="report.php" class="sidenavlink">View Reports</a>
</div>
- {if not NEW_ACCOUNTS_DISABLED}
+ {if not NEW_ACCOUNTS_DISABLED and not $smarty.session.uid}
<div class="navbox" onMouseOver="this.className='navboxselected'" onMouseOut="this.className='navbox'" onClick="document.location.href='newaccount.php'">
<a href="newaccount.php" class="sidenavlink">Create a new account</a>
</div>
|
|
From: Benjamin C. <bc...@us...> - 2002-04-11 07:32:29
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv27547
Modified Files:
newaccount.php
Log Message:
Fix a bug with not quoting the email address
Index: newaccount.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- newaccount.php 3 Apr 2002 01:00:52 -0000 1.29
+++ newaccount.php 11 Apr 2002 07:32:25 -0000 1.30
@@ -62,8 +62,8 @@
$db->query("insert into ".TBL_AUTH_USER." (user_id, login, first_name, last_name, email, password, active, created_date, last_modified_date)"
." values (".join(', ', array($user_id, $db->quote(stripslashes($login)),
$db->quote(stripslashes($firstname)),
- $db->quote(stripslashes($lastname)), $_pv['email'], $mpassword, 1,
- $now, $now)).")");
+ $db->quote(stripslashes($lastname)), $db->quote($_pv['email']),
+ $mpassword, 1, $now, $now)).")");
$db->query("insert into ".TBL_USER_GROUP.
" (user_id, group_id, created_by, created_date)
select $user_id, group_id, 0, $now from ".TBL_AUTH_GROUP.
|
|
From: Benjamin C. <bc...@us...> - 2002-04-10 18:39:57
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv397/templates/default
Modified Files:
bugdisplay.html
Log Message:
Don't allow users to choose All for version or component selection when updating a bug
Index: bugdisplay.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- bugdisplay.html 6 Apr 2002 23:47:29 -0000 1.23
+++ bugdisplay.html 10 Apr 2002 15:21:07 -0000 1.24
@@ -5,7 +5,7 @@
components = new Array();
versions['All'] = new Array(new Array('','All'));
components['All'] = new Array(new Array('','All'));
-{project_js}
+{project_js no_all=true}
{literal}
function updateMenus(f) {
|
|
From: Benjamin C. <bc...@us...> - 2002-04-10 18:39:40
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv397/inc
Modified Files:
functions.php
Log Message:
Don't allow users to choose All for version or component selection when updating a bug
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- functions.php 9 Apr 2002 23:26:39 -0000 1.19
+++ functions.php 10 Apr 2002 15:21:07 -0000 1.20
@@ -343,9 +343,10 @@
///
/// Build the javascript for the dynamic project -> component -> version select boxes
-function build_project_js() {
+function build_project_js($params) {
global $db, $u, $perm, $_sv, $QUERY;
+ extract($params);
$js = '';
// Build the javascript-powered select boxes
@@ -359,7 +360,8 @@
while (list($pid, $pname) = $rs->fetchRow(DB_FETCHMODE_ORDERED)) {
$pname = addslashes($pname);
// Version array
- $js .= "versions['$pname'] = new Array(new Array('','All'),";
+ $js .= "versions['$pname'] = new Array(";
+ $js .= (!isset($no_all) || !$no_all) ? "new Array('','All')," : '';
$rs2 = $db->query("select version_name, version_id from ".TBL_VERSION.
" where project_id = $pid and active = 1");
while (list($version,$vid) = $rs2->fetchRow(DB_FETCHMODE_ORDERED)) {
@@ -370,7 +372,8 @@
$js .= ");\n";
// Component array
- $js .= "components['$pname'] = new Array(new Array('','All'),";
+ $js .= "components['$pname'] = new Array(";
+ $js .= (!isset($no_all) || !$no_all) ? "new Array('','All')," : '';
$rs2 = $db->query("select component_name, component_id from ".TBL_COMPONENT.
" where project_id = $pid and active = 1");
while (list($comp,$cid) = $rs2->fetchRow(DB_FETCHMODE_ORDERED)) {
|
|
From: Benjamin C. <bc...@us...> - 2002-04-10 18:39:30
|
Update of /cvsroot/phpbt/phpbt/schemas
In directory usw-pr-cvs1:/tmp/cvs-serv9203
Modified Files:
mysql.in pgsql.in
Log Message:
Changed quoting of '
Index: mysql.in
===================================================================
RCS file: /cvsroot/phpbt/phpbt/schemas/mysql.in,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- mysql.in 3 Apr 2002 23:16:58 -0000 1.23
+++ mysql.in 10 Apr 2002 14:16:05 -0000 1.24
@@ -289,7 +289,7 @@
INSERT INTO TBL_CONFIGURATION VALUES ('ADMIN_EMAIL','OPTION_PHPBT_EMAIL','The email address used in correspondence from the bug tracker','string');
INSERT INTO TBL_CONFIGURATION VALUES ('ENCRYPT_PASS','OPTION_ENCRYPT_PASS','Whether to store passwords encrypted. <b>Warning:</b> Changing this after users have been created will result in their being unable to login.','bool');
INSERT INTO TBL_CONFIGURATION VALUES ('USE_JPGRAPH','','Whether to show some reports as images','bool');
-INSERT INTO TBL_CONFIGURATION VALUES ('MASK_EMAIL','1','Should email addresses have . changed to \'dot\' and @ change to \'at\'?','bool');
+INSERT INTO TBL_CONFIGURATION VALUES ('MASK_EMAIL','1','Should email addresses have . changed to ''dot'' and @ change to ''at''?','bool');
INSERT INTO TBL_CONFIGURATION VALUES ('HIDE_EMAIL','1','Should email addresses be hidden for those not logged in?','bool');
INSERT INTO TBL_CONFIGURATION VALUES ('USE_SEVERITY_COLOR','1','Should the query list use the severity colors as the row background color (like SourceForge)','bool');
INSERT INTO TBL_CONFIGURATION VALUES ('EMAIL_IS_LOGIN','1','Whether to use email addresses as logins','bool');
@@ -343,10 +343,10 @@
insert into TBL_OS_seq values (31);
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);
-INSERT INTO TBL_RESOLUTION VALUES (3,'Won\'t Fix','This bug will stay',3);
-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 (2,'Not a bug','It''s not a bug -- it''s a feature!',2);
+INSERT INTO TBL_RESOLUTION VALUES (3,'Won''t Fix','This bug will stay',3);
+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 table TBL_RESOLUTION_seq (id int unsigned auto_increment not null primary key);
insert into TBL_RESOLUTION_seq values (6);
Index: pgsql.in
===================================================================
RCS file: /cvsroot/phpbt/phpbt/schemas/pgsql.in,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- pgsql.in 4 Apr 2002 00:33:42 -0000 1.25
+++ pgsql.in 10 Apr 2002 14:16:05 -0000 1.26
@@ -285,7 +285,7 @@
INSERT INTO TBL_CONFIGURATION VALUES ('ADMIN_EMAIL','OPTION_PHPBT_EMAIL','The email address used in correspondence from the bug tracker','string');
INSERT INTO TBL_CONFIGURATION VALUES ('ENCRYPT_PASS','OPTION_ENCRYPT_PASS','Whether to store passwords encrypted. <b>Warning:</b> Changing this after users have been created will result in their being unable to login.','bool');
INSERT INTO TBL_CONFIGURATION VALUES ('USE_JPGRAPH','','Whether to show some reports as images','bool');
-INSERT INTO TBL_CONFIGURATION VALUES ('MASK_EMAIL','1','Should email addresses have . changed to \'dot\' and @ change to \'at\'?','bool');
+INSERT INTO TBL_CONFIGURATION VALUES ('MASK_EMAIL','1','Should email addresses have . changed to ''dot'' and @ change to ''at''?','bool');
INSERT INTO TBL_CONFIGURATION VALUES ('HIDE_EMAIL','1','Should email addresses be hidden for those not logged in?','bool');
INSERT INTO TBL_CONFIGURATION VALUES ('USE_SEVERITY_COLOR','1','Should the query list use the severity colors as the row background color (like SourceForge)','bool');
INSERT INTO TBL_CONFIGURATION VALUES ('EMAIL_IS_LOGIN','1','Whether to use email addresses as logins','bool');
@@ -338,10 +338,10 @@
CREATE SEQUENCE TBL_OS_seq START 31;
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);
-INSERT INTO TBL_RESOLUTION VALUES (3,'Won\'t Fix','This bug will stay',3);
-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 (2,'Not a bug','It''s not a bug -- it''s a feature!',2);
+INSERT INTO TBL_RESOLUTION VALUES (3,'Won''t Fix','This bug will stay',3);
+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 6;
|
|
From: Benjamin C. <bc...@us...> - 2002-04-10 18:38:20
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv1980
Modified Files:
bug.php
Log Message:
Fixed a bug with slashes included in the subject lines of bug change emails
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -r1.96 -r1.97
--- bug.php 9 Apr 2002 23:25:25 -0000 1.96
+++ bug.php 10 Apr 2002 15:26:35 -0000 1.97
@@ -257,8 +257,9 @@
'assignedto_stat' => $assignedtostat
));
- mail($toemail,"[Bug {$buginfo['bug_id']}] ".($newbug ? 'New' : 'Changed').
- ' - '.(!empty($cf['title']) ? $cf['title'] : $buginfo['title']),
+ mail($toemail,
+ "[Bug {$buginfo['bug_id']}] ".($newbug ? 'New' : 'Changed').' - '.
+ stripslashes((!empty($cf['title']) ? $cf['title'] : $buginfo['title'])),
$t->fetch($template),
sprintf("From: %s\nReply-To: %s\nErrors-To: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n", ADMIN_EMAIL, ADMIN_EMAIL,
ADMIN_EMAIL, $STRING['lang_charset']));
|
|
From: Benjamin C. <bc...@us...> - 2002-04-10 18:36:15
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv28759
Modified Files:
attachment.php
Log Message:
Bugfix with redirecting back to the bug
Index: attachment.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/attachment.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- attachment.php 9 Apr 2002 23:26:04 -0000 1.16
+++ attachment.php 10 Apr 2002 15:07:39 -0000 1.17
@@ -25,12 +25,12 @@
include 'include.php';
function del_attachment($attachid) {
- global $db;
+ global $db, $HTTP_SERVER_VARS;
if (list($filename, $mimetype) = grab_attachment($attachid)) {
$db->query("delete from ".TBL_ATTACHMENT." where attachment_id = $attachid");
unlink($filename);
- header("Location: bug.php?op=show&bugid=$attachid");
+ header("Location: {$HTTP_SERVER_VARS['HTTP_REFERER']}");
}
}
|
|
From: Benjamin C. <bc...@us...> - 2002-04-09 23:27:38
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin In directory usw-pr-cvs1:/tmp/cvs-serv20152/templates/default/admin Modified Files: header.html Log Message: Cleanup Index: header.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/header.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- header.html 8 Apr 2002 12:24:36 -0000 1.4 +++ header.html 9 Apr 2002 23:27:35 -0000 1.5 @@ -10,11 +10,11 @@ <td width="150" height="30" class="nav"> phpBugTracker </td> - <input type="hidden" name="op" value="show"> + <td height="30" class="nav" align="right"> <form action="../bug.php"> - <td height="30" class="nav" align="right"> - Find bug <input type="text" name="bugid" size="4" class="navinput"> - + <input type="hidden" name="op" value="show"> + Find bug <input type="text" name="bugid" size="4" class="navinput"> + </form> </td> </tr> |
|
From: Benjamin C. <bc...@us...> - 2002-04-09 23:27:07
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv19998/templates/default
Modified Files:
bugattachmentform.html
Log Message:
Cleanup
Index: bugattachmentform.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugattachmentform.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- bugattachmentform.html 3 Apr 2002 00:57:50 -0000 1.3
+++ bugattachmentform.html 9 Apr 2002 23:27:03 -0000 1.4
@@ -1,5 +1,5 @@
<form enctype="multipart/form-data" action="{$SCRIPT_NAME}" method="post">
-<input type="hidden" name="bugid" value="{bugid}">
+<input type="hidden" name="bugid" value="{$bugid}">
<table border="0" width="640">
<tr>
<td colspan="2">
@@ -9,7 +9,7 @@
</tr>
{if $error}
<tr>
- <td colspan="2" class="error">{error}</td>
+ <td colspan="2" class="error">{$error}</td>
</tr>
{/if}
<tr>
|
|
From: Benjamin C. <bc...@us...> - 2002-04-09 23:26:42
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv19827/inc
Modified Files:
functions.php
Log Message:
Clobbering INSTALL_PATH
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- functions.php 4 Apr 2002 18:35:30 -0000 1.18
+++ functions.php 9 Apr 2002 23:26:39 -0000 1.19
@@ -149,7 +149,7 @@
$text .= '</option>';
break;
case 'LANGUAGE' :
- $dir = opendir(INSTALL_PATH.'/languages');
+ $dir = opendir('languages');
while (false !== ($file = readdir($dir))) {
if ($file != '.' && $file != '..' && $file != 'CVS') {
$filelist[] = str_replace('.php', '', $file);
@@ -167,7 +167,7 @@
}
break;
case 'THEME' :
- $dir = opendir(INSTALL_PATH.'/templates');
+ $dir = opendir('templates');
while (false !== ($file = readdir($dir))) {
if ($file != '.' && $file != '..' && $file != 'CVS') {
$filelist[] = str_replace('.php', '', $file);
@@ -185,7 +185,7 @@
}
break;
case 'STYLE' :
- $dir = opendir(INSTALL_PATH.'/styles');
+ $dir = opendir('styles');
while (false !== ($file = readdir($dir))) {
if ($file != '.' && $file != '..' && $file != 'CVS') {
$filelist[] = str_replace('.css', '', $file);
|
|
From: Benjamin C. <bc...@us...> - 2002-04-09 23:26:08
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv19699
Modified Files:
attachment.php
Log Message:
Cleanup, bug fixes
Index: attachment.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/attachment.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- attachment.php 3 Apr 2002 01:00:52 -0000 1.15
+++ attachment.php 9 Apr 2002 23:26:04 -0000 1.16
@@ -48,7 +48,7 @@
show_text($STRING['bad_attachment'], true);
return false;
}
- $filename = join('/',array(INSTALL_PATH, ATTACHMENT_PATH,
+ $filename = join('/',array(ATTACHMENT_PATH,
$ainfo['project_id'], "{$ainfo['bug_id']}-{$ainfo['file_name']}"));
if (!is_readable($filename)) {
show_text($STRING['bad_attachment'], true);
@@ -90,7 +90,7 @@
}
}
- $filepath = INSTALL_PATH.'/'.ATTACHMENT_PATH;
+ $filepath = ATTACHMENT_PATH;
$tmpfilename = $HTTP_POST_FILES['attachment']['tmp_name'];
$filename = "$bugid-{$HTTP_POST_FILES['attachment']['name']}";
@@ -118,10 +118,10 @@
$db->query("insert into ".TBL_ATTACHMENT." (attachment_id, bug_id, file_name, ".
"description, file_size, mime_type, created_by, created_date) values (".
join(', ', array($db->nextId(TBL_ATTACHMENT), $bugid,
- $HTTP_POST_FILES['attachment']['name'],
+ $db->quote($HTTP_POST_FILES['attachment']['name']),
$db->quote(stripslashes($description)),
$HTTP_POST_FILES['attachment']['size'],
- $HTTP_POST_FILES['attachment']['type'], $u, $now)).")");
+ $db->quote($HTTP_POST_FILES['attachment']['type']), $u, $now)).")");
$t->assign('bugid', $bugid);
$t->display('bugattachmentsuccess.html');
}
@@ -129,7 +129,6 @@
function show_attachment_form($bugid, $error = '') {
global $db, $t, $STRING;
- $t->set_file('content', 'bugattachmentform.html');
if (!is_numeric($bugid)) {
show_text($STRING['nobug'], true);
return;
@@ -170,7 +169,7 @@
}
} else {
$perm->check('Editbug');
- show_attachment_form($_gv['bugid']);
+ show_attachment_form($_gv['bug_id']);
}
?>
|
|
From: Benjamin C. <bc...@us...> - 2002-04-09 23:25:28
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv19535
Modified Files:
bug.php
Log Message:
Bug fixes with the attachment list
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- bug.php 6 Apr 2002 23:47:29 -0000 1.95
+++ bug.php 9 Apr 2002 23:25:25 -0000 1.96
@@ -555,16 +555,19 @@
$rs = $db->query("select * from ".TBL_ATTACHMENT." where bug_id = $bugid");
if ($rs->numRows()) {
while ($rs->fetchInto($att)) {
- if (@is_readable(INSTALL_PATH.'/'.ATTACHMENT_PATH."/{$row['project_id']}/$bugid-{$att['file_name']}")) {
+ if (@is_readable(ATTACHMENT_PATH."/{$row['project_id']}/$bugid-{$att['file_name']}")) {
$attachments[] = $att;
}
}
}
// Show the comments
- $t->assign('comments', $db->getAll('select comment_text, c.created_date, login'
- .' from '.TBL_COMMENT.' c, '.TBL_AUTH_USER
- ." where bug_id = $bugid and c.created_by = user_id order by c.created_date"));
+ $t->assign(array(
+ 'attachments' => $attachments,
+ 'comments' => $db->getAll('select comment_text, c.created_date, login'
+ .' from '.TBL_COMMENT.' c, '.TBL_AUTH_USER
+ ." where bug_id = $bugid and c.created_by = user_id order by c.created_date")
+ ));
$t->display('bugdisplay.html');
}
|
|
From: Benjamin C. <bc...@us...> - 2002-04-09 21:08:15
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv26402
Modified Files:
config-dist.php config.php include.php
Log Message:
Fun with paths
Index: config-dist.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/config-dist.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- config-dist.php 8 Apr 2002 15:19:33 -0000 1.13
+++ config-dist.php 9 Apr 2002 20:53:07 -0000 1.14
@@ -29,6 +29,7 @@
define ('DB_PASSWORD', '{db_pass}'); // password for database connection
// Smarty templates location (leave blank if Smarty is in include path)
+// If not blank, make sure the trailing slash is present.
define ('SMARTY_PATH', '{smarty_path}');
// Database Table Config
@@ -65,8 +66,8 @@
define ('ONEDAY', 86400);
-require_once (INSTALL_PATH.'/inc/db/'.DB_TYPE.'.php');
-require_once (INSTALL_PATH.'/inc/auth.php');
-require_once (INSTALL_PATH.'/inc/template.php');
+require_once ('inc/db/'.DB_TYPE.'.php');
+require_once ('inc/auth.php');
+require_once ('inc/template.php');
?>
Index: config.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/config.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- config.php 8 Apr 2002 15:19:33 -0000 1.28
+++ config.php 9 Apr 2002 20:53:07 -0000 1.29
@@ -32,6 +32,7 @@
define ('DB_PASSWORD', '');
// Smarty templates location (leave blank if Smarty is in include path)
+// If not blank, make sure the trailing slash is present.
define ('SMARTY_PATH', '');
// Database Table Config
@@ -67,8 +68,8 @@
define ('ONEDAY', 86400);
-require_once (INSTALL_PATH.'/inc/db/'.DB_TYPE.'.php');
-require_once (INSTALL_PATH.'/inc/auth.php');
-require_once (INSTALL_PATH.'/inc/template.php');
+require_once ('inc/db/'.DB_TYPE.'.php');
+require_once ('inc/auth.php');
+require_once ('inc/template.php');
?>
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -r1.111 -r1.112
--- include.php 8 Apr 2002 21:25:31 -0000 1.111
+++ include.php 9 Apr 2002 20:53:07 -0000 1.112
@@ -25,9 +25,9 @@
ini_set("magic_quotes_runtime", 0);
// Where are we?
-define ('INSTALL_PATH', dirname(__FILE__));
+#define ('INSTALL_PATH', dirname(__FILE__));
-if (!@include (INSTALL_PATH.'/config.php')) {
+if (!@include('config.php')) {
header("Location: install.php");
exit();
}
@@ -37,7 +37,7 @@
}
// Grab the global functions
-include (INSTALL_PATH.'/inc/functions.php');
+include ('inc/functions.php');
// PEAR::DB
require_once('DB.php');
@@ -60,7 +60,7 @@
}
// Localization - include the file with the desired language
-include INSTALL_PATH.'/languages/'.LANGUAGE.'.php';
+include 'languages/'.LANGUAGE.'.php';
$me = $HTTP_SERVER_VARS['PHP_SELF'];
$me2 = !empty($HTTP_SERVER_VARS['REQUEST_URI']) ? $HTTP_SERVER_VARS['REQUEST_URI'] :
@@ -97,7 +97,7 @@
// Template class
-if (!@include((SMARTY_PATH==''?'':(INSTALL_PATH . '/')) . SMARTY_PATH . 'Smarty.class.php')) {
+if (!@include(SMARTY_PATH . 'Smarty.class.php')) {
include('templates/default/base/smartymissing.html');
exit;
}
@@ -111,8 +111,8 @@
}
$t = new extSmarty;
-$t->template_dir = INSTALL_PATH.'/templates/'.THEME.'/';
-$t->compile_dir = INSTALL_PATH.'/c_templates';
+$t->template_dir = 'templates/'.THEME.'/';
+$t->compile_dir = 'c_templates';
$t->config_dir = '.';
$t->register_function('build_select', 'build_select');
$t->register_function('project_js', 'build_project_js');
@@ -194,7 +194,7 @@
}
if (defined('FORCE_LOGIN') and FORCE_LOGIN and !$u and !defined('NO_AUTH')) {
- include(INSTALL_PATH.'/templates/'.THEME.'/login.html');
+ include('templates/'.THEME.'/login.html');
exit;
}
|
|
From: Benjamin C. <bc...@us...> - 2002-04-09 21:08:05
|
Update of /cvsroot/phpbt/phpbt/templates/default/base
In directory usw-pr-cvs1:/tmp/cvs-serv27735/templates/default/base
Modified Files:
smartymissing.html
Log Message:
Offer a little more help
Index: smartymissing.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/base/smartymissing.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- smartymissing.html 9 Apr 2002 20:44:28 -0000 1.2
+++ smartymissing.html 9 Apr 2002 20:56:46 -0000 1.3
@@ -7,14 +7,15 @@
<div class="error">An error has occurred</div>
<div align="center">
<?php if (SMARTY_PATH == '') { ?>
- The Smarty templates class is not in your include path.
+ The Smarty templates class is not in your include path. Either specify
+ the location of smarty via the SMARTY_PATH define in config.php
+ (and don't forget the trailing slash) or install smarty in your include path.
<?php } else { ?>
The Smarty templates class could not be found at <?php echo SMARTY_PATH.'Smarty.class.php'; ?>.
<?php } ?>
Without this class being available, phpBugTracker will not be able to work.
- Please visit <a href="http://www.phpinsider.com/php/code/Smarty/">the smarty
- website</a> and install the package. Please reload this page when smarty
- has been installed.
+ Smarty can be downloaded from <a href="http://www.phpinsider.com/php/code/Smarty/">the smarty
+ website</a>. Please reload this page when smarty has been installed.
</div>
</body>
</html>
|
|
From: Benjamin C. <bc...@us...> - 2002-04-09 20:44:55
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv23349/admin
Modified Files:
configure.php group.php os.php project.php resolution.php
severity.php status.php user.php
Log Message:
Trying to solve some of this include path craziness
Index: configure.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/configure.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- configure.php 3 Apr 2002 18:18:02 -0000 1.7
+++ configure.php 9 Apr 2002 20:44:52 -0000 1.8
@@ -22,8 +22,9 @@
// ------------------------------------------------------------------------
// $Id$
+chdir('..');
define('TEMPLATE_PATH', 'admin');
-include '../include.php';
+include 'include.php';
$perm->check('Admin');
Index: group.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/group.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- group.php 3 Apr 2002 00:58:26 -0000 1.8
+++ group.php 9 Apr 2002 20:44:52 -0000 1.9
@@ -22,8 +22,9 @@
// ------------------------------------------------------------------------
// $Id$
+chdir('..');
define('TEMPLATE_PATH', 'admin');
-include '../include.php';
+include 'include.php';
function purge_group($groupid = 0) {
global $db;
Index: os.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/os.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- os.php 3 Apr 2002 00:58:26 -0000 1.25
+++ os.php 9 Apr 2002 20:44:52 -0000 1.26
@@ -22,8 +22,9 @@
// ------------------------------------------------------------------------
// $Id$
+chdir('..');
define('TEMPLATE_PATH', 'admin');
-include '../include.php';
+include 'include.php';
function del_item($osid = 0) {
global $db, $me;
Index: project.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/project.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- project.php 4 Apr 2002 13:30:17 -0000 1.38
+++ project.php 9 Apr 2002 20:44:52 -0000 1.39
@@ -22,8 +22,9 @@
// ------------------------------------------------------------------------
// $Id$
+chdir('..');
define('TEMPLATE_PATH', 'admin');
-include '../include.php';
+include 'include.php';
function del_version($versionid, $projectid) {
global $db, $me;
Index: resolution.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/resolution.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- resolution.php 3 Apr 2002 18:24:47 -0000 1.27
+++ resolution.php 9 Apr 2002 20:44:52 -0000 1.28
@@ -22,8 +22,9 @@
// ------------------------------------------------------------------------
// $Id$
+chdir('..');
define('TEMPLATE_PATH', 'admin');
-include '../include.php';
+include 'include.php';
function del_item($resolutionid = 0) {
global $db, $me;
Index: severity.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/severity.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- severity.php 3 Apr 2002 00:58:26 -0000 1.22
+++ severity.php 9 Apr 2002 20:44:52 -0000 1.23
@@ -22,8 +22,9 @@
// ------------------------------------------------------------------------
// $Id$
+chdir('..');
define('TEMPLATE_PATH', 'admin');
-include '../include.php';
+include 'include.php';
function del_item($severityid = 0) {
global $db, $me;
Index: status.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/status.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- status.php 3 Apr 2002 00:58:26 -0000 1.26
+++ status.php 9 Apr 2002 20:44:52 -0000 1.27
@@ -22,8 +22,9 @@
// ------------------------------------------------------------------------
// $Id$
+chdir('..');
define('TEMPLATE_PATH', 'admin');
-include '../include.php';
+include 'include.php';
function del_item($statusid = 0) {
global $db, $me;
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/user.php,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- user.php 3 Apr 2002 00:58:26 -0000 1.46
+++ user.php 9 Apr 2002 20:44:52 -0000 1.47
@@ -22,8 +22,9 @@
// ------------------------------------------------------------------------
// $Id$
+chdir('..');
define('TEMPLATE_PATH', 'admin');
-include '../include.php';
+include 'include.php';
function do_form($userid = 0) {
global $db, $me, $_pv, $STRING, $now, $u, $QUERY, $t;
|
|
From: Benjamin C. <bc...@us...> - 2002-04-09 20:44:31
|
Update of /cvsroot/phpbt/phpbt/templates/default/base
In directory usw-pr-cvs1:/tmp/cvs-serv23211/templates/default/base
Modified Files:
smartymissing.html templatesperm.html
Log Message:
Cleanup
Index: smartymissing.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/base/smartymissing.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- smartymissing.html 8 Apr 2002 17:03:37 -0000 1.1
+++ smartymissing.html 9 Apr 2002 20:44:28 -0000 1.2
@@ -4,8 +4,13 @@
<link rel="stylesheet" href="styles/default.css" type="text/css">
</head>
<body>
- <div class="error">
- The Smarty templates class is not in your include path.
+ <div class="error">An error has occurred</div>
+ <div align="center">
+ <?php if (SMARTY_PATH == '') { ?>
+ The Smarty templates class is not in your include path.
+ <?php } else { ?>
+ The Smarty templates class could not be found at <?php echo SMARTY_PATH.'Smarty.class.php'; ?>.
+ <?php } ?>
Without this class being available, phpBugTracker will not be able to work.
Please visit <a href="http://www.phpinsider.com/php/code/Smarty/">the smarty
website</a> and install the package. Please reload this page when smarty
Index: templatesperm.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/base/templatesperm.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- templatesperm.html 8 Apr 2002 17:03:37 -0000 1.1
+++ templatesperm.html 9 Apr 2002 20:44:28 -0000 1.2
@@ -1,10 +1,11 @@
<html>
<head>
- <title>Smarty Templates Missing</title>
+ <title>Compiled Templates Directory Not Writeable</title>
<link rel="stylesheet" href="styles/default.css" type="text/css">
</head>
<body>
- <div class="error">
+ <div class="error">An error has occurred</div>
+ <div align="center">
The "c_templates" subdirectory is not writeable by the
web process. This needs to be corrected before the installation can proceed
so the templates can be compiled by smarty. Please reload this page when
|
|
From: Benjamin C. <bc...@us...> - 2002-04-08 17:08:06
|
Update of /cvsroot/phpbt/phpbt/templates/default/base In directory usw-pr-cvs1:/tmp/cvs-serv28288/templates/default/base Log Message: Directory /cvsroot/phpbt/phpbt/templates/default/base added to the repository |
|
From: Benjamin C. <bc...@us...> - 2002-04-08 17:06:55
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv29663
Modified Files:
install.php
Log Message:
Move error messages to templates
Index: install.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/install.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- install.php 8 Apr 2002 15:19:33 -0000 1.23
+++ install.php 8 Apr 2002 17:06:50 -0000 1.24
@@ -31,21 +31,12 @@
//define ('SMARTY_PATH','./inc/smarty/');
if (!@include(SMARTY_PATH . 'Smarty.class.php')) { // Template class
- die('<br><br>
- <div align="center">The Smarty templates class is not in your include path.
- Without this class being available, phpBugTracker will not be able to work.
- Please visit <a href="http://www.phpinsider.com/php/code/Smarty/">the smarty
- website</a> and install the package. Please reload this page when smarty
- has been installed.</div>
- ');
+ include('templates/default/base/smartymissing.html');
+ exit;
}
if (!@is_writeable('c_templates')) {
- die('<br><br>
- <div align="center">The "c_templates" subdirectory is not writeable by the
- web process. This needs to be corrected before the installation can proceed
- so the templates can be compiled by smarty. Please reload this page when
- this has been corrected.</div>
- ');
+ include('templates/default/base/templatesperm.html');
+ exit;
}
// Template class
|
|
From: Benjamin C. <bc...@us...> - 2002-04-08 17:05:57
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv29288
Modified Files:
upgrade.php
Log Message:
Don't include smarty twice (include.php is the first time). Move error messages to templates. Add bug dependency table. Set the default style so include.php won't complain when assigning it to the template.
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/upgrade.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- upgrade.php 3 Apr 2002 18:18:02 -0000 1.21
+++ upgrade.php 8 Apr 2002 17:05:52 -0000 1.22
@@ -23,6 +23,8 @@
// $Id$
define ('NO_AUTH', 1);
+define ('STYLE', 'default');
+
include 'include.php';
function upgrade() {
@@ -31,22 +33,9 @@
// Note, no upgrades for oracle since we didn't support oracle before 0.8.0
$upgraded = $db->getOne('select varname from '.TBL_CONFIGURATION.' where varname = \'FORCE_LOGIN\'');
if (!$upgraded or DB::isError($upgraded)) {
- if (!@include('Smarty.class.php')) { // Template class
- die('<br><br>
- <div align="center">The Smarty templates class is not in your include path.
- Without this class being available, phpBugTracker will not be able to work.
- Please visit <a href="http://www.phpinsider.com/php/code/Smarty/">the smarty
- website</a> and install the package. Please reload this page when smarty
- has been installed.</div>
- ');
- }
if (!@is_writeable('c_templates')) {
- die('<br><br>
- <div align="center">The "c_templates" subdirectory is not writeable by the
- web process. This needs to be corrected before the upgrade can proceed
- so the templates can be compiled by smarty. Please reload this page when
- this has been corrected.</div>
- ');
+ include('templates/default/base/templatesperm.html');
+ exit;
}
// Convert the sequences
if (DB_TYPE == 'mysql') {
@@ -57,6 +46,7 @@
if (DB_TYPE == 'pgsql') {
// Set up the user prefs table
$db->query("CREATE TABLE ".TBL_USER_PREF." ( user_id INT4 NOT NULL DEFAULT '0', email_notices INT2 NOT NULL DEFAULT '1', PRIMARY KEY (user_id) )");
+ $db->query("CREATE TABLE ".TBL_BUG_DEPENDENCY." ( bug_id INT4 NOT NULL DEFAULT '0', depends_on INT4 NOT NULL DEFAULT '0', PRIMARY KEY (bug_id,depends_on) )");
$db->query("insert into ".TBL_USER_PREF." (user_id) select user_id from ".TBL_AUTH_USER);
// Move the sequences
while ($rs->fetchInto($row)) {
@@ -65,6 +55,7 @@
} else {
// Set up the user prefs table
$db->query("CREATE TABLE ".TBL_USER_PREF." ( user_id int(11) NOT NULL default '0', email_notices tinyint(1) NOT NULL default '1', PRIMARY KEY (user_id) )");
+ $db->query("CREATE TABLE ".TBL_BUG_DEPENDENCY." ( bug_id int(10) unsigned NOT NULL default '0', depends_on int(10) unsigned NOT NULL default '0', PRIMARY KEY (bug_id,depends_on) )");
$db->query("insert into ".TBL_USER_PREF." (user_id) select user_id from ".TBL_AUTH_USER);
// Move the sequences
while ($rs->fetchInto($row)) {
|
|
From: Benjamin C. <bc...@us...> - 2002-04-08 17:05:55
|
Update of /cvsroot/phpbt/phpbt/templates/default/base In directory usw-pr-cvs1:/tmp/cvs-serv28466/templates/default/base Added Files: smartymissing.html templatesperm.html Log Message: Error messages --- NEW FILE: smartymissing.html --- <html> <head> <title>Smarty Templates Missing</title> <link rel="stylesheet" href="styles/default.css" type="text/css"> </head> <body> <div class="error"> The Smarty templates class is not in your include path. Without this class being available, phpBugTracker will not be able to work. Please visit <a href="http://www.phpinsider.com/php/code/Smarty/">the smarty website</a> and install the package. Please reload this page when smarty has been installed. </div> </body> </html> --- NEW FILE: templatesperm.html --- <html> <head> <title>Smarty Templates Missing</title> <link rel="stylesheet" href="styles/default.css" type="text/css"> </head> <body> <div class="error"> The "c_templates" subdirectory is not writeable by the web process. This needs to be corrected before the installation can proceed so the templates can be compiled by smarty. Please reload this page when this has been corrected. </div> </body> </html> |