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 |
/* |
/* |
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; |
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%">'; |