|
From: Benjamin C. <bc...@us...> - 2001-08-10 13:51:21
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv24900
Modified Files:
createdb.sql include.php strings-en.php
Log Message:
Ooh, attachments
Index: createdb.sql
===================================================================
RCS file: /cvsroot/phpbt/phpbt/createdb.sql,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- createdb.sql 2001/08/03 13:30:43 1.5
+++ createdb.sql 2001/08/10 13:51:17 1.6
@@ -283,11 +283,23 @@
KEY changed (changed)
);
-CREATE TABLE `BugHistory` (
- `BugID` int(10) unsigned NOT NULL default '0',
- `ChangedField` char(20) NOT NULL default '',
- `OldValue` char(255) NOT NULL default '',
- `NewValue` char(255) NOT NULL default '',
- `CreatedBy` int(10) unsigned NOT NULL default '0',
- `CreatedDate` bigint(20) unsigned NOT NULL default '0'
+CREATE TABLE BugHistory (
+ BugID int(10) unsigned NOT NULL default '0',
+ ChangedField char(20) NOT NULL default '',
+ OldValue char(255) NOT NULL default '',
+ NewValue char(255) NOT NULL default '',
+ CreatedBy int(10) unsigned NOT NULL default '0',
+ CreatedDate bigint(20) unsigned NOT NULL default '0'
+);
+
+CREATE TABLE Attachment (
+ AttachmentID int(10) unsigned NOT NULL default '0',
+ BugID int(10) unsigned NOT NULL default '0',
+ FileName char(255) NOT NULL default '',
+ Description char(255) NOT NULL default '',
+ FileSize bigint(20) unsigned NOT NULL default '0',
+ MimeType char(30) NOT NULL default '',
+ CreatedBy int(10) unsigned NOT NULL default '0',
+ CreatedDate bigint(20) unsigned NOT NULL default '0',
+ PRIMARY KEY (AttachmentID)
);
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- include.php 2001/08/09 22:22:54 1.25
+++ include.php 2001/08/10 13:51:17 1.26
@@ -35,7 +35,8 @@
define ('JPGRAPH_PATH', '/home/bcurtis/public_html/jp/'); // If it's not in the include path
define ('MASK_EMAIL', 1); // Should email addresses be plainly visible?
define ('HIDE_EMAIL', 1); // Should email addresses be hidden for those not logged in?
-
+// Sub-dir of the INSTALLPATH - Needs to be writeable by the web process
+define ('ATTACHMENT_PATH', 'attachments');
require PHPLIBPATH.'db_mysql.inc';
require PHPLIBPATH.'ct_sql.inc';
require PHPLIBPATH.'session.inc';
Index: strings-en.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/strings-en.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- strings-en.php 2001/08/09 12:54:47 1.12
+++ strings-en.php 2001/08/10 13:51:17 1.13
@@ -50,7 +50,10 @@
'datecollision' => 'Someone has updated this bug since you viewed it. The bug info has been reloaded with the latest changes.',
'passwordmatch' => 'Those passwords don\'t match -- please try again',
'nobughistory' => 'There is no history for that bug',
- 'logintomodify' => 'You must be logged in to modify this bug'
+ 'logintomodify' => 'You must be logged in to modify this bug',
+ 'no_attachment_save_path' => 'Couldn\'t find where to save the file!',
+ 'attachment_path_not_writeable' => 'Couldn\'t create a file in the save path',
+ 'attachment_move_error' => 'There was an error moving the uploaded file'
);
// Page titles
|