|
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() {
|