Index: trunk/ippMonitor/configure.tcsh
===================================================================
--- trunk/ippMonitor/configure.tcsh	(revision 27113)
+++ trunk/ippMonitor/configure.tcsh	(revision 38208)
@@ -10,7 +10,7 @@
 
 set htdocs  = ""
-set dbhost  = ""
-set dbuser  = ""
-set dbpass  = ""
+# set dbhost  = ""
+# set dbuser  = ""
+# set dbpass  = ""
 
 set prefix  = ""
@@ -52,28 +52,28 @@
    endif
    breaksw;
-  case --dbhost*
-   if ("$1" == "--dbhost") then
-     shift
-     set dbhost = $1
-   else
-     set dbhost = `echo $1 | tr = ' ' | awk '{print $2}'`
-   endif
-   breaksw;
-  case --dbuser*
-   if ("$1" == "--dbuser") then
-     shift
-     set dbuser = $1
-   else
-     set dbuser = `echo $1 | tr = ' ' | awk '{print $2}'`
-   endif
-   breaksw;
-  case --dbpass*
-   if ("$1" == "--dbpass") then
-     shift
-     set dbpass = $1
-   else
-     set dbpass = `echo $1 | tr = ' ' | awk '{print $2}'`
-   endif
-   breaksw;
+#   case --dbhost*
+#    if ("$1" == "--dbhost") then
+#      shift
+#      set dbhost = $1
+#    else
+#      set dbhost = `echo $1 | tr = ' ' | awk '{print $2}'`
+#    endif
+#    breaksw;
+#   case --dbuser*
+#    if ("$1" == "--dbuser") then
+#      shift
+#      set dbuser = $1
+#    else
+#      set dbuser = `echo $1 | tr = ' ' | awk '{print $2}'`
+#    endif
+#    breaksw;
+#   case --dbpass*
+#    if ("$1" == "--dbpass") then
+#      shift
+#      set dbpass = $1
+#    else
+#      set dbpass = `echo $1 | tr = ' ' | awk '{print $2}'`
+#    endif
+#    breaksw;
   case --prefix*
    if ("$1" == "--prefix") then
@@ -142,14 +142,14 @@
 echo "site:   $site"
 echo "htdocs: $htdocs"
-echo "dbhost: $dbhost"
-echo "dbuser: $dbuser"
-echo "dbpass: $dbpass"
+# echo "dbhost: $dbhost"
+# echo "dbuser: $dbuser"
+# echo "dbpass: $dbpass"
 echo "DBI:    $DBI"
 echo
 
 if ("$htdocs" == "") goto usage
-if ("$dbhost" == "") goto usage
-if ("$dbuser" == "") goto usage
-if ("$dbpass" == "") goto usage
+# if ("$dbhost" == "") goto usage
+# if ("$dbuser" == "") goto usage
+# if ("$dbpass" == "") goto usage
 
 # BINDIR holds the output binary files
@@ -187,13 +187,14 @@
 # convert raw/site.php.in to raw/site.php
 if (-e raw/site.php) mv -f raw/site.php raw/site.php~
-cat raw/site.php.in | sed "s|@DBHOST@|$dbhost|"  > tmp.1
-cat tmp.1           | sed "s|@DBUSER@|$dbuser|"  > tmp.2
-cat tmp.2           | sed "s|@DBPASS@|$dbpass|"  > tmp.1
-cat tmp.1           | sed "s|@BINDIR@|$bindir|"  > tmp.2
+cat raw/site.php.in | sed "s|@BINDIR@|$bindir|"  > tmp.2
 cat tmp.2           | sed "s|@LIBDIR@|$libdir|"  > tmp.1
 cat tmp.1           | sed "s|@PERLLIB@|$libdir|" > tmp.2
 cat tmp.2           | sed "s|@SITE@|$site|"      > tmp.1
 cat tmp.1           | sed "s|@DBI@|$DBI|"        > tmp.2
-cat tmp.2           | sed "s|@HOST@|$hostname|"  > raw/site.php
+cat tmp.2           | sed "s|@HOST@|$hostname|"  > tmp.1
+awk 'BEGIN{t = 0}((t == 0) && ($1 != "@CONFIG.DAT@")){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.1 > raw/site.php
+cat config.dat >> raw/site.php
+awk 'BEGIN{t = 0}(t == 1){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.1 >> raw/site.php
+
 rm -f tmp.1 tmp.2
 
@@ -213,6 +214,6 @@
 set the IPP installation directory root with --prefix
 
-set the database host, user, password with: --dbhost, --dbuser, -dbpass
- 
+set the site.php file based on config.dat in this directory
+
 either --prefix or both --bindir and --libdir and [--datadir or --site] are required
 
