/[dolibarr]/dolibarr/htdocs/docsoc.php
ViewVC logotype

Diff of /dolibarr/htdocs/docsoc.php

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

revision 1.22 by eldy, Thu Aug 11 20:06:28 2005 UTC revision 1.23 by eldy, Thu Aug 25 00:05:24 2005 UTC
# Line 41  $socid=$_GET["socid"]; Line 41  $socid=$_GET["socid"];
41  /*  /*
42   * Creation répertoire si n'existe pas   * Creation répertoire si n'existe pas
43   */   */
 if (! is_dir($conf->societe->dir_output)) { mkdir($conf->societe->dir_output); }  
44  $upload_dir = $conf->societe->dir_output . "/" . $socid ;  $upload_dir = $conf->societe->dir_output . "/" . $socid ;
45  if (! is_dir($upload_dir))  if (! is_dir($upload_dir)) create_exdir($upload_dir);
 {  
     umask(0);  
     if (! mkdir($upload_dir, 0755))  
     {  
         print $langs->trans("ErrorCanNotCreateDir",$upload_dir);  
     }  
 }  
46    
47    
48  /*  /*
# Line 150  if ($socid > 0) Line 142  if ($socid > 0)
142    
143          $totalsize=0;          $totalsize=0;
144          $filearray=array();          $filearray=array();
145          $handle=opendir($upload_dir);  
146            $errorlevel=error_reporting();
147                    error_reporting(0);
148                    $handle=opendir($upload_dir);
149                    error_reporting($errorlevel);
150          if ($handle)          if ($handle)
151          {          {
152              $i=0;              $i=0;
# Line 167  if ($socid > 0) Line 163  if ($socid > 0)
163          }          }
164          else          else
165          {          {
166              print $langs->trans("ErrorCanNotReadDir",$upload_dir);  //            print '<div class="error">'.$langs->trans("ErrorCanNotReadDir",$upload_dir).'</div>';
167          }          }
168                    
169          print '<table class="border"width="100%">';          print '<table class="border"width="100%">';

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

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