standardise sur "document"

This commit is contained in:
opensides
2004-09-18 09:45:36 +00:00
parent 11159b0f81
commit cd57be1e29
3 changed files with 15 additions and 15 deletions

View File

@@ -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 "/" <20> 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>

View File

@@ -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 pi<70>ces 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';

View File

@@ -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