commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/phpforms src/settings.php src/connection.p...


From: Jan Ischebeck
Subject: gnue/phpforms src/settings.php src/connection.p...
Date: Wed, 17 Jul 2002 18:41:39 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jan Ischebeck <address@hidden>  02/07/17 18:41:39

Modified files:
        phpforms/src   : settings.php connection.php 
Added files:
        phpforms/samples: README contact.gfd index.html intro.gfd 
                          menu.html state_maint.gfd state_maint.sql 

Log message:
        add a sample directory with one simple example
        add password dialog option to settings.php
        minor cleanups in connection.php

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/phpforms/samples/README?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/phpforms/samples/contact.gfd?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/phpforms/samples/index.html?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/phpforms/samples/intro.gfd?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/phpforms/samples/menu.html?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/phpforms/samples/state_maint.gfd?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/phpforms/samples/state_maint.sql?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/phpforms/src/settings.php.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/phpforms/src/connection.php.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: gnue/phpforms/src/connection.php
diff -c gnue/phpforms/src/connection.php:1.2 
gnue/phpforms/src/connection.php:1.3
*** gnue/phpforms/src/connection.php:1.2        Wed Jul 17 17:40:01 2002
--- gnue/phpforms/src/connection.php    Wed Jul 17 18:41:39 2002
***************
*** 1,16 ****
  <?php
  ############### FILE CONNECTION.PHP #### BEGIN ###########
  $connections = array();
! $connections["geas"] = array("COMMENT"=>"Connection to GEAS",
!                              "PROVIDER"=>"geas",
!                              "HOST"=>"localhost",
!                              "DBNAME"=>"gnue",
!                              "GEADDIR"=>"/usr/local");
  $connections["gnue"] = array("COMMENT"=>"Connection to a ".
                               "database dedicated to gnue",
                               "PROVIDER"=>"pypgsql",
                               "HOST"=>"localhost",
                               "DBNAME"=>"gnue");
  $connections["gnueA"] = array("COMMENT"=>"Connection to a ".
                               "database dedicated to gnue",
                               "PROVIDER"=>"appserver",
--- 1,13 ----
  <?php
  ############### FILE CONNECTION.PHP #### BEGIN ###########
  $connections = array();
! 
  $connections["gnue"] = array("COMMENT"=>"Connection to a ".
                               "database dedicated to gnue",
                               "PROVIDER"=>"pypgsql",
                               "HOST"=>"localhost",
                               "DBNAME"=>"gnue");
+ 
  $connections["gnueA"] = array("COMMENT"=>"Connection to a ".
                               "database dedicated to gnue",
                               "PROVIDER"=>"appserver",
***************
*** 19,31 ****
                               "PATH"=>"/",
                               "PORT"=>"8765",
                               "DBNAME"=>"gnue");
  $connections["gnue2"] = array("COMMENT"=>"Connection to a ".
                               "database dedicated to gnue",
                               "PROVIDER"=>"mysql",
                               "HOST"=>"localhost",
                               "DBNAME"=>"gnue");
- $username="www-data";
- // $username="gnue";
- // $password="gnue";
  
  ############### FILE CONNECTION.PHP #### END #############?>
--- 16,26 ----
                               "PATH"=>"/",
                               "PORT"=>"8765",
                               "DBNAME"=>"gnue");
+ 
  $connections["gnue2"] = array("COMMENT"=>"Connection to a ".
                               "database dedicated to gnue",
                               "PROVIDER"=>"mysql",
                               "HOST"=>"localhost",
                               "DBNAME"=>"gnue");
  
  ############### FILE CONNECTION.PHP #### END #############?>
Index: gnue/phpforms/src/settings.php
diff -c gnue/phpforms/src/settings.php:1.1 gnue/phpforms/src/settings.php:1.2
*** gnue/phpforms/src/settings.php:1.1  Wed Jul 17 17:40:01 2002
--- gnue/phpforms/src/settings.php      Wed Jul 17 18:41:39 2002
***************
*** 132,138 ****
  
  $localforms=array("demo"  => "intro.gfd",
                    "demo2" => "state_maint.gfd",
!                   "demo3" => "/home/jan/public_html/contact.gfd");
  
  
  ?>
--- 132,174 ----
  
  $localforms=array("demo"  => "intro.gfd",
                    "demo2" => "state_maint.gfd",
!                   "demo3" => "contact.gfd");
  
+ 
+ /********************************
+    password dialog options
+    -----------------------
+ 
+    "database"   =>  show a password dialog, if a form is accessing a database.
+                     the inserted username and password is used for authentifi-
+                     cation against the database
+    "nodialog"   =>  no password dialog is shown, if a database needs auth.
+                     information the password and username settings from this
+                     file are used.
+    "ldap"       =>  a password dialog is shown, the user is authentificated 
+                     again an ldap directory. if a database needs auth.
+                     information the password and username settings from this
+                     file are used.
+ 
+  ******************************* */
+ 
+ $passwdDialogOpts="nodialog";  # <just the "nodialog" option is supported at 
+                                #  the moment>
+ 
+ /********************************
+    password and username
+    ----------------------
+ 
+    password and username settings for authentification usage
+    if the $password is not set, no password is send to the database
+    i.e. -> pgsql://address@hidden/test instead of 
+    pgsql://gnue:@localhost/test ($password="";)
+ 
+  ******************************* */
+ 
+ 
+ $username="www-data";
+ // $username="gnue";
+ // $password="gnue";
  
  ?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]