diff --git a/htdocs/comm/action/document.php b/htdocs/comm/action/document.php index e579e03ccf9095333149503ace6e11e140bf2ae8..bdb8990ca24be64a05cf09e1b54237e99a3e7bde 100755 --- a/htdocs/comm/action/document.php +++ b/htdocs/comm/action/document.php @@ -41,7 +41,7 @@ $langs->load("other"); $langs->load("bills"); if (isset($_GET["error"])) $error=$_GET["error"]; -$upload_dir = $conf->actionscomm->dir_output.'/'.$_GET['id']; +$upload_dir = $conf->actions->dir_output.'/'.$_GET['id']; // S�curit� acc�s client if ($user->societe_id > 0) diff --git a/htdocs/comm/action/rapport/index.php b/htdocs/comm/action/rapport/index.php index 0001ea1a5a6759c9e6485d8a78c8f9cc3201dcc7..a3af5495c2bfc804f3781fe5e1797d9361b312f8 100644 --- a/htdocs/comm/action/rapport/index.php +++ b/htdocs/comm/action/rapport/index.php @@ -115,9 +115,9 @@ if ($resql) print '<td><a href="index.php?action=builddoc&page='.$page.'&month='.$obj->month.'&year='.$obj->year.'">'.img_file_new().'</a></td>'; - $name = "rapport-action-".$obj->month."-".$obj->year.".pdf"; + $name = "actions-".$obj->month."-".$obj->year.".pdf"; $relativepath= $name; - $file = $conf->commercial->dir_output . "/actions/" .$name; + $file = $conf->action->dir_temp."/".$name; if (file_exists($file)) { diff --git a/htdocs/comm/action/rapport/rapport.pdf.php b/htdocs/comm/action/rapport/rapport.pdf.php index 42a3abfa950fc81f5e7f2ec583ebfe8e38f4871e..2d5d485b1be9552aefde312d9e0af17101aa70dc 100644 --- a/htdocs/comm/action/rapport/rapport.pdf.php +++ b/htdocs/comm/action/rapport/rapport.pdf.php @@ -68,8 +68,8 @@ class CommActionRapport { global $user,$conf,$langs; - $dir = $conf->commercial->dir_output."/actions"; - $file = $dir . "/rapport-action-".$this->month."-".$this->year.".pdf"; + $dir = $conf->action->dir_temp."/"; + $file = $dir . "/actions-".$this->month."-".$this->year.".pdf"; if (! file_exists($dir)) { diff --git a/htdocs/comm/mailing/pre.inc.php b/htdocs/comm/mailing/pre.inc.php index 9850353dd76d355993482a11324a64f6b2a7475b..49d5e2bf8dbdfc77a85a947c2067a627284f990a 100644 --- a/htdocs/comm/mailing/pre.inc.php +++ b/htdocs/comm/mailing/pre.inc.php @@ -33,6 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/comm/mailing/mailing.class.php'; $user->getrights(); $langs->load("companies"); $langs->load("mails"); +$langs->load("exports"); function llxHeader($head = "", $title = "") diff --git a/htdocs/comm/propal/stats/index.php b/htdocs/comm/propal/stats/index.php index e2d21c2e2c4f70ed635a0e29e1011f00c31c7d6b..c2e03394a4c1733d27cc619dca152401d9dc5cd7 100644 --- a/htdocs/comm/propal/stats/index.php +++ b/htdocs/comm/propal/stats/index.php @@ -43,16 +43,16 @@ $stats = new PropaleStats($db); $year = strftime("%Y", time()); $data = $stats->getNbByMonthWithPrevYear($year); -create_exdir($conf->propal->dir_images); +create_exdir($conf->propal->dir_temp); if (!$user->rights->commercial->client->voir || $user->societe_id) { - $filename = $conf->propal->dir_images.'/nbpropale2year-'.$user->id.'-'.$year.'.png'; + $filename = $conf->propal->dir_temp.'/nbpropale2year-'.$user->id.'-'.$year.'.png'; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=nbpropale2year-'.$user->id.'-'.$year.'.png'; } else { - $filename = $conf->propal->dir_images.'/nbpropale2year-'.$year.'.png'; + $filename = $conf->propal->dir_temp.'/nbpropale2year-'.$year.'.png'; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=nbpropale2year-'.$year.'.png'; } diff --git a/htdocs/comm/propal/stats/month.php b/htdocs/comm/propal/stats/month.php index d6ea4618c07d1de9464a058904ad89c8c3976d85..1be2240f2e7c9abc5b92f6f948e1f9c0017bd28d 100644 --- a/htdocs/comm/propal/stats/month.php +++ b/htdocs/comm/propal/stats/month.php @@ -53,16 +53,16 @@ print_fiche_titre($langs->trans("ProposalsStatistics"), $mesg); $stats = new PropaleStats($db); $data = $stats->getNbByMonth($year); -if (! is_dir($conf->propal->dir_images)) { mkdir($conf->propal->dir_images); } +create_exdir($conf->propal->dir_temp); if (!$user->rights->commercial->client->voir || $user->societe_id) { - $filename = $conf->propal->dir_images.'/propale-'.$user->id.'-'.$year.'.png'; + $filename = $conf->propal->dir_temp.'/propale-'.$user->id.'-'.$year.'.png'; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=propale-'.$user->id.'-'.$year.'.png'; } else { - $filename = $conf->propal->dir_images.'/propale'.$year.'.png'; + $filename = $conf->propal->dir_temp.'/propale'.$year.'.png'; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=propale'.$year.'.png'; } @@ -92,12 +92,12 @@ for ($i = 1 ; $i < 13 ; $i++) if (!$user->rights->commercial->client->voir || $user->societe_id) { - $filename_amount = $conf->propal->dir_images.'/propaleamount-'.$user->id.'-'.$year.'.png'; + $filename_amount = $conf->propal->dir_temp.'/propaleamount-'.$user->id.'-'.$year.'.png'; $fileurl_amount = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=propaleamount-'.$user->id.'-'.$year.'.png'; } else { - $filename_amount = $conf->propal->dir_images.'/propaleamount'.$year.'.png'; + $filename_amount = $conf->propal->dir_temp.'/propaleamount'.$year.'.png'; $fileurl_amount = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=propaleamount'.$year.'.png'; } @@ -127,12 +127,12 @@ for ($i = 1 ; $i < 13 ; $i++) if (!$user->rights->commercial->client->voir || $user->societe_id) { - $filename_avg = $conf->propal->dir_images.'/propaleaverage-'.$user->id.'-'.$year.'.png'; + $filename_avg = $conf->propal->dir_temp.'/propaleaverage-'.$user->id.'-'.$year.'.png'; $fileurl_avg = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=propaleaverage-'.$user->id.'-'.$year.'.png'; } else { - $filename_avg = $conf->propal->dir_images.'/propaleaverage'.$year.'.png'; + $filename_avg = $conf->propal->dir_temp.'/propaleaverage'.$year.'.png'; $fileurl_avg = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=propaleaverage'.$year.'.png'; } diff --git a/htdocs/commande/stats/index.php b/htdocs/commande/stats/index.php index 5fea70181e1f8ed5314dc8d20bf484f239686817..247dff10180c514263a545857f3fb00b6d022c55 100644 --- a/htdocs/commande/stats/index.php +++ b/htdocs/commande/stats/index.php @@ -55,7 +55,7 @@ $year = strftime("%Y", time()); $data = $stats->getNbByMonthWithPrevYear($year); // Cr�ation r�pertoire pour images g�n�r�es -$dir=$conf->commande->dir_images; +$dir=$conf->commande->dir_temp; if (! file_exists($dir)) { if (create_exdir($dir) < 0) @@ -66,12 +66,12 @@ if (! file_exists($dir)) if (!$user->rights->commercial->client->voir || $user->societe_id) { - $filename = $conf->commande->dir_images.'/nbcommande2year-'.$user->id.'-'.$year.'.png'; + $filename = $conf->commande->dir_temp.'/nbcommande2year-'.$user->id.'-'.$year.'.png'; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=nbcommande2year-'.$user->id.'-'.$year.'.png'; } else { - $filename = $conf->commande->dir_images.'/nbcommande2year-'.$year.'.png'; + $filename = $conf->commande->dir_temp.'/nbcommande2year-'.$year.'.png'; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=nbcommande2year-'.$year.'.png'; } diff --git a/htdocs/commande/stats/month.php b/htdocs/commande/stats/month.php index e6bcf73dd57224d24a895a9e8207f0860af02ff3..66d935e63d5bb0827f28928c47bfcababd7ea5b1 100644 --- a/htdocs/commande/stats/month.php +++ b/htdocs/commande/stats/month.php @@ -60,16 +60,17 @@ print_fiche_titre($langs->trans("OrdersStatistics"), $mesg); $stats = new CommandeStats($db, $socidp); $data = $stats->getNbByMonth($year); -if (! is_dir($conf->commande->dir_images)) { mkdir($conf->commande->dir_images); } +create_exdir($conf->commande->dir_temp); + if (!$user->rights->commercial->client->voir || $user->societe_id) { - $filename = $conf->commande->dir_images.'/commande-'.$user->id.'-'.$year.'.png'; + $filename = $conf->commande->dir_temp.'/commande-'.$user->id.'-'.$year.'.png'; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=commande-'.$user->id.'-'.$year.'.png'; } else { - $filename = $conf->commande->dir_images.'/commande'.$year.'.png'; + $filename = $conf->commande->dir_temp.'/commande'.$year.'.png'; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=commande'.$year.'.png'; } @@ -99,12 +100,12 @@ for ($i = 1 ; $i < 13 ; $i++) if (!$user->rights->commercial->client->voir || $user->societe_id) { - $filename_amount = $conf->commande->dir_images.'/commandeamount-'.$user->id.'-'.$year.'.png'; + $filename_amount = $conf->commande->dir_temp.'/commandeamount-'.$user->id.'-'.$year.'.png'; $fileurl_amount = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=commandeamount-'.$user->id.'-'.$year.'.png'; } else { - $filename_amount = $conf->commande->dir_images.'/commandeamount'.$year.'.png'; + $filename_amount = $conf->commande->dir_temp.'/commandeamount'.$year.'.png'; $fileurl_amount = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=commandeamount'.$year.'.png'; } @@ -133,12 +134,12 @@ for ($i = 1 ; $i < 13 ; $i++) if (!$user->rights->commercial->client->voir || $user->societe_id) { - $filename_avg = $conf->commande->dir_images.'/commandeaverage-'.$user->id.'-'.$year.'.png'; + $filename_avg = $conf->commande->dir_temp.'/commandeaverage-'.$user->id.'-'.$year.'.png'; $fileurl_avg = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=commandeaverage-'.$user->id.'-'.$year.'.png'; } else { - $filename_avg = $conf->commande->dir_images.'/commandeaverage'.$year.'.png'; + $filename_avg = $conf->commande->dir_temp.'/commandeaverage'.$year.'.png'; $fileurl_avg = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=commandeaverage'.$year.'.png'; } diff --git a/htdocs/compta/bank/graph.php b/htdocs/compta/bank/graph.php index c81444dc4f567668942e010ef36985944d379e2a..9c665dd7495ad41f6045ee6def9f1a4ec67278cb 100644 --- a/htdocs/compta/bank/graph.php +++ b/htdocs/compta/bank/graph.php @@ -51,7 +51,7 @@ if ($account > 0) $acct->fetch($account); - create_exdir($conf->banque->dir_images); + create_exdir($conf->banque->dir_temp); // Definition de $width et $height @@ -146,7 +146,7 @@ if ($account > 0) } // Fabrication tableau 1 - $file= $conf->banque->dir_images."/solde.$account.$year.$month.png"; + $file= $conf->banque->dir_temp."/solde.$account.$year.$month.png"; $title=$langs->trans("Balance").' '.$langs->trans("Month").': '.$month.' '.$langs->trans("Year").': '.$year; $graph_datas=array(); foreach($datas as $i => $val) @@ -240,7 +240,7 @@ if ($account > 0) } // Fabrication tableau 2 - $file= $conf->banque->dir_images."/solde.$account.$year.png"; + $file= $conf->banque->dir_temp."/solde.$account.$year.png"; $title=$langs->trans("Balance").' '.$langs->trans("Year").': '.$year; $graph_datas=array(); foreach($datas as $i => $val) @@ -317,7 +317,7 @@ if ($account > 0) } // Fabrication tableau 3 - $file= $conf->banque->dir_images."/solde.$account.png"; + $file= $conf->banque->dir_temp."/solde.$account.png"; $title=$langs->trans("Balance"); $graph_datas=array(); foreach($datas as $i => $val) @@ -394,7 +394,7 @@ if ($account > 0) } // Fabrication tableau 4 - $file= $conf->banque->dir_images."/mouvement.$account.$year.png"; + $file= $conf->banque->dir_temp."/mouvement.$account.$year.png"; $title=$langs->trans("Movements").' '.$langs->trans("Year").': '.$year; $graph_datas=array(); foreach($data_credit as $i => $val) diff --git a/htdocs/compta/facture/stats/index.php b/htdocs/compta/facture/stats/index.php index 479be22e8ef57dbb0543bcf3086350b6dbcef6a3..c4e2a10122d6919dfadad8b72b632a44baae2fbd 100644 --- a/htdocs/compta/facture/stats/index.php +++ b/htdocs/compta/facture/stats/index.php @@ -48,9 +48,9 @@ $stats = new FactureStats($db, $socidp); $year = strftime("%Y", time()); $data = $stats->getNbByMonthWithPrevYear($year); -if (! is_dir($conf->facture->dir_images)) { mkdir($conf->facture->dir_images); } +create_exdir($conf->facture->dir_temp); -$filename = $conf->facture->dir_images."/nbfacture2year-".$year.".png"; +$filename = $conf->facture->dir_temp."/nbfacture2year-".$year.".png"; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=nbfacture2year-'.$year.'.png'; $px = new DolGraph(); diff --git a/htdocs/compta/facture/stats/month.php b/htdocs/compta/facture/stats/month.php index 0815d242ea7304b4e0546b1ea00b4d3a53ce5cf9..878605e9316de7e8d66600e631575bfe836a9b1b 100644 --- a/htdocs/compta/facture/stats/month.php +++ b/htdocs/compta/facture/stats/month.php @@ -54,9 +54,9 @@ print_fiche_titre($langs->trans("BillsStatistics"), $mesg); $stats = new FactureStats($db, $socidp); $data = $stats->getNbByMonth($year); -if (! is_dir($conf->facture->dir_images)) { mkdir($conf->facture->dir_images); } +create_exdir($conf->facture->dir_temp); -$filename = $conf->facture->dir_images."/facture".$year.".png"; +$filename = $conf->facture->dir_temp."/facture".$year.".png"; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=facture'.$year.'.png'; $px = new DolGraph(); @@ -83,7 +83,7 @@ for ($i = 1 ; $i < 13 ; $i++) $data[$i-1] = array(ucfirst(substr(strftime("%b",mktime(12,12,12,$i,1,$year)),0,3)), $res[$i]); } -$filename_amount = $conf->facture->dir_images."/factureamount".$year.".png"; +$filename_amount = $conf->facture->dir_temp."/factureamount".$year.".png"; $fileurl_amount = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=factureamount'.$year.'.png'; $px = new DolGraph(); @@ -110,7 +110,7 @@ for ($i = 1 ; $i < 13 ; $i++) $data[$i-1] = array(ucfirst(substr(strftime("%b",mktime(12,12,12,$i,1,$year)),0,3)), $res[$i]); } -$filename_avg = $conf->facture->dir_images."/factureaverage".$year.".png"; +$filename_avg = $conf->facture->dir_temp."/factureaverage".$year.".png"; $fileurl_avg = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=factureaverage'.$year.'.png'; $px = new DolGraph(); diff --git a/htdocs/conf/conf.class.php b/htdocs/conf/conf.class.php index 77f37e6ed12396968045e17214591b94c401fd7d..70ab576342660137e08252cb71ec3e01d66fecf9 100644 --- a/htdocs/conf/conf.class.php +++ b/htdocs/conf/conf.class.php @@ -151,61 +151,62 @@ class Conf // Module commande client $this->commande->enabled=defined("MAIN_MODULE_COMMANDE")?MAIN_MODULE_COMMANDE:0; $this->commande->dir_output=DOL_DATA_ROOT."/commande"; - $this->commande->dir_images=DOL_DATA_ROOT."/commande/images"; + $this->commande->dir_temp =DOL_DATA_ROOT."/commande/temp"; // Module expeditions $this->expedition->enabled=defined("MAIN_MODULE_EXPEDITION")?MAIN_MODULE_EXPEDITION:0; // Sous module bons d'expedition $this->expedition_bon->enabled=defined("MAIN_SUBMODULE_EXPEDITION")?MAIN_SUBMODULE_EXPEDITION:0; $this->expedition->dir_output=DOL_DATA_ROOT."/expedition"; - $this->expedition->dir_images=DOL_DATA_ROOT."/expedition/images"; + $this->expedition->dir_temp =DOL_DATA_ROOT."/expedition/temp"; // Sous module bons de livraison $this->livraison->enabled=defined("MAIN_SUBMODULE_LIVRAISON")?MAIN_SUBMODULE_LIVRAISON:0; $this->livraison->dir_output=DOL_DATA_ROOT."/livraison"; - $this->livraison->dir_images=DOL_DATA_ROOT."/livraison/images"; + $this->livraison->dir_temp =DOL_DATA_ROOT."/livraison/temp"; // Module societe $this->societe->enabled=defined("MAIN_MODULE_SOCIETE")?MAIN_MODULE_SOCIETE:0; $this->societe->dir_output=DOL_DATA_ROOT."/societe"; - $this->societe->dir_images=DOL_DATA_ROOT."/societe/images"; - $this->societe->dir_logos=DOL_DATA_ROOT."/societe/logos"; + $this->societe->dir_temp =DOL_DATA_ROOT."/societe/temp"; + $this->societe->dir_logos =DOL_DATA_ROOT."/societe/logos"; if (defined('SOCIETE_OUTPUTDIR') && SOCIETE_OUTPUTDIR) { $this->societe->dir_output=SOCIETE_OUTPUTDIR; } # Pour passer outre le rep par defaut // Module commercial $this->commercial->enabled=defined("MAIN_MODULE_COMMERCIAL")?MAIN_MODULE_COMMERCIAL:0; - $this->commercial->dir_output=DOL_DATA_ROOT."/rapport"; + $this->commercial->dir_output=DOL_DATA_ROOT."/comm"; + $this->commercial->dir_temp =DOL_DATA_ROOT."/comm/temp"; // Module taxes et charges sociales $this->tax->enabled=defined("MAIN_MODULE_TAX")?MAIN_MODULE_TAX:0; $this->tax->dir_output=DOL_DATA_ROOT."/taxes"; - $this->tax->dir_images=DOL_DATA_ROOT."/taxes/images"; + $this->tax->dir_temp =DOL_DATA_ROOT."/taxes/temp"; // Module comptaexpert $this->comptaexpert->enabled=defined("MAIN_MODULE_COMPTABILITE_EXPERT")?MAIN_MODULE_COMPTABILITE_EXPERT:0; $this->comptaexpert->dir_output=DOL_DATA_ROOT."/comptaexpert"; - $this->comptaexpert->dir_images=DOL_DATA_ROOT."/comptaexpert/images"; + $this->comptaexpert->dir_temp =DOL_DATA_ROOT."/comptaexpert/temp"; // Module compta $this->compta->enabled=defined("MAIN_MODULE_COMPTABILITE")?MAIN_MODULE_COMPTABILITE:0; $this->compta->dir_output=DOL_DATA_ROOT."/compta"; - $this->compta->dir_images=DOL_DATA_ROOT."/compta/images"; + $this->compta->dir_temp =DOL_DATA_ROOT."/compta/temp"; // Module banque $this->banque->enabled=defined("MAIN_MODULE_BANQUE")?MAIN_MODULE_BANQUE:0; $this->banque->dir_output=DOL_DATA_ROOT."/banque"; - $this->banque->dir_images=DOL_DATA_ROOT."/banque/images"; + $this->banque->dir_temp =DOL_DATA_ROOT."/banque/temp"; // Module don $this->don->enabled=defined("MAIN_MODULE_DON")?MAIN_MODULE_DON:0; $this->don->dir_output=DOL_DATA_ROOT."/dons"; - $this->don->dir_images=DOL_DATA_ROOT."/dons/images"; + $this->don->dir_temp =DOL_DATA_ROOT."/dons/temp"; // Module syslog $this->syslog->enabled=defined("MAIN_MODULE_SYSLOG")?MAIN_MODULE_SYSLOG:0; // Module fournisseur $this->fournisseur->enabled=defined("MAIN_MODULE_FOURNISSEUR")?MAIN_MODULE_FOURNISSEUR:0; $this->fournisseur->dir_output=DOL_DATA_ROOT."/fournisseur"; $this->fournisseur->commande->dir_output=DOL_DATA_ROOT."/fournisseur/commande"; - $this->fournisseur->commande->dir_images=DOL_DATA_ROOT."/fournisseur/commande/images"; - $this->fournisseur->facture->dir_output=DOL_DATA_ROOT."/fournisseur/facture"; - $this->fournisseur->facture->dir_images=DOL_DATA_ROOT."/fournisseur/facture/images"; + $this->fournisseur->commande->dir_temp =DOL_DATA_ROOT."/fournisseur/commande/temp"; + $this->fournisseur->facture->dir_output =DOL_DATA_ROOT."/fournisseur/facture"; + $this->fournisseur->facture->dir_temp =DOL_DATA_ROOT."/fournisseur/facture/temp"; // Module ficheinter $this->fichinter->enabled=defined("MAIN_MODULE_FICHEINTER")?MAIN_MODULE_FICHEINTER:0; $this->fichinter->dir_output=DOL_DATA_ROOT."/ficheinter"; - $this->fichinter->dir_images=DOL_DATA_ROOT."/ficheinter/images"; + $this->fichinter->dir_temp =DOL_DATA_ROOT."/ficheinter/temp"; if (defined('FICHEINTER_OUTPUTDIR') && FICHEINTER_OUTPUTDIR) { $this->fichinter->dir_output=FICHEINTER_OUTPUTDIR; } # Pour passer outre le rep par defaut // Module adherent $this->adherent->enabled=defined("MAIN_MODULE_ADHERENT")?MAIN_MODULE_ADHERENT:0; @@ -213,12 +214,12 @@ class Conf // Module produit $this->produit->enabled=defined("MAIN_MODULE_PRODUIT")?MAIN_MODULE_PRODUIT:0; $this->produit->dir_output=DOL_DATA_ROOT."/produit"; - $this->produit->dir_images=DOL_DATA_ROOT."/produit/images"; + $this->produit->dir_temp =DOL_DATA_ROOT."/produit/temp"; $this->produit->MultiPricesEnabled=defined("PRODUIT_MULTIPRICES")?PRODUIT_MULTIPRICES:0; // Module service $this->service->enabled=defined("MAIN_MODULE_SERVICE")?MAIN_MODULE_SERVICE:0; $this->service->dir_output=DOL_DATA_ROOT."/produit"; - $this->service->dir_images=DOL_DATA_ROOT."/produit/images"; + $this->service->dir_temp =DOL_DATA_ROOT."/produit/temp"; // Module stock $this->stock->enabled=defined("MAIN_MODULE_STOCK")?MAIN_MODULE_STOCK:0; // Module code barre @@ -242,7 +243,7 @@ class Conf // Module prelevement $this->prelevement->enabled=defined("MAIN_MODULE_PRELEVEMENT")?MAIN_MODULE_PRELEVEMENT:0; $this->prelevement->dir_output=DOL_DATA_ROOT."/prelevement"; - $this->prelevement->dir_images=DOL_DATA_ROOT."/prelevement/images"; + $this->prelevement->dir_temp =DOL_DATA_ROOT."/prelevement/temp"; // Module webcal $this->webcal->enabled=defined('MAIN_MODULE_WEBCALENDAR')?MAIN_MODULE_WEBCALENDAR:0; $this->webcal->db->type=defined('PHPWEBCALENDAR_TYPE')?PHPWEBCALENDAR_TYPE:'mysql'; @@ -253,29 +254,31 @@ class Conf // Module facture $this->facture->enabled=defined("MAIN_MODULE_FACTURE")?MAIN_MODULE_FACTURE:0; $this->facture->dir_output=DOL_DATA_ROOT."/facture"; - $this->facture->dir_images=DOL_DATA_ROOT."/facture/images"; + $this->facture->dir_temp =DOL_DATA_ROOT."/facture/temp"; if (defined('FAC_OUTPUTDIR') && FAC_OUTPUTDIR) { $this->facture->dir_output=FAC_OUTPUTDIR; } # Pour passer outre le rep par defaut // Module propal $this->propal->enabled=defined("MAIN_MODULE_PROPALE")?MAIN_MODULE_PROPALE:0; if (! defined("PROPALE_NEW_FORM_NB_PRODUCT")) define("PROPALE_NEW_FORM_NB_PRODUCT", 4); $this->propal->dir_output=DOL_DATA_ROOT."/propale"; - $this->propal->dir_images=DOL_DATA_ROOT."/propale/images"; + $this->propal->dir_temp =DOL_DATA_ROOT."/propale/temp"; if (defined('PROPALE_OUTPUTDIR') && PROPALE_OUTPUTDIR) { $this->propal->dir_output=PROPALE_OUTPUTDIR; } # Pour passer outre le rep par defaut // Module telephonie $this->telephonie->enabled=defined("MAIN_MODULE_TELEPHONIE")?MAIN_MODULE_TELEPHONIE:0; $this->telephonie->dir_output=DOL_DATA_ROOT."/telephonie"; - $this->telephonie->dir_images=DOL_DATA_ROOT."/telephonie/images"; + $this->telephonie->dir_temp =DOL_DATA_ROOT."/telephonie/temp"; // Module energie $this->energie->enabled=defined("MAIN_MODULE_ENERGIE")?MAIN_MODULE_ENERGIE:0; // Module domaine $this->domaine->enabled=0; // Module voyage $this->voyage->enabled=0; - // Module actionscomm - $this->actionscomm->dir_output=DOL_DATA_ROOT."/action"; + // Module actions + $this->actions->dir_output=DOL_DATA_ROOT."/action"; + $this->actions->dir_temp =DOL_DATA_ROOT."/action/temp"; // Module export $this->export->enabled=defined("MAIN_MODULE_EXPORT")?MAIN_MODULE_EXPORT:0; - $this->export->dir_ouput=DOL_DATA_ROOT."/export"; + $this->export->dir_output=DOL_DATA_ROOT."/export"; + $this->export->dir_temp =DOL_DATA_ROOT."/export/temp"; // Module ldap $this->ldap->enabled=defined("MAIN_MODULE_LDAP")?MAIN_MODULE_LDAP:0; // Module FCKeditor diff --git a/htdocs/document.php b/htdocs/document.php index 349845dc0f8f6e854d7874d300b94c009efe51fc..0daba8ff60e0cacc57d6645efbf6c42105547a9c 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -209,7 +209,7 @@ if ($modulepart) //{ $accessallowed=1; //} - $original_file=$conf->actionscomm->dir_output.'/'.$original_file; + $original_file=$conf->actions->dir_output.'/'.$original_file; } // Wrapping pour les actions @@ -220,7 +220,7 @@ if ($modulepart) //{ $accessallowed=1; //} - $original_file = $conf->commercial->dir_output."/actions/".$original_file; + $original_file = $conf->action->dir_temp."/".$original_file; } // Wrapping pour les produits et services @@ -251,7 +251,7 @@ if ($modulepart) // Aucun test necessaire car on force le rep de doanwload sur // le rep export qui est propre � l'utilisateur $accessallowed=1; - $original_file=$conf->export->dir_output.'/'.$user->id.'/'.$original_file; + $original_file=$conf->export->dir_temp.'/'.$user->id.'/'.$original_file; } // Wrapping pour l'�diteur wysiwyg diff --git a/htdocs/expedition/stats/month.php b/htdocs/expedition/stats/month.php index 6be604527b1d7447ee0d7b9cd3e89982d0f7496a..fcb0de14d69baeac06c1237112f70daafd90a992 100644 --- a/htdocs/expedition/stats/month.php +++ b/htdocs/expedition/stats/month.php @@ -43,9 +43,9 @@ print_fiche_titre('Statistiques expeditions '.$_GET["year"], $mesg); $stats = new ExpeditionStats($db); $data = $stats->getNbExpeditionByMonth($_GET["year"]); -if (! is_dir($conf->expedition->dir_images)) { mkdir($conf->expedition->dir_images); } +create_exdir($conf->expedition->dir_temp); -$filename = $conf->expedition->dir_images."/expedition".$year.".png"; +$filename = $conf->expedition->dir_temp."/expedition".$year.".png"; $fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=expeditionstats&file=expedition'.$year.'.png'; $px = new DolGraph(); diff --git a/htdocs/exports/export.class.php b/htdocs/exports/export.class.php index a52abec347cf226b7c7c9ed77c8a9e241a30efb1..a523a23447dcf5646b45b476cecc1eff72b303a5 100644 --- a/htdocs/exports/export.class.php +++ b/htdocs/exports/export.class.php @@ -172,7 +172,7 @@ class Export //$this->array_export_label[$indice] $filename="export_".$datatoexport; $filename.='.'.$objmodel->getDriverExtension(); - $dirname=$conf->export->dir_ouput.'/'.$user->id; + $dirname=$conf->export->dir_temp.'/'.$user->id; // Open file create_exdir($dirname); diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php index c9f78eeffe112f99d818aa2a89a3e08096d6922f..ff070a946f6e6f5eebf82c3407a1b8cd003521c1 100644 --- a/htdocs/exports/export.php +++ b/htdocs/exports/export.php @@ -191,6 +191,8 @@ if ($step == 1 || ! $datatoexport) print '</table>'; print '</table>'; + + print '</div>'; } if ($step == 2 && $datatoexport) @@ -294,7 +296,7 @@ if ($step == 2 && $datatoexport) print '<a class="butAction" href="export.php?step=3&datatoexport='.$datatoexport.'">'.$langs->trans("NextStep").'</a>'; } - print '</div>'; + print '</div>'; } if ($step == 3 && $datatoexport) @@ -403,7 +405,7 @@ if ($step == 3 && $datatoexport) print '<a class="butAction" href="export.php?step=4&datatoexport='.$datatoexport.'">'.$langs->trans("NextStep").'</a>'; } - print '</div>'; + print '</div>'; } if ($step == 4 && $datatoexport) @@ -488,20 +490,21 @@ if ($step == 4 && $datatoexport) $htmlform=new Form($db); print '<table width="100%"><tr><td width="50%">'; - if (! is_dir($conf->export->dir_ouput)) create_exdir($conf->export->dir_ouput); + if (! is_dir($conf->export->dir_temp)) create_exdir($conf->export->dir_temp); // Affiche liste des documents // NB: La fonction show_documents rescanne les modules qd genallowed=1 - $htmlform->show_documents('export','',$conf->export->dir_ouput.'/'.$user->id,$_SERVER["PHP_SELF"].'?step=4&datatoexport='.$datatoexport,$liste,1,'csv','',1); + $htmlform->show_documents('export','',$conf->export->dir_temp.'/'.$user->id,$_SERVER["PHP_SELF"].'?step=4&datatoexport='.$datatoexport,$liste,1,'csv','',1); print '</td><td width="50%"> </td></tr>'; print '</table>'; } + +print '<br>'; $db->close(); llxFooter('$Date$ - $Revision$'); - ?> diff --git a/htdocs/exports/index.php b/htdocs/exports/index.php index 7fc0dcf5a6d183e43feec294010cf8c3a5dc243f..380de439f0a8f56aab9a35e85ae30b475b75f06b 100644 --- a/htdocs/exports/index.php +++ b/htdocs/exports/index.php @@ -46,6 +46,11 @@ llxHeader('',$langs->trans("ExportsArea")); print_fiche_titre($langs->trans("ExportsArea")); +print $langs->trans("FormatedExportDesc1").'<br>'; +print $langs->trans("FormatedExportDesc2").' '; +print $langs->trans("FormatedExportDesc3").'<br>'; +print '<br>'; + print '<table class="notopnoleftnoright" width="100%">'; print '<tr><td valign="top" width="30%" class="notopnoleft">'; @@ -85,7 +90,7 @@ print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td>'.$langs->trans("Module").'</td>'; print '<td>'.$langs->trans("ExportableDatas").'</td>'; -print '<td> </td>'; +//print '<td> </td>'; print '</tr>'; $val=true; if (sizeof($export->array_export_code)) @@ -99,10 +104,15 @@ if (sizeof($export->array_export_code)) print '</td><td>'; $string=$langs->trans($export->array_export_label[$key]); print ($string!=$export->array_export_label[$key]?$string:$export->array_export_label[$key]); - print '</td><td width="24">'; - print '<a href="'.DOL_URL_ROOT.'/exports/export.php?step=2&datatoexport='.$export->array_export_code[$key].'&action=cleanselect">'.img_picto($langs->trans("NewExport"),'filenew').'</a>'; - print '</td></tr>'; + print '</td>'; +// print '<td width="24">'; +// print '<a href="'.DOL_URL_ROOT.'/exports/export.php?step=2&datatoexport='.$export->array_export_code[$key].'&action=cleanselect">'.img_picto($langs->trans("NewExport"),'filenew').'</a>'; +// print '</td>'; + print '</tr>'; + } + + print '<tr class="total"><td class="total" colspan="2" align="center"><form action="'.DOL_URL_ROOT.'/exports/export.php?leftmenu=export"><input type="submit" class="button" value="'.$langs->trans("NewExport").'"></form></td></tr>'; } else { diff --git a/htdocs/includes/boxes/box_external_rss.php b/htdocs/includes/boxes/box_external_rss.php index 1ce89f2cdbab568f6534aef284d210146c418421..436f52ae17f251c33091245451625fb041f06146 100644 --- a/htdocs/includes/boxes/box_external_rss.php +++ b/htdocs/includes/boxes/box_external_rss.php @@ -84,7 +84,7 @@ class box_external_rss extends ModeleBoxes { if ($rss->ERROR) { // Affiche warning car il y a eu une erreur - $title.=" ".img_error($langs->trans("FailedToRefreshDataInfoNotUpToDate",(isset($rss->date)?dolibarr_print_date($rss->date,"%d %b %Y %H:%M"):'unknown date'))); + $title.=" ".img_error($langs->trans("FailedToRefreshDataInfoNotUpToDate",(isset($rss->date)?dolibarr_print_date($rss->date,"dayhourtext"):'unknown date'))); $this->info_box_head = array('text' => $title,'limit' => 0); } else diff --git a/htdocs/includes/menus/barre_left/eldy_backoffice.php b/htdocs/includes/menus/barre_left/eldy_backoffice.php index 50c27f8768e7b7787b1e9c8c0f79a1abf31cf3df..18ec7bbfa3d51bd2297d6e9215885b9acc84a53a 100644 --- a/htdocs/includes/menus/barre_left/eldy_backoffice.php +++ b/htdocs/includes/menus/barre_left/eldy_backoffice.php @@ -595,7 +595,7 @@ class MenuLeft { if ($conf->export->enabled) { - $newmenu->add_submenu(DOL_URL_ROOT."/exports/index.php?leftmenu=export",$langs->trans("Exports"),0,1); + $newmenu->add_submenu(DOL_URL_ROOT."/exports/index.php?leftmenu=export",$langs->trans("FormatedExport"),0,1); $newmenu->add_submenu(DOL_URL_ROOT."/exports/export.php?leftmenu=export",$langs->trans("NewExport"),1,1); } diff --git a/htdocs/includes/modules/modCommande.class.php b/htdocs/includes/modules/modCommande.class.php index 930715cfb043109fd56d958a58decb197b24c7ad..fc1523bd36fa92f40d9e1f582c90ca04b6f44b9a 100644 --- a/htdocs/includes/modules/modCommande.class.php +++ b/htdocs/includes/modules/modCommande.class.php @@ -152,7 +152,7 @@ class modCommande extends DolibarrModules // Dir $this->dirs[0] = $conf->commande->dir_output; - $this->dirs[1] = $conf->commande->dir_images; + $this->dirs[1] = $conf->commande->dir_temp; $sql = array( "DELETE FROM ".MAIN_DB_PREFIX."document_model WHERE nom = '".$this->const[0][2]."'", "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom,type) VALUES('".$this->const[0][2]."','order')" diff --git a/htdocs/includes/modules/modComptabilite.class.php b/htdocs/includes/modules/modComptabilite.class.php index 77727f6b7c107c026ac74f4593ad4dcd58fb4f78..b691269821f7f92d1cfdb2d3c446f8be06e51bf1 100644 --- a/htdocs/includes/modules/modComptabilite.class.php +++ b/htdocs/includes/modules/modComptabilite.class.php @@ -81,7 +81,7 @@ class modComptabilite extends DolibarrModules $this->dirs[0] = $conf->compta->dir_output; $this->dirs[1] = $conf->compta->dir_output."/rapport"; $this->dirs[2] = $conf->compta->dir_output."/export"; - $this->dirs[3] = $conf->compta->dir_images; + $this->dirs[3] = $conf->compta->dir_temp; // Boites $this->boxes = array(); diff --git a/htdocs/includes/modules/modExport.class.php b/htdocs/includes/modules/modExport.class.php index 7cc45475ca3f365056c9ff1f28d3bbf59114c03a..e2c84403d34a8abebb5dba8e9ce054fec7e14252 100644 --- a/htdocs/includes/modules/modExport.class.php +++ b/htdocs/includes/modules/modExport.class.php @@ -50,7 +50,7 @@ class modExport extends DolibarrModules $this->family = "technic"; $this->name = "Exports"; - $this->description = "Permet export des donn�es de la base en fichiers"; + $this->description = "Permet exports par les utilisateurs, via un assistant, de lot de donn�es personalis�es"; $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->const_name = 'MAIN_MODULE_EXPORT'; $this->special = 0; diff --git a/htdocs/includes/modules/modPropale.class.php b/htdocs/includes/modules/modPropale.class.php index c1970a4df914c93a6f552e53254bb4a59ef15ef2..7cdb346f0c1864560d04c078cc76ca1ab78813a2 100644 --- a/htdocs/includes/modules/modPropale.class.php +++ b/htdocs/includes/modules/modPropale.class.php @@ -144,7 +144,7 @@ class modPropale extends DolibarrModules // R�pertoires $this->dirs[0] = $conf->propal->dir_output; - $this->dirs[1] = $conf->propal->dir_images; + $this->dirs[1] = $conf->propal->dir_temp; $sql = array( "DELETE FROM ".MAIN_DB_PREFIX."document_model WHERE nom = '".$this->const[0][2]."'", diff --git a/htdocs/includes/modules/modTax.class.php b/htdocs/includes/modules/modTax.class.php index df2bf60faf6be2e59d02aa37fbcc3c6ca84c3225..65ae6f9c8d2b65cfd07b7b5bf4ed3c4fd08abe35 100644 --- a/htdocs/includes/modules/modTax.class.php +++ b/htdocs/includes/modules/modTax.class.php @@ -79,7 +79,7 @@ class modTax extends DolibarrModules // R�pertoires $this->dirs = array(); $this->dirs[0] = $conf->tax->dir_output; - $this->dirs[1] = $conf->tax->dir_images; + $this->dirs[1] = $conf->tax->dir_temp; // Boites $this->boxes = array(); diff --git a/htdocs/includes/modules/modUser.class.php b/htdocs/includes/modules/modUser.class.php index c8f7173c2f0e39d43a892132e8b743c63676935d..bb800d86549e7498d40e9ca42ab5279208f07de6 100644 --- a/htdocs/includes/modules/modUser.class.php +++ b/htdocs/includes/modules/modUser.class.php @@ -71,7 +71,7 @@ class modUser extends DolibarrModules // D�pendances $this->depends = array(); $this->requiredby = array(); - $this->langfiles = array("users","companies"); + $this->langfiles = array("main","users","companies"); // Constantes $this->const = array(); @@ -147,9 +147,9 @@ class modUser extends DolibarrModules $r++; $this->export_code[$r]=$this->id.'_'.$r; $this->export_label[$r]='Liste des utilisateurs Dolibarr et attributs'; - $this->export_fields_array[$r]=array('u.rowid'=>"Id",'u.name'=>"Lastname",'u.firstname'=>"Firstname",'u.code'=>"Code",'u.login'=>"Login",'u.datec'=>"DateCreation",'u.tms'=>"DateLastModification",'u.admin'=>"Admin",'u.fk_socpeople'=>"IdContact",'u.note'=>"Note",'u.datelastlogin'=>'DateLastLogin','u.datepreviouslogin'=>'DatePreviousLogin'); - $this->export_entities_array[$r]=array('u.rowid'=>"user",'u.name'=>"user",'u.firstname'=>"user",'u.code'=>"user",'u.login'=>"user",'u.datec'=>"user",'u.tms'=>"user",'u.admin'=>"user",'u.fk_socpeople'=>"user",'u.note'=>"user",'u.datelastlogin'=>'user','u.datepreviouslogin'=>'user'); - $this->export_alias_array[$r]=array('u.rowid'=>"rowid",'u.name'=>"name",'u.firstname'=>"firstname",'u.code'=>"code",'u.login'=>"login",'u.datec'=>"datecreation",'u.tms'=>"datelastmodification",'u.admin'=>"admin",'u.fk_socpeople'=>"idcontact",'u.note'=>"note",'u.datelastlogin'=>'datelastlogin','u.datepreviouslogin'=>'datepreviouslogin'); + $this->export_fields_array[$r]=array('u.rowid'=>"Id",'u.code'=>"Code",'u.login'=>"Login",'u.office_phone'=>'Tel','u.office_fax'=>'Fax','u.email'=>'EMail','u.name'=>"Lastname",'u.firstname'=>"Firstname",'u.datec'=>"DateCreation",'u.tms'=>"DateLastModification",'u.admin'=>"Admin",'u.fk_socpeople'=>"IdContact",'u.note'=>"Note",'u.datelastlogin'=>'LastConnexion','u.datepreviouslogin'=>'PreviousConnexion'); + $this->export_entities_array[$r]=array('u.rowid'=>"user",'u.code'=>"user",'u.login'=>"user",'u.office_phone'=>'user','u.office_fax'=>'user','u.email'=>'user','u.name'=>"user",'u.firstname'=>"user",'u.datec'=>"user",'u.tms'=>"user",'u.admin'=>"user",'u.fk_socpeople'=>"user",'u.note'=>"user",'u.datelastlogin'=>'user','u.datepreviouslogin'=>'user'); + $this->export_alias_array[$r]=array('u.rowid'=>"rowid",'u.code'=>"code",'u.login'=>"login",'u.office_phone'=>'tel','u.office_fax'=>'fax','u.email'=>'email','u.name'=>"name",'u.firstname'=>"firstname",'u.datec'=>"datecreation",'u.tms'=>"datelastmodification",'u.admin'=>"admin",'u.fk_socpeople'=>"idcontact",'u.note'=>"note",'u.datelastlogin'=>'datelastlogin','u.datepreviouslogin'=>'datepreviouslogin'); $this->export_sql[$r]="select "; $i=0; foreach ($this->export_alias_array[$r] as $key => $value) diff --git a/htdocs/langs/en_US/exports.lang b/htdocs/langs/en_US/exports.lang index 67121ff821a930beede53d6cedb7b1084adffaa3..3bf5950b2b0b4dc9630c6ab7944236e5d79bdf69 100644 --- a/htdocs/langs/en_US/exports.lang +++ b/htdocs/langs/en_US/exports.lang @@ -16,4 +16,8 @@ NowClickToGenerateToBuildExportFile=Now, click on "Generate" to build export fil AvailableFormats=Formats disponibles LibraryUsed=Librairie LibraryVersion=Version -Step=Step \ No newline at end of file +Step=Step +FormatedExport=Export assistant +FormatedExportDesc1=This area allows to export personalized data using an assistant to help in process without technical knowledge. +FormatedExportDesc2=First step is to choose a predefined dataset, then to choose which fields you want in your result files, and which order. +FormatedExportDesc3=When data to export are selected, you can define output file format you want to export your data to. diff --git a/htdocs/langs/fr_FR/boxes.lang b/htdocs/langs/fr_FR/boxes.lang index 35422ca6512473046eed8a1d912ae820e4aefcff..8779a3b24d9034cbab9a79cc25de964ca11dc3ef 100644 --- a/htdocs/langs/fr_FR/boxes.lang +++ b/htdocs/langs/fr_FR/boxes.lang @@ -35,5 +35,5 @@ BoxTitleSalesTurnover=Le chiffre d'affaire r BoxTitleTotalUnpayedCustomerBills=Impay�s clients BoxTitleTotalUnpayedSuppliersBills=Impay�s fournisseurs BoxMyLastBookmarks=Mes %s derniers marque-pages -FailedToRefreshDataInfoNotUpToDate=Echec du rafraichissement du flux RSS. Les informations datent du %s. +FailedToRefreshDataInfoNotUpToDate=Echec du rafraichissement du flux RSS. Les informations datent du %s NoRecordedBookmarks=Pas de bookmarks personnels. Cliquer ici pour en ajouter. \ No newline at end of file diff --git a/htdocs/langs/fr_FR/exports.lang b/htdocs/langs/fr_FR/exports.lang index b0398fb2492dbdb581817f1f6db8ce418dec3422..4b4d9e9c2c2269f7241af434b49fb13716bbb3f9 100644 --- a/htdocs/langs/fr_FR/exports.lang +++ b/htdocs/langs/fr_FR/exports.lang @@ -2,7 +2,7 @@ ExportsArea=Espace exports NewExport=Nouvel export ExportableDatas=Lot de donn�es exportables -SelectExportDataSet=Choisissez le lot de donn�es que vous d�sirez exporter... +SelectExportDataSet=Choisissez un lot pr�d�fini de donn�es que vous d�sirez exporter... SelectExportFields=Choisissez les champs � exporter... ExportableFields=Champs exportables ExportedFields=Champs � exporter @@ -16,4 +16,8 @@ NowClickToGenerateToBuildExportFile=Maintenant, cliquez sur "G AvailableFormats=Formats dispo. LibraryUsed=Librairie utilis�e LibraryVersion=Version -Step=Etape \ No newline at end of file +Step=Etape +FormatedExport=Assistant export +FormatedExportDesc1=Cet espace permet de r�aliser des exports personalis�s des donn�es via un assistant qui �vite d'avoir des connaissances techniques de Dolibarr. +FormatedExportDesc2=La premi�re �tape est de choisir un des lots de donn�es pr�d�finis, ensuite de choisir les champs que vous voulez dans votre fichier r�sultat, et dans quel ordre. +FormatedExportDesc3=Une fois les donn�es s�lectionn�es, il est possible de choisir le format du fichier export g�n�r�. diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index 690d3e8872131f1db5dd55b11c36d1615c4b183f..fe9520a0f60f8d7bedf8345f2cf0f35394188da6 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -114,7 +114,7 @@ if ($_GET["id"] || $_GET["ref"]) // Generation des graphs $WIDTH=380; $HEIGHT=160; - $dir = $conf->produit->dir_images; + $dir = $conf->produit->dir_temp; if (! file_exists($dir.'/'.$product->id)) { if (create_exdir($dir.'/'.$product->id) < 0) diff --git a/htdocs/viewimage.php b/htdocs/viewimage.php index cb4c0a2c49e3586567068ac8c67c2307eb5930fa..0396528b3ef736239c46a4668bcd3ce011d10a49 100644 --- a/htdocs/viewimage.php +++ b/htdocs/viewimage.php @@ -108,7 +108,7 @@ if ($modulepart) { $accessallowed=1; } - $original_file=$conf->propal->dir_images.'/'.$original_file; + $original_file=$conf->propal->dir_temp.'/'.$original_file; } // Wrapping pour les images des stats commandes @@ -119,7 +119,7 @@ if ($modulepart) { $accessallowed=1; } - $original_file=$conf->commande->dir_images.'/'.$original_file; + $original_file=$conf->commande->dir_temp.'/'.$original_file; } // Wrapping pour les images des stats commandes @@ -130,7 +130,7 @@ if ($modulepart) { $accessallowed=1; } - $original_file=$conf->facture->dir_images.'/'.$original_file; + $original_file=$conf->facture->dir_temp.'/'.$original_file; } // Wrapping pour les images des stats expeditions @@ -141,7 +141,7 @@ if ($modulepart) { $accessallowed=1; } - $original_file=$conf->expedition->dir_images.'/'.$original_file; + $original_file=$conf->expedition->dir_temp.'/'.$original_file; } // Wrapping pour les images des stats produits @@ -152,7 +152,7 @@ if ($modulepart) { $accessallowed=1; } - $original_file=$conf->produit->dir_images.'/'.$original_file; + $original_file=$conf->produit->dir_temp.'/'.$original_file; } // Wrapping pour les produits @@ -197,7 +197,7 @@ if ($modulepart) if ($modulepart == 'bank') { $accessallowed=1; - $original_file=$conf->banque->dir_images.'/'.$original_file; + $original_file=$conf->banque->dir_temp.'/'.$original_file; } } diff --git a/scripts/banque/graph-solde.php b/scripts/banque/graph-solde.php index b0800150aca334719c41f8a410acdd4dccbf7313..903828d914e100faee714adc997078935fc9f2bf 100644 --- a/scripts/banque/graph-solde.php +++ b/scripts/banque/graph-solde.php @@ -56,13 +56,9 @@ else $opt=array('m'=>$argv[1]); } -if (!$conf->banque->dir_images) -{ - $conf->banque->dir_images = DOL_DATA_ROOT."/graph/banque/"; -} // Cr�e r�pertoire accueil -create_exdir($conf->banque->dir_images); +create_exdir($conf->banque->dir_temp); $datetime = time(); @@ -230,7 +226,7 @@ foreach ($accounts as $account) // Fabrication tableau 1 - $file= $conf->banque->dir_images."/solde.$account.$year.$month.png"; + $file= $conf->banque->dir_temp."/solde.$account.$year.$month.png"; $title=$langs->trans("Balance").' '.$langs->trans("Month").': '.$month.' '.$langs->trans("Year").': '.$year; $graph_datas=array(); foreach($datas as $i => $val) @@ -325,7 +321,7 @@ foreach ($accounts as $account) } // Fabrication tableau 2 - $file= $conf->banque->dir_images."/solde.$account.$year.png"; + $file= $conf->banque->dir_temp."/solde.$account.$year.png"; $title=$langs->trans("Balance").' '.$langs->trans("Year").': '.$year; $graph_datas=array(); foreach($datas as $i => $val) @@ -400,7 +396,7 @@ foreach ($accounts as $account) } // Fabrication tableau 3 - $file= $conf->banque->dir_images."/solde.$account.png"; + $file= $conf->banque->dir_temp."/solde.$account.png"; $title=$langs->trans("Balance"); $graph_datas=array(); foreach($datas as $i => $val) @@ -480,7 +476,7 @@ foreach ($accounts as $account) } // Fabrication tableau 4 - $file= $conf->banque->dir_images."/mouvement.$account.$year.png"; + $file= $conf->banque->dir_temp."/mouvement.$account.$year.png"; $title=$langs->trans("Movements").' '.$langs->trans("Year").': '.$year; $graph_datas=array(); foreach($data_credit as $i => $val)