Skip to content
Snippets Groups Projects
Commit cd57be1e authored by Benoit Mortier's avatar Benoit Mortier
Browse files

standardise sur "document"
parent 11159b0f
No related branches found
No related tags found
No related merge requests found
......@@ -115,15 +115,15 @@ exemples :<br>
</td><td class="label" valign="top"><input type="text" size="60" value="
<?PHP
//print ereg_replace("htdocs","documents",$dolibarr_main_document_root);
print $dolibarr_main_document_root."/documents";
//print ereg_replace("htdocs","document",$dolibarr_main_document_root);
print $dolibarr_main_document_root."/document";
?>
" name="main_data_dir">
</td><td class="comment">
Sans le slash "/" la fin<br>
exemples :<br>
<li>/var/www/dolibarr/documents</li>
<li>C:/wwwroot/dolibarr/documents</li>
<li>/var/www/dolibarr/document</li>
<li>C:/wwwroot/dolibarr/document</li>
</td>
</tr>
......
......@@ -65,15 +65,15 @@ if ($_GET["id"])
if ( $result )
{
$dir = DOL_DOCUMENT_ROOT."/documents/produit/".$product->id;
$dir = DOL_DOCUMENT_ROOT."/document/produit/".$product->id;
if (! file_exists($dir))
{
umask(0);
if(is_dir(DOL_DOCUMENT_ROOT."/documents/produits"))
rmdir(DOL_DOCUMENT_ROOT."/documents/produits");
//mkdir(DOL_DOCUMENT_ROOT."/documents");
if(!file_exists(DOL_DOCUMENT_ROOT."/documents/produit"))
mkdir(DOL_DOCUMENT_ROOT."/documents/produit");
if(is_dir(DOL_DOCUMENT_ROOT."/document/produits"))
rmdir(DOL_DOCUMENT_ROOT."/document/produits");
//mkdir(DOL_DOCUMENT_ROOT."/document");
if(!file_exists(DOL_DOCUMENT_ROOT."/document/produit"))
mkdir(DOL_DOCUMENT_ROOT."/document/produit");
if (! mkdir($dir, 0755))
{
$mesg = $langs->trans("ErrorCanNotCreateDir",$dir);
......@@ -155,10 +155,10 @@ if ($_GET["id"])
print '<td align="center" width="50%" colspan="2">Nombre de pices vendues</td></tr>';
print '<tr><td align="center" colspan="2">';
print '<img src="'.DOL_URL_ROOT.'/documents/produit/'.$product->id.'/vente12mois.png" alt="Ventes sur les 12 derniers mois">';
print '<img src="'.DOL_URL_ROOT.'/document/produit/'.$product->id.'/vente12mois.png" alt="Ventes sur les 12 derniers mois">';
print '</td><td align="center" colspan="2">';
print '<img src="'.DOL_URL_ROOT.'/documents/produit/'.$product->id.'/vendu12mois.png" alt="Ventes sur les 12 derniers mois">';
print '<img src="'.DOL_URL_ROOT.'/document/produit/'.$product->id.'/vendu12mois.png" alt="Ventes sur les 12 derniers mois">';
print '</td></tr><tr>';
if (file_exists($filenbvente) && filemtime($filenbvente))
......@@ -185,7 +185,7 @@ if ($_GET["id"])
print '<td align="center" width="50%" colspan="2">-</td></tr>';
print '<tr><td align="center" colspan="2">';
print '<img src="'.DOL_URL_ROOT.'/documents/produit/'.$product->id.'/'.$img_propal_name.'" alt="Propales sur les 12 derniers mois">';
print '<img src="'.DOL_URL_ROOT.'/document/produit/'.$product->id.'/'.$img_propal_name.'" alt="Propales sur les 12 derniers mois">';
print '</td><td align="center" colspan="2">TODO AUTRE GRAPHIQUE';
......
......@@ -3,8 +3,8 @@
#
# Prepare l'installation web de Dolibarr
#
mkdir documents
chown www-data documents
mkdir document
chown www-data document
mkdir htdocs/document
chown www-data htdocs/document
touch htdocs/conf/conf.php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment