From cd57be1e2913d62e4d985335cc6f110949dcf7fe Mon Sep 17 00:00:00 2001 From: opensides Date: Sat, 18 Sep 2004 09:45:36 +0000 Subject: [PATCH] standardise sur "document" --- htdocs/install/fileconf.php | 8 ++++---- htdocs/product/stats/fiche.php | 18 +++++++++--------- prepare-install.sh | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php index 346240423cd..fa727f3d477 100644 --- a/htdocs/install/fileconf.php +++ b/htdocs/install/fileconf.php @@ -115,15 +115,15 @@ exemples :
" name="main_data_dir"> Sans le slash "/" à la fin
exemples :
-
  • /var/www/dolibarr/documents
  • -
  • C:/wwwroot/dolibarr/documents
  • +
  • /var/www/dolibarr/document
  • +
  • C:/wwwroot/dolibarr/document
  • diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index e2c1f50ff1c..9ea7625ff02 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -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 'Nombre de pièces vendues'; print ''; - print 'Ventes sur les 12 derniers mois'; + print 'Ventes sur les 12 derniers mois'; print ''; - print 'Ventes sur les 12 derniers mois'; + print 'Ventes sur les 12 derniers mois'; print ''; if (file_exists($filenbvente) && filemtime($filenbvente)) @@ -185,7 +185,7 @@ if ($_GET["id"]) print '-'; print ''; - print 'Propales sur les 12 derniers mois'; + print 'Propales sur les 12 derniers mois'; print 'TODO AUTRE GRAPHIQUE'; diff --git a/prepare-install.sh b/prepare-install.sh index e9fe7b83d19..cdc4580f27e 100644 --- a/prepare-install.sh +++ b/prepare-install.sh @@ -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