/[dolibarr]/dolibarr/htdocs/install/etape2.php
ViewVC logotype

Diff of /dolibarr/htdocs/install/etape2.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by eldy, Sun Oct 30 01:07:00 2005 UTC revision 1.33 by eldy, Sat Dec 3 17:31:40 2005 UTC
# Line 28  Line 28 
28    
29  include_once("./inc.php");  include_once("./inc.php");
30    
 $grant_query='';  
31  $etape = 2;  $etape = 2;
32  $ok = 0;  $ok = 0;
33    
# Line 63  if($dolibarr_main_db_type == "mysql") Line 62  if($dolibarr_main_db_type == "mysql")
62  else  else
63  {  {
64      require_once($dolibarr_main_document_root . "/lib/pgsql.lib.php");      require_once($dolibarr_main_document_root . "/lib/pgsql.lib.php");
     require_once($dolibarr_main_document_root . "/lib/grant.postgres.php");  
65      $choix=2;      $choix=2;
66  }  }
67    
# Line 262  if ($_POST["action"] == "set") Line 260  if ($_POST["action"] == "set")
260      if ($ok)      if ($ok)
261      {      {
262          // Droits sur les tables          // Droits sur les tables
263          if ($grant_query) {     // Non null si postgresql          $grant_query=$db->getGrantForUser($dolibarr_main_db_user);
264            
265            if ($grant_query)   // Seules les bases qui en ont besoin le definisse
266            {
267              if ($db->query($grant_query))              if ($db->query($grant_query))
268              {              {
269                  print "<tr><td>Grant User</td><td>".$langs->trans("OK")."</td></tr>";                  print "<tr><td>Grant User</td><td>".$langs->trans("OK")."</td></tr>";

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26