diff --git a/dev/generate-facture.php b/dev/generate-facture.php index fe2c5c7a4cc..c067a29834f 100644 --- a/dev/generate-facture.php +++ b/dev/generate-facture.php @@ -25,9 +25,15 @@ * */ +/** + \file htdocs/dev/generate-facture.php + \brief Page de génération de données aléatoires pour les factures + \version $Revision$ +*/ + require ("../htdocs/master.inc.php"); -require_once ("../htdocs/facture.class.php"); -require_once ("../htdocs/societe.class.php"); +require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/societe.class.php"); /* * Parametre diff --git a/dev/generate-propale.php b/dev/generate-propale.php index 95adb48294d..64859c58d03 100644 --- a/dev/generate-propale.php +++ b/dev/generate-propale.php @@ -25,11 +25,17 @@ * */ +/** + \file htdocs/dev/generate-propale.php + \brief Page de génération de données aléatoires pour les propales + \version $Revision$ +*/ + require ("../htdocs/master.inc.php"); -require_once ("../htdocs/facture.class.php"); -require_once ("../htdocs/propal.class.php"); -require_once (DOL_DOCUMENT_ROOT."/commande/commande.class.php"); -require_once ("../htdocs/societe.class.php"); +require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); +require_once(DOL_DOCUMENT_ROOT."/societe.class.php"); /* * Parametre diff --git a/htdocs/admin/system/update.php b/htdocs/admin/system/update.php index 11d34418abf..6878679325f 100644 --- a/htdocs/admin/system/update.php +++ b/htdocs/admin/system/update.php @@ -34,8 +34,8 @@ if (!$user->admin) accessforbidden(); -require("../../facture.class.php"); -require("../../propal.class.php"); +include_once(DOL_DOCUMENT_ROOT."/facture.class.php"); +include_once(DOL_DOCUMENT_ROOT."/propal.class.php"); // On appelle pas llxHeader dans le cas de cette page car llxHeader inclus le main.inc.php qui inclut le test diff --git a/htdocs/client.class.php b/htdocs/client.class.php index 43aa20f66d7..6676e5f1573 100644 --- a/htdocs/client.class.php +++ b/htdocs/client.class.php @@ -33,7 +33,7 @@ \brief Classe permettant la gestion des clients */ -include_once DOL_DOCUMENT_ROOT."/societe.class.php"; +include_once(DOL_DOCUMENT_ROOT."/societe.class.php"); class Client extends Societe diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index 1f4b715d925..dfa9075793b 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -530,7 +530,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire) { $sql .= " ORDER BY p.rowid DESC"; $sql .= $db->plimit($NBMAX, 0); - include_once("../propal.class.php"); + include_once(DOL_DOCUMENT_ROOT."/propal.class.php"); $propalstatic=new Propal($db); if ( $db->query($sql) ) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index f7ee6109fc5..fc65ba3aab4 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -42,7 +42,7 @@ $langs->load('bills'); if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT.'/project.class.php'); if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); -require_once('../propal.class.php'); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); require_once('../actioncomm.class.php'); require_once(DOL_DOCUMENT_ROOT.'/lib/CMailFile.class.php'); diff --git a/htdocs/comm/propal/aideremise.php b/htdocs/comm/propal/aideremise.php index 4f29297ba54..4c5b2fc848c 100644 --- a/htdocs/comm/propal/aideremise.php +++ b/htdocs/comm/propal/aideremise.php @@ -21,7 +21,8 @@ * */ -/*! \file htdocs/comm/propal/aideremise.php +/** + \file htdocs/comm/propal/aideremise.php \ingroup propale \brief Page de simulation des remises */ @@ -32,16 +33,16 @@ $user->getrights('propale'); if (!$user->rights->propale->lire) accessforbidden(); -require("../../propal.class.php"); -/* - * Sécurité accés client - */ +include_once(DOL_DOCUMENT_ROOT."/propal.class.php"); + +// Sécurité accés client if ($user->societe_id > 0) { $action = ''; $socidp = $user->societe_id; } + /******************************************************************************/ /* Actions */ /******************************************************************************/ diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php index 59251fa4e0e..4e6633dc3c6 100644 --- a/htdocs/comm/propal/document.php +++ b/htdocs/comm/propal/document.php @@ -30,7 +30,7 @@ */ require('./pre.inc.php'); -require_once('../../propal.class.php'); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); $user->getrights('propale'); diff --git a/htdocs/comm/propal/info.php b/htdocs/comm/propal/info.php index 2439d99b486..9b38a17d4b7 100644 --- a/htdocs/comm/propal/info.php +++ b/htdocs/comm/propal/info.php @@ -36,7 +36,7 @@ $user->getrights('propale'); if (!$user->rights->propale->lire) accessforbidden(); -require('../../propal.class.php'); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); /* diff --git a/htdocs/comm/propal/note.php b/htdocs/comm/propal/note.php index b662aff710a..ea89447683d 100644 --- a/htdocs/comm/propal/note.php +++ b/htdocs/comm/propal/note.php @@ -30,7 +30,7 @@ */ require('./pre.inc.php'); -require('../../propal.class.php'); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); $langs->load('propal'); diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 2dff18493aa..722c278096d 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -38,13 +38,13 @@ accessforbidden(); $langs->load("bills"); -require_once "../facture.class.php"; +require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); require_once "../paiement.class.php"; if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT."/project.class.php"); -if ($conf->propal->enabled) require_once("../propal.class.php"); +if ($conf->propal->enabled) require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); if ($conf->contrat->enabled) require_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php"); if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); -require_once DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php"; +require_once(DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php"); $sall=isset($_GET["sall"])?$_GET["sall"]:$_POST["sall"]; diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index c655dad9746..a0f0d497ad8 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -31,7 +31,7 @@ require("./pre.inc.php"); require("../contact.class.php"); require("../actioncomm.class.php"); -require("../facture.class.php"); +include_once(DOL_DOCUMENT_ROOT."/facture.class.php"); $langs->load("companies"); if ($conf->facture->enabled) $langs->load("bills"); diff --git a/htdocs/compta/paiement/fiche.php b/htdocs/compta/paiement/fiche.php index 4a86d1523d5..329124ce65a 100644 --- a/htdocs/compta/paiement/fiche.php +++ b/htdocs/compta/paiement/fiche.php @@ -31,7 +31,7 @@ require("./pre.inc.php"); require("../../paiement.class.php"); -require("../../facture.class.php"); +include_once(DOL_DOCUMENT_ROOT."/facture.class.php"); $user->getrights('facture'); diff --git a/htdocs/compta/propal.php b/htdocs/compta/propal.php index 5750a1edf32..28d17669a0b 100644 --- a/htdocs/compta/propal.php +++ b/htdocs/compta/propal.php @@ -36,9 +36,8 @@ if (!$user->rights->propale->lire) if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT.'/project.class.php'); if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php"); -require_once("../propal.class.php"); -//require_once("../actioncomm.class.php"); // Sécurité accés client if ($user->societe_id > 0) diff --git a/htdocs/compta/recap-client.php b/htdocs/compta/recap-client.php index 7616cd9dc96..3cbb5d49bb7 100644 --- a/htdocs/compta/recap-client.php +++ b/htdocs/compta/recap-client.php @@ -29,7 +29,7 @@ */ require("./pre.inc.php"); -require("../facture.class.php"); +include_once(DOL_DOCUMENT_ROOT."/facture.class.php"); $langs->load("companies"); if ($conf->facture->enabled) $langs->load("bills"); diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 95cf816904e..54f087286f7 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -30,8 +30,8 @@ require("./pre.inc.php"); if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT."/project.class.php"); -if ($conf->propal->enabled) require_once("../propal.class.php"); -if ($conf->contrat->enabled) require_once (DOL_DOCUMENT_ROOT."/contrat/contrat.class.php"); +if ($conf->propal->enabled) require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +if ($conf->contrat->enabled) require_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php"); $langs->load("contracts"); $langs->load("orders"); diff --git a/htdocs/contrat/ligne.php b/htdocs/contrat/ligne.php index 01edfa17a6f..bd216fff9f9 100644 --- a/htdocs/contrat/ligne.php +++ b/htdocs/contrat/ligne.php @@ -29,8 +29,8 @@ require("./pre.inc.php"); if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT."/project.class.php"); -if ($conf->propal->enabled) require_once("../propal.class.php"); -if ($conf->contrat->enabled) require_once (DOL_DOCUMENT_ROOT."/contrat/contrat.class.php"); +if ($conf->propal->enabled) require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +if ($conf->contrat->enabled) require_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php"); $langs->load("contracts"); $langs->load("orders"); diff --git a/htdocs/dossier/client/fiche.php b/htdocs/dossier/client/fiche.php index 6fa4c7d366c..a9a33441459 100644 --- a/htdocs/dossier/client/fiche.php +++ b/htdocs/dossier/client/fiche.php @@ -56,7 +56,7 @@ if ($user->societe_id > 0) if ($_GET["facid"]) { - require_once DOL_DOCUMENT_ROOT.'/facture.class.php'; + require_once(DOL_DOCUMENT_ROOT.'/facture.class.php'); $fac = new Facture($db); $fac->fetch($_GET["facid"]); diff --git a/htdocs/expedition/commande.php b/htdocs/expedition/commande.php index 689e340108a..83bdc3b4715 100644 --- a/htdocs/expedition/commande.php +++ b/htdocs/expedition/commande.php @@ -34,8 +34,8 @@ if (!$user->rights->commande->lire) accessforbidden(); require_once(DOL_DOCUMENT_ROOT."/project.class.php"); -require("../propal.class.php"); -require("../product/stock/entrepot.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/product/stock/entrepot.class.php"); // Sécurité accés client if ($user->societe_id > 0) diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index 3ce58b29a4d..6c2b1045a86 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -36,8 +36,8 @@ $langs->load("bills"); if (!$user->rights->expedition->lire) accessforbidden(); -require("../propal.class.php"); -require("../product/stock/entrepot.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/product/stock/entrepot.class.php"); // Sécurité accés client if ($user->societe_id > 0) diff --git a/htdocs/index.php b/htdocs/index.php index ed719e1abf0..7de0ff7804a 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -251,7 +251,7 @@ if ($conf->commande->enabled && $user->rights->commande->lire) // Nbre propales ouvertes (expirées) if ($conf->propal->enabled && $user->rights->propale->lire) { - include_once("./propal.class.php"); + include_once(DOL_DOCUMENT_ROOT."/propal.class.php"); $board=new Propal($db); $board->load_board("opened"); @@ -274,7 +274,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire) // Nbre propales fermées signées (à facturer) if ($conf->propal->enabled && $user->rights->propale->lire) { - include_once("./propal.class.php"); + include_once(DOL_DOCUMENT_ROOT."/propal.class.php"); $board=new Propal($db); $board->load_board("signed"); @@ -372,7 +372,7 @@ if ($conf->fournisseur->enabled && $conf->facture->enabled && $user->rights->fac // Nbre factures clients (à payer) if ($conf->facture->enabled && $user->rights->facture->lire) { - include_once("./facture.class.php"); + include_once(DOL_DOCUMENT_ROOT."/facture.class.php"); $board=new Facture($db); $board->load_board(); diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 92c00c93cf6..7a9fa1162f3 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -31,8 +31,8 @@ */ require("./pre.inc.php"); -require("../propal.class.php"); -require("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); $langs->load("bills"); diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index 999a0aac1cc..ab5b930048e 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -30,8 +30,8 @@ */ require("./pre.inc.php"); -require("../propal.class.php"); -require("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); $langs->load("products"); $langs->load("suppliers"); diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php index c081b6c0053..9846dbaaac3 100644 --- a/htdocs/product/photos.php +++ b/htdocs/product/photos.php @@ -30,8 +30,8 @@ */ require("./pre.inc.php"); -require("../propal.class.php"); -require("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); $langs->load("products"); $langs->load("bills"); diff --git a/htdocs/product/stats/facture.php b/htdocs/product/stats/facture.php index 1d9f13636a9..465aa41835f 100644 --- a/htdocs/product/stats/facture.php +++ b/htdocs/product/stats/facture.php @@ -30,7 +30,7 @@ require("./pre.inc.php"); -require_once("../../facture.class.php"); +include_once(DOL_DOCUMENT_ROOT."/facture.class.php"); $langs->load("bills"); diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index 65e1900dd5b..f3d5b6039c0 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -30,7 +30,7 @@ */ require("./pre.inc.php"); -require("../../propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); $langs->load("products"); $langs->load("bills"); diff --git a/htdocs/product/stats/index.php b/htdocs/product/stats/index.php index cf496b153a6..4e7aef8a110 100644 --- a/htdocs/product/stats/index.php +++ b/htdocs/product/stats/index.php @@ -21,13 +21,15 @@ * */ -/*! \file htdocs/product/stats/index.php +/** + \file htdocs/product/stats/index.php \brief Page accueil statistiques produits \version $Revision$ */ require("./pre.inc.php"); -require("../../propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); + llxHeader(); diff --git a/htdocs/projet/commandes.php b/htdocs/projet/commandes.php index 3e3a6aba30c..502a0f79647 100644 --- a/htdocs/projet/commandes.php +++ b/htdocs/projet/commandes.php @@ -29,8 +29,8 @@ */ require("./pre.inc.php"); -require_once("../propal.class.php"); -require_once("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $langs->load("projects"); diff --git a/htdocs/projet/facture.php b/htdocs/projet/facture.php index b871c989517..ee03ae95a30 100644 --- a/htdocs/projet/facture.php +++ b/htdocs/projet/facture.php @@ -29,8 +29,8 @@ */ require("./pre.inc.php"); -require_once("../propal.class.php"); -require_once("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $langs->load("projects"); diff --git a/htdocs/projet/propal.php b/htdocs/projet/propal.php index bd5d5ee0fc1..21e1819dbf8 100644 --- a/htdocs/projet/propal.php +++ b/htdocs/projet/propal.php @@ -29,8 +29,8 @@ */ require("./pre.inc.php"); -require_once("../propal.class.php"); -require_once("../facture.class.php"); +require_once(DOL_DOCUMENT_ROOT."/propal.class.php"); +require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php"); $langs->load("projects");