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-09-15 15:40:00
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv9039
Modified Files:
configure
Log Message:
Starting on the database creation stuff
Index: configure
===================================================================
RCS file: /cvsroot/phpbt/phpbt/configure,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- configure 2001/08/23 02:28:52 1.8
+++ configure 2001/09/15 15:39:57 1.9
@@ -16,6 +16,7 @@
DB_HOST='localhost'
DB_USER='root'
DB_PASS=''
+DB_TBL_PREFIX=''
# Booleans
ENCRYPTPASS=1
@@ -80,7 +81,18 @@
database() {
$DIALOG --backtitle "phpBT Configuration" \
- --title "Database Host" \
+ --title "Database Server Software (1 of 5)" \
+ --radiolist "Enter the type database server" 0 0 3 \
+ MySQL '' on \
+ Postgres '' off
+ 2> $tempfile
+ if [ $? -gt 0 ]; then
+ return
+ fi
+ DB_TYPE=`<$tempfile`
+
+ $DIALOG --backtitle "phpBT Configuration" \
+ --title "Database Host (2 of 5)" \
--inputbox "Enter the hostname of the server hosting the database server" 0 0 $DB_HOST \
2> $tempfile
if [ $? -gt 0 ]; then
@@ -89,7 +101,7 @@
DB_HOST=`<$tempfile`
$DIALOG --backtitle "phpBT Configuration" \
- --title "Database User" \
+ --title "Database User (3 of 5)" \
--inputbox "Enter the username to use for connecting to the database" 0 0 $DB_USER \
2> $tempfile
if [ $? -gt 0 ]; then
@@ -98,13 +110,22 @@
DB_USER=`<$tempfile`
$DIALOG --backtitle "phpBT Configuration" \
- --title "Database Password" \
+ --title "Database Password (4 of 5)" \
--inputbox "Enter the password to use when connecting to the database" 0 0 $DB_PASS \
2> $tempfile
if [ $? -gt 0 ]; then
return
fi
DB_PASS=`<$tempfile`
+
+ $DIALOG --backtitle "phpBT Configuration" \
+ --title "Database Table Prefix (5 of 5)" \
+ --inputbox "Enter the prefix to be used in creating table names (like phpbt_)" 0 0 $DB_TBL_PREFIX \
+ 2> $tempfile
+ if [ $? -gt 0 ]; then
+ return
+ fi
+ DB_TBL_PREFIX=`<$tempfile`
}
change_features() {
|
|
From: Benjamin C. <bc...@us...> - 2001-09-15 14:49:21
|
Update of /cvsroot/phpbt/phpbt/languages In directory usw-pr-cvs1:/tmp/cvs-serv774/languages Modified Files: no.php Log Message: Translated givelogin Index: no.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/languages/no.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- no.php 2001/09/03 17:03:22 1.3 +++ no.php 2001/09/15 14:49:16 1.4 @@ -1,7 +1,7 @@ <?php // no.php - Norwegian strings and titles -// Translation by Sven-Erik Anderson +// Translation by Sven-Erik Andersen // ------------------------------------------------------------------------ // Copyright (c) 2001 The phpBugTracker Group // ------------------------------------------------------------------------ @@ -33,7 +33,7 @@ 'noprojects' => 'Ingen prosjekter funnet', 'totalbugs' => 'Totalt antall feil', 'giveemail' => 'Vennligst skriv en gyldig email adresse', - 'givelogin' => 'Please enter a login', + 'givelogin' => 'Vennligst skriv inn et brukernavn', 'loginused' => 'Det brukernavnet er allerede i bruk', 'newacctsubject' => 'phpBugTracker Innlogging', 'newacctmessage' => "Ditt phpBugTracker passord er %s", @@ -51,7 +51,7 @@ 'nousers' => 'Ingen brukere funnet', 'bugbadperm' => 'Du kan ikke endre denne feilen', 'bugbadnum' => 'Denne feilen eksisterer ikke', - 'datecollision' => 'Noen har oppdatert feilen siden sist du så den. Feil informasjonen har blitt lastet på nytt med de siste endringer.', + 'datecollision' => 'Noen har oppdatert feilen siden sist du så den. Feil informasjonen har blitt lastet på nytt med de siste endringer.', 'passwordmatch' => 'Disse passordene er ikke like -- vennligst prøv igjen', 'nobughistory' => 'Det er ingen historie for denne feilen', 'logintomodify' => 'Du må være logget inn for å redigere denne feilen', |
|
From: Javier S. <ja...@us...> - 2001-09-14 16:48:16
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv16869
Modified Files:
user.php
Log Message:
remember last field on error
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/user.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- user.php 2001/09/07 13:09:49 1.25
+++ user.php 2001/09/14 16:48:13 1.26
@@ -145,12 +145,12 @@
'action' => $userid ? $STRING['edit'] : $STRING['addnew'],
'error' => $error,
'fuserid' => $_pv['userid'],
- 'flogin' => $_pv['login'],
+ 'flogin' => $_pv['flogin'],
'ffirstname' => stripslashes($_pv['firstname']),
- 'flastname' => stripslashes($_pv['lastname']),
- 'femail' => $_pv['email'],
- 'fpassword' => $_pv['password'] ? $_pv['password'] : genpassword(10),
- 'factive' => isset($_pv['active']) ? ($_pv['active'] ? 'checked' : '')
+ 'flastname' => stripslashes($_pv['flastname']),
+ 'femail' => $_pv['femail'],
+ 'fpassword' => $_pv['fpassword'] ? $_pv['fpassword'] : genpassword(10),
+ 'factive' => isset($_pv['factive']) ? ($_pv['factive'] ? 'checked' : '')
: 'checked',
'fusergroup' => build_select('group', $_pv['fusergroup'])
));
|
|
From: Ben C. <php...@be...> - 2001-09-13 18:41:03
|
On Thu, Sep 13, 2001 at 07:37:27PM +0200, Patrick Mairif wrote: > > Right -- so I guess an item needs to be added to the main menu for database creation. This should also give the user a chance to select the database table prefix (using that prefix in the configure script and changing it in config.php). Would you like to do that? > > ok! give some time at the weekend! > Alright, and if I have some spare time between now and then I'll poke at it. |
|
From: Patrick M. <mai...@st...> - 2001-09-13 17:37:34
|
> Right -- so I guess an item needs to be added to the main menu for database creation. This should also give the user a chance to select the database table prefix (using that prefix in the configure script and changing it in config.php). Would you like to do that? ok! give some time at the weekend! -- http://home.nikocity.de/mairif http://www.caravan-network.de |
|
From: Javier S. <js...@si...> - 2001-09-13 16:48:12
|
Yes , i can install anything you which ... then give to each dev a login pass ;-) Ben Curtis wrote: >>>I have en general, question about server ... I owned into my house a >>>personal server (RH 7.1), i just have cable (300K/64K) connection, this >>>server is up 24h/24h, and it do nothing very important. >>>Are phpbt dev team interested? >>> >>why not? :) >> > >Yup, we could definitely use it as a test-bed for postgres compatibility. > > |
|
From: Ben C. <php...@be...> - 2001-09-13 16:38:47
|
On Thu, Sep 13, 2001 at 05:00:47PM +0200, Patrick Mairif wrote: > > Well, i can give to a login/pass ssh, if you want to find some other > > info ? This is a test server administrate by my-self and owned by my > > company. I can open firwall just a moment for yours tests ... > > ok, send me the login-info o my personal address. > > > I have en general, question about server ... I owned into my house a > > personal server (RH 7.1), i just have cable (300K/64K) connection, this > > server is up 24h/24h, and it do nothing very important. > > Are phpbt dev team interested? > > why not? :) Yup, we could definitely use it as a test-bed for postgres compatibility. |
|
From: Ben C. <php...@be...> - 2001-09-13 16:37:59
|
On Thu, Sep 13, 2001 at 06:26:58PM +0200, Patrick Mairif wrote: > On Thu, 13 Sep 2001, Ben Curtis wrote: > > > perms.sql should go away, as its content has been included in the files in the schemas directory. > > ok! > > > I had thought about using configure_db separate from configure, since > > some people don't have dialog installed and configure_db doesn't need > > dialog. Thoughts on that? > > I agree. But configure can use configure_db to create the sql-scripts. > Otherwise it must be made by hand. Right -- so I guess an item needs to be added to the main menu for database creation. This should also give the user a chance to select the database table prefix (using that prefix in the configure script and changing it in config.php). Would you like to do that? > > > -- > http://home.nikocity.de/mairif > http://www.caravan-network.de > > > _______________________________________________ > phpbt-dev mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpbt-dev |
|
From: Patrick M. <mai...@st...> - 2001-09-13 16:27:03
|
On Thu, 13 Sep 2001, Ben Curtis wrote: > perms.sql should go away, as its content has been included in the files in the schemas directory. ok! > I had thought about using configure_db separate from configure, since > some people don't have dialog installed and configure_db doesn't need > dialog. Thoughts on that? I agree. But configure can use configure_db to create the sql-scripts. Otherwise it must be made by hand. -- http://home.nikocity.de/mairif http://www.caravan-network.de |
|
From: Ben C. <php...@be...> - 2001-09-13 16:09:39
|
perms.sql should go away, as its content has been included in the files in the schemas directory. I had thought about using configure_db separate from configure, since some people don't have dialog installed and configure_db doesn't need dialog. Thoughts on that? On Thu, Sep 13, 2001 at 11:15:54AM +0200, Patrick Mairif wrote: > On Wed, 12 Sep 2001, Ben Curtis wrote: > > > Is there anything left preventing the release of 0.3.0? I'd like to get the postgres schema tested, but I also don't want to release if there's really nothing left to be done. > > what about using configure_db in configure and switching to the > schema-model? > > Therefor I'd like to add some commandline-options to configure_db. > > what about perms.sql? > > we could keep all this stuff for 0.3.1. > > greetz, patrick! > > -- > http://home.nikocity.de/mairif > http://www.caravan-network.de > > > _______________________________________________ > phpbt-dev mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpbt-dev |
|
From: Patrick M. <mai...@st...> - 2001-09-13 15:00:52
|
> Well, i can give to a login/pass ssh, if you want to find some other > info ? This is a test server administrate by my-self and owned by my > company. I can open firwall just a moment for yours tests ... ok, send me the login-info o my personal address. > I have en general, question about server ... I owned into my house a > personal server (RH 7.1), i just have cable (300K/64K) connection, this > server is up 24h/24h, and it do nothing very important. > Are phpbt dev team interested? why not? :) -- http://home.nikocity.de/mairif http://www.caravan-network.de |
|
From: Javier S. <js...@si...> - 2001-09-13 14:56:31
|
Patrick Mairif wrote: >>Well =2E=2E 'ash' looks like an other shell =2E=2E=2E >>But if i try >> >> bash =2E/configure_db >>or >> sh =2E/configure_db >> >> >>I got same errors :-( >> > > >perhaps there is a link from bash to ash=2E what do you get with an > bash --version > Here is part of my /bin -rwxr-xr-x 1 root root 2828 avr 8 16:12 arch -rwxr-xr-x 1 root root 94748 jan 8 2001 ash -rwxr-xr-x 1 root root 446728 jan 8 2001 ash=2Estatic lrwxrwxrwx 1 root root 4 jui 6 12:32 awk -> gawk -rwxr-xr-x 1 root root 5748 jan 16 2001 basename -rwxr-xr-x 1 root root 512668 f=E9v 28 2001 bash lrwxrwxrwx 1 root root 4 jui 6 12:31 bash2 -> bash lrwxrwxrwx 1 root root 3 jui 6 12:32 bsh -> ash Here is bash --version [root@SismoWebDev phpbt]# bash --version GNU bash, version 2=2E04=2E21(1)-release (i386-redhat-linux-gnu) Copyright 1999 Free Software Foundation, Inc=2E [root@SismoWebDev phpbt]# Well, i can give to a login/pass ssh, if you want to find some other=20 info ? This is a test server administrate by my-self and owned by my=20 company=2E I can open firwall just a moment for yours tests =2E=2E=2E I have en general, question about server =2E=2E=2E I owned into my house a= =20 personal server (RH 7=2E1), i just have cable (300K/64K) connection, this=20 server is up 24h/24h, and it do nothing very important=2E Are phpbt dev team interested? |
|
From: Patrick M. <mai...@st...> - 2001-09-13 14:04:00
|
> Well .. 'ash' looks like an other shell ... > But if i try > > bash ./configure_db > or > sh ./configure_db > > > I got same errors :-( perhaps there is a link from bash to ash. what do you get with an bash --version -- http://home.nikocity.de/mairif http://www.caravan-network.de |
|
From: Javier S. <js...@si...> - 2001-09-13 12:37:38
|
Well .. 'ash' looks like an other shell ...
But if i try
bash ./configure_db
or
sh ./configure_db
I got same errors :-(
[root@SismoWebDev phpbt]# bash ./configure_db
: command not found
: command not found
'/configure_db: line 14: syntax error near unexpected token `{
'/configure_db: line 14: `generate_sql() {
[root@SismoWebDev phpbt]# sh ./configure_db
: command not found
: command not found
'/configure_db: line 14: syntax error near unexpected token `{
'/configure_db: line 14: `generate_sql() {
Any other ideas :-))
Thanks for your support Patrick ;-)
Patrick Mairif wrote:
>>[root@SismoWebDev phpbt]# . ./configure_db
>>: command not found
>>: command not found
>>'ash: ./configure_db: line 14: syntax error near unexpected token `{
>>'ash: ./configure_db: line 14: `generate_sql() {
>>
>
>what ist ash? a shell? try
> bash ./configure_db
>or
> sh ./configure_db
>
|
|
From: Patrick M. <mai...@st...> - 2001-09-13 12:21:18
|
> [root@SismoWebDev phpbt]# . ./configure_db
> : command not found
> : command not found
> 'ash: ./configure_db: line 14: syntax error near unexpected token `{
> 'ash: ./configure_db: line 14: `generate_sql() {
what ist ash? a shell? try
bash ./configure_db
or
sh ./configure_db
--
http://home.nikocity.de/mairif
http://www.caravan-network.de
|
|
From: Javier S. <js...@si...> - 2001-09-13 11:46:56
|
Patrick Mairif wrote:
>On Tue, 11 Sep 2001, Javier Sixto wrote:
>
>>It doesn't tell me what is the missing file ... I'm using RH7.1
>>just no such file ... i'have /bin/bash ...
>>i tryed to pass params to configure_db , but it get the same message :-/
>>
>
>have you typed 'configure_db'?
>just try './configure_db' or '. ./configure_db'!
>
[root@SismoWebDev phpbt]# . ./configure_db
: command not found
: command not found
'ash: ./configure_db: line 14: syntax error near unexpected token `{
'ash: ./configure_db: line 14: `generate_sql() {
[root@SismoWebDev phpbt]# . ./configure
: command not found
: not a signal specification
: command not found
: command not found
: command not found
'ash: ./configure: line 27: syntax error near unexpected token `{
'ash: ./configure: line 27: `administrivia() {
[root@SismoWebDev phpbt]#
here is the errors messages any idea ?
|
|
From: Patrick M. <mai...@st...> - 2001-09-13 09:16:00
|
On Wed, 12 Sep 2001, Ben Curtis wrote: > Is there anything left preventing the release of 0.3.0? I'd like to get the postgres schema tested, but I also don't want to release if there's really nothing left to be done. what about using configure_db in configure and switching to the schema-model? Therefor I'd like to add some commandline-options to configure_db. what about perms.sql? we could keep all this stuff for 0.3.1. greetz, patrick! -- http://home.nikocity.de/mairif http://www.caravan-network.de |
|
From: Ben C. <php...@be...> - 2001-09-13 03:34:14
|
Is there anything left preventing the release of 0.3.0? I'd like to get the postgres schema tested, but I also don't want to release if there's really nothing left to be done. |
|
From: Benjamin C. <bc...@us...> - 2001-09-11 13:02:53
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv19569
Modified Files:
bug.php
Log Message:
Restrict the project list for entering a bug to those with components
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- bug.php 2001/09/08 15:59:53 1.40
+++ bug.php 2001/09/11 13:02:51 1.41
@@ -507,7 +507,10 @@
function show_projects() {
global $me, $q, $t, $project, $STRING;
- $q->query('select * from '.TBL_PROJECT.' where active order by project_name');
+ // Show only active projects with at least one component
+ $q->query('select * from '.TBL_PROJECT.' p, '.TBL_COMPONENT
+ .' c where p.active and p.project_id = c.project_id group by p.project_id
+ order by project_name');
switch ($q->num_rows()) {
case 0 :
$t->set_var('rows',$STRING['noprojects']);
|
|
From: Benjamin C. <bc...@us...> - 2001-09-11 12:58:49
|
Update of /cvsroot/phpbt/phpbt/admin/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv17446/templates/default
Modified Files:
project-add.html project-edit.html
Removed Files:
componentform.html versionform.html
Log Message:
Moved version and component admin into project.php. Fixed bug with project creation not requiring an initial component.
Index: project-add.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/templates/default/project-add.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- project-add.html 2001/09/11 04:23:03 1.1
+++ project-add.html 2001/09/11 12:58:46 1.2
@@ -1,25 +1,93 @@
<form action="project.php" method="post">
<input type="hidden" name="id" value="{projectid}">
-<table border='0'>
-<tr>
- <td colspan="2"><font color="#ff0000">{error}</td>
-</tr>
-<tr>
- <td align="right" valign="top">Name:</td>
- <td><input type="text" size="30" maxlength="30" name="name" value="{name}"></td>
-</tr>
-<tr>
- <td align="right" valign="top">Version:</td>
- <td><input type="text" name="version" value="{version}"></td>
-</tr>
-<tr>
- <td align="right" valign="top">Description:</td>
- <td><textarea name="description" cols=40 rows=5 wrap=virtual>{description}</textarea></td>
-</tr>
-<tr>
- <td align="right" valign="top">Active:</td>
- <td align="left" valign="top"><input type="checkbox" name="active" value="1" {active}></td>
-</tr>
+<input type="hidden" name="do" value="project">
+<table border="0">
+ <tr>
+ <td valign="top" rowspan="2" width="320">
+ <table border="0">
+ <tr>
+ <td>
+ <b>Project Information</b>
+ <hr size="1">
+ <font color="#ff0000">{error}</font>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ Name:
+ <br>
+ <input type="text" size="30" maxlength="30" name="name" value="{name}">
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ Description:
+ <br>
+ <textarea name="description" cols=40 rows=5 wrap=virtual>{description}</textarea>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ Active:
+ <br>
+ <input type="checkbox" name="active" value="1" {active}>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="320">
+ <table border="0">
+ <tr>
+ <td>
+ <b>Version Information</b>
+ <hr size="1">
+ <font color="#ff0000">{vf_error}</font>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ Initial Version:
+ <br>
+ <input type="text" size="30" maxlength="30" name="vf_version" value="{vf_version}">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <table border="0">
+ <tr>
+ <td>
+ <b>Component Information</b>
+ <hr size="1">
+ <font color="#ff0000">{cf_error}</font>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ Initial Component Name:
+ <br>
+ <input type="text" size="30" maxlength="30" name="cf_name" value="{cf_name}">
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ Description:
+ <br>
+ <textarea name="cf_description" cols="30">{cf_description}</textarea>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ Owner:
+ <br>
+ <select name="cf_owner"><option value="0">None</option>{cf_owner}</select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
</table>
<input type='submit' name='submit' value='Submit'>
</form>
Index: project-edit.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/templates/default/project-edit.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- project-edit.html 2001/09/11 04:23:03 1.1
+++ project-edit.html 2001/09/11 12:58:46 1.2
@@ -26,6 +26,7 @@
<td width="320" valign="top">
<b>{vf_action} Version</b>
<hr width="320" size="1" align="center">
+ <font color="#ff0000">{vf_error}</font>
<table border="0">
<form action="{me}" method="post">
<input type="hidden" name="do" value="version">
@@ -39,19 +40,26 @@
<td><input type="text" name="vf_version" value="{vf_version}"></td>
<td><input type="checkbox" name="vf_active" value="1" {vf_active}></td>
</tr>
+ <tr>
+ <td colspan="2" align="right">
+ <input type="submit" value="{vf_action} Version">
+ </td>
+ </tr>
+ <tr>
</form>
</table>
</td>
<td width="320" valign="top">
<b>{cf_action} Component</b>
<hr width="320" size="1" align="center">
+ <font color="#ff0000">{cf_error}</font>
<table border="0">
<form action="{me}" method="post">
<input type="hidden" name="do" value="component">
<input type="hidden" name="componentid" value="{componentid}">
<input type="hidden" name="projectid" value="{projectid}">
<tr>
- <td width="200">Component:</td>
+ <td width="200">Name:</td>
<td width="120">Active:</td>
</tr>
<tr>
@@ -72,16 +80,14 @@
<select name="cf_owner"><option value="0">None</option>{cf_owner}</select>
</td>
</tr>
+ <tr>
+ <td colspan="2" align="right">
+ <input type="submit" value="{cf_action} Component">
+ </td>
+ </tr>
+ <tr>
</form>
</table>
- </td>
- </tr>
- <tr>
- <td width="320" align="right">
- <input type="submit" value="{vf_action} Version">
- </td>
- <td width="320" align="right">
- <input type="submit" value="{cf_action} Component">
</td>
</tr>
<tr>
--- componentform.html DELETED ---
--- versionform.html DELETED ---
|
|
From: Benjamin C. <bc...@us...> - 2001-09-11 12:58:48
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv17446
Modified Files:
project.php
Removed Files:
component.php version.php
Log Message:
Moved version and component admin into project.php. Fixed bug with project creation not requiring an initial component.
Index: project.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/project.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- project.php 2001/09/11 04:23:03 1.16
+++ project.php 2001/09/11 12:58:46 1.17
@@ -25,17 +25,39 @@
define('INCLUDE_PATH', '../');
include INCLUDE_PATH.'include.php';
+function save_version($versionid = 0) {
+ global $q, $me, $_pv, $STRING, $now, $u;
+
+ // Validation
+ if (!$_pv['vf_version'] = trim($_pv['vf_version']))
+ $error['version'] = $STRING['giveversion'];
+ if ($error) { show_project($_pv['projectid'], $error); return; }
+
+ foreach ($_pv as $k => $v) $$k = $v;
+ if (!$vf_active) $vf_active = 0;
+ if (!$versionid) {
+ $q->query('insert into '.TBL_VERSION
+ ." (version_id, project_id, version_name, active, created_by, created_date)
+ values (".$q->nextid(TBL_VERSION).", $projectid, '$vf_version', $vf_active, $u, $now)");
+ } else {
+ $q->query('update '.TBL_VERSION
+ ." set project_id = $projectid, version_name = $vf_version,
+ active = $vf_active where version_id = '$versionid'");
+ }
+ header("Location: project.php?op=edit&id=$projectid");
+}
+
function show_version($versionid = 0, $error = '') {
global $q, $t, $_pv, $STRING;
foreach ($_pv as $k => $v) $$k = $v;
- $t->set_file('content','versionform.html');
if ($versionid && !$error) {
$row = $q->grab("select v.*, p.project_name as project_name"
." from ".TBL_VERSION." v left join ".TBL_PROJECT." p using(project_id)"
." where version_id = '$versionid'");
$t->set_var(array(
+ 'vf_error' => '',
'versionid' => $row['version_id'],
'vf_version' => $row['version_name'],
'vf_active' => $row['active'] ? 'checked' : '',
@@ -71,17 +93,45 @@
}
}
+function save_component($componentid = 0) {
+ global $q, $me, $_pv, $u, $STRING, $now;
+
+ // Validation
+ if (!$_pv['cf_name'] = trim($_pv['cf_name']))
+ $error['component'] = $STRING['givename'];
+ elseif (!$_pv['cf_description'] = trim($_pv['cf_description']))
+ $error['component'] = $STRING['givedesc'];
+ if ($error) { show_project($_pv['projectid'], $error); return; }
+
+ foreach ($_pv as $k => $v) $$k = $v;
+ if (!$cf_owner) $cf_owner = 0;
+ if (!$cf_active) $cf_active = 0;
+ if (!$componentid) {
+ $q->query('insert into '.TBL_COMPONENT
+ ." (component_id, project_id, component_name, component_desc, owner,
+ active, created_by, created_date, last_modified_by, last_modified_date)
+ values (".$q->nextid(TBL_COMPONENT).", $projectid, '$cf_name',
+ '$cf_description', $cf_owner, $cf_active, $u, $now, $u, $now)");
+ } else {
+ $q->query('update '.TBL_COMPONENT
+ ." set component_name = '$cf_name', component_desc = '$cf_description',
+ owner = $cf_owner, active = $cf_active, last_modified_by = $u,
+ last_modified_date = $now where component_id = '$componentid'");
+ }
+ header("Location: project.php?op=edit&id=$projectid");
+}
+
function show_component($componentid = 0, $error = '') {
global $q, $t, $_pv, $STRING;
foreach ($_pv as $k => $v) $$k = $v;
- $t->set_file('content','componentform.html');
if ($componentid && !$error) {
$row = $q->grab('select c.*, p.project_name as project_name
from '.TBL_COMPONENT.' c left join '.TBL_PROJECT." p using (project_id)
where component_id = '$componentid'");
$t->set_var(array(
+ 'cf_error' => '',
'componentid' => $row['component_id'],
'cf_name' => $row['component_name'],
'cf_description' => $row['component_desc'],
@@ -131,14 +181,22 @@
// Validation
if (!$_pv['name'] = htmlspecialchars(trim($_pv['name']))) {
- $error = $STRING['givename'];
+ $error['project'] = $STRING['givename'];
} elseif (!$_pv['description'] = htmlspecialchars(trim($_pv['description']))) {
- $error = $STRING['givedesc'];
- } elseif (!$_pv['projectid'] and
- !$_pv['version'] = htmlspecialchars(trim($_pv['version']))) {
- $error = $STRING['giveversion'];
- }
- if ($error) { show_form($projectid, $error); return; }
+ $error['project'] = $STRING['givedesc'];
+ }
+ if ($error) { show_project($projectid, $error); return; }
+
+ if (!$_pv['projectid']) {
+ if (!$_pv['vf_version'] = htmlspecialchars(trim($_pv['vf_version']))) {
+ $error['version'] = $STRING['giveversion'];
+ } elseif (!$_pv['cf_name'] = trim($_pv['cf_name'])) {
+ $error['component'] = $STRING['givename'];
+ } elseif (!$_pv['cf_description'] = trim($_pv['cf_description'])) {
+ $error['component'] = $STRING['givedesc'];
+ }
+ }
+ if ($error) { show_project($projectid, $error); return; }
foreach ($_pv as $k => $v) $$k = $v;
if (!$active) $active = 0;
@@ -148,8 +206,13 @@
." (project_id, project_name, project_desc, active, created_by, created_date)
values ($projectid , '$name', '$description', $active, $u, $now)");
$q->query('insert into '.TBL_VERSION
- ." (version_id, project_id, version_name, active, created_by, created_date)
- values (".$q->nextid(TBL_VERSION).", $projectid, '$version', $active, $u, $now)");
+ ." (version_id, project_id, version_name, active, created_by, created_date)
+ values (".$q->nextid(TBL_VERSION).", $projectid, '$vf_version', 1, $u, $now)");
+ $q->query('insert into '.TBL_COMPONENT
+ ." (component_id, project_id, component_name, component_desc, owner,
+ active, created_by, created_date, last_modified_by, last_modified_date)
+ values (".$q->nextid(TBL_COMPONENT).", $projectid, '$cf_name',
+ '$cf_description', $cf_owner, 1, $u, $now, $u, $now)");
} else {
$q->query('update '.TBL_PROJECT
." set project_name = '$name', project_desc = '$description',
@@ -158,8 +221,8 @@
header("Location: $me?op=edit&id=$projectid");
}
-function show_project($projectid = 0, $error = '') {
- global $q, $me, $t, $name, $description, $active, $version, $TITLE, $_gv;
+function show_project($projectid = 0, $error = array()) {
+ global $q, $me, $t, $name, $description, $active, $TITLE, $_gv;
if ($projectid && !$error) {
$row = $q->grab('select * from '.TBL_PROJECT
@@ -173,18 +236,17 @@
));
} else {
$t->set_var(array(
- 'error' => $error,
+ 'error' => $error['project'],
'projectid' => $projectid,
'name' => stripslashes($name),
'description' => stripslashes($description),
- 'version' => stripslashes($version),
'active' => (isset($active) and !$active) ? '' : 'checked',
'TITLE' => $projectid ? $TITLE['editproject'] : $TITLE['addproject']
));
}
if ($projectid) {
- $t->set_file('content','project-edit.html');
+ $t->set_file('content', 'project-edit.html');
$t->set_block('content', 'verrow', 'verrows');
$t->set_block('content', 'row', 'rows');
list_components($projectid);
@@ -192,8 +254,8 @@
} else {
$t->set_file('content','project-add.html');
}
- show_version($_gv['versionid']);
- show_component($_gv['componentid']);
+ show_version($_gv['versionid'], $error['version']);
+ show_component($_gv['componentid'], $error['component']);
}
function list_projects() {
@@ -260,8 +322,8 @@
} elseif (isset($_pv['do'])) {
switch($_pv['do']) {
case 'project' : save_project($_pv['id']); break;
- case 'version' : save_version(); break;
- case 'component' : save_component(); break;
+ case 'version' : save_version($_pv['versionid']); break;
+ case 'component' : save_component($_pv['componentid']); break;
}
} else list_projects();
--- component.php DELETED ---
--- version.php DELETED ---
|
|
From: Patrick M. <mai...@st...> - 2001-09-11 09:33:20
|
On Tue, 11 Sep 2001, Javier Sixto wrote: > It doesn't tell me what is the missing file ... I'm using RH7.1 > just no such file ... i'have /bin/bash ... > i tryed to pass params to configure_db , but it get the same message :-/ have you typed 'configure_db'? just try './configure_db' or '. ./configure_db'! -- http://home.nikocity.de/mairif http://www.caravan-network.de |
|
From: Javier S. <js...@si...> - 2001-09-11 08:58:33
|
It doesn't tell me what is the missing file ... I'm using RH7.1 just no such file ... i'have /bin/bash ... i tryed to pass params to configure_db , but it get the same message :-/ >>I have installed dialog, it works good ... >>But when i ran configure_db script, it saids that some file did not >>exist .. .and crash ... without more explication ... >> > >what file does not exist? >what system do you have? > |
|
From: Patrick M. <mai...@st...> - 2001-09-11 08:30:44
|
> I have installed dialog, it works good ... > But when i ran configure_db script, it saids that some file did not > exist .. .and crash ... without more explication ... what file does not exist? what system do you have? |
|
From: Javier S. <js...@si...> - 2001-09-11 08:11:42
|
I have installed dialog, it works good ... But when i ran configure_db script, it saids that some file did not exist .. .and crash ... without more explication ... configure script do the same thing :-( any idea ? |