diff --git a/htdocs/comm/action/document.php b/htdocs/comm/action/document.php
index 24706eff488..6c6989dc90f 100755
--- a/htdocs/comm/action/document.php
+++ b/htdocs/comm/action/document.php
@@ -31,7 +31,7 @@
*/
require_once("./pre.inc.php");
-require_once("../../contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../cactioncomm.class.php");
require_once("../../actioncomm.class.php");
if ($conf->webcal->enabled) require_once("../../lib/webcal.class.php");
diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php
index c8622473501..24e06b37242 100644
--- a/htdocs/comm/action/fiche.php
+++ b/htdocs/comm/action/fiche.php
@@ -29,7 +29,7 @@
*/
require_once("./pre.inc.php");
-require_once("../../contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../cactioncomm.class.php");
require_once("../../actioncomm.class.php");
if ($conf->webcal->enabled) {
diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index b2c7857dd0c..cd8be29c11e 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -30,7 +30,7 @@
*/
require_once("./pre.inc.php");
-require_once("../../contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../actioncomm.class.php");
$langs->load("companies");
diff --git a/htdocs/comm/action/rapport/index.php b/htdocs/comm/action/rapport/index.php
index cc8891478cf..5958934d1c9 100644
--- a/htdocs/comm/action/rapport/index.php
+++ b/htdocs/comm/action/rapport/index.php
@@ -30,7 +30,7 @@
*/
require_once("./pre.inc.php");
-require_once("../../../contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../../actioncomm.class.php");
// Sécurité accés client
diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 52556740142..ff830ae549f 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -208,7 +208,7 @@ if ($_POST['action'] == 'send')
{
$msg='
'.$langs->trans('MailSuccessfulySent',$from,$sendto).'.
';
// Insertion action
- include_once('../contact.class.php');
+ include_once(DOL_DOCUMENT_ROOT."/contact.class.php");
$actioncomm = new ActionComm($db);
$actioncomm->type_id = $actiontypeid;
$actioncomm->label = $actionmsg2;
@@ -504,7 +504,7 @@ if ($_GET['propalid'] > 0)
if (!empty($propal->contactid))
{
print '';
- require_once(DOL_DOCUMENT_ROOT.'/contact.class.php');
+ include_once(DOL_DOCUMENT_ROOT."/contact.class.php");
$contact=new Contact($db);
$contact->fetch($propal->contactid);
print '';
diff --git a/htdocs/comm/prospect/fiche.php b/htdocs/comm/prospect/fiche.php
index da900efb2be..91629c8c5cd 100644
--- a/htdocs/comm/prospect/fiche.php
+++ b/htdocs/comm/prospect/fiche.php
@@ -28,7 +28,7 @@
*/
require_once("./pre.inc.php");
-require_once("../../contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../actioncomm.class.php");
$langs->load('companies');
diff --git a/htdocs/comm/remise.php b/htdocs/comm/remise.php
index e4c3f8930c8..8cb8b1b007d 100644
--- a/htdocs/comm/remise.php
+++ b/htdocs/comm/remise.php
@@ -28,9 +28,7 @@
*/
require_once("./pre.inc.php");
-require_once("../contact.class.php");
-//require_once("../cactioncomm.class.php");
-//require_once("../actioncomm.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
$user->getrights('propale');
$user->getrights('commande');
diff --git a/htdocs/compta/clients.php b/htdocs/compta/clients.php
index 8dbfb4e9dcb..fd87776e8db 100644
--- a/htdocs/compta/clients.php
+++ b/htdocs/compta/clients.php
@@ -33,7 +33,7 @@ require_once("./pre.inc.php");
if (!$user->rights->societe->lire)
accessforbidden();
-require_once("../contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../actioncomm.class.php");
if ($conf->webcal->enabled) {
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 195ec47f843..bae2281cbe0 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -487,7 +487,7 @@ if ($_POST["action"] == 'send' || $_POST["action"] == 'relance')
$msg=' '.$langs->trans("MailSuccessfulySent",$from,$sendto).'. ';
// Insertion action
- include_once("../contact.class.php");
+ require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
include_once("../actioncomm.class.php");
$actioncomm = new ActionComm($db);
$actioncomm->type_id = $actiontypeid;
diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php
index 54cf68f6c7e..c32604cb7ef 100644
--- a/htdocs/compta/fiche.php
+++ b/htdocs/compta/fiche.php
@@ -28,7 +28,7 @@
*/
require("./pre.inc.php");
-require("../contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require("../actioncomm.class.php");
include_once(DOL_DOCUMENT_ROOT."/facture.class.php");
diff --git a/htdocs/contact/exportimport.php b/htdocs/contact/exportimport.php
index 6d39f023548..42c4d159fcb 100644
--- a/htdocs/contact/exportimport.php
+++ b/htdocs/contact/exportimport.php
@@ -27,7 +27,7 @@
*/
require("./pre.inc.php");
-require("../contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
$langs->load("companies");
diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php
index ad2a922cc7d..abcd1a6c648 100644
--- a/htdocs/contact/fiche.php
+++ b/htdocs/contact/fiche.php
@@ -29,8 +29,8 @@
*/
require("./pre.inc.php");
-require_once("../contact.class.php");
-require (DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php");
$langs->load("companies");
$langs->load("users");
diff --git a/htdocs/contact/info.php b/htdocs/contact/info.php
index de25c976e19..ba3e706b33d 100644
--- a/htdocs/contact/info.php
+++ b/htdocs/contact/info.php
@@ -29,7 +29,7 @@
*/
require("./pre.inc.php");
-require("../contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
$langs->load("companies");
diff --git a/htdocs/contact/perso.php b/htdocs/contact/perso.php
index f2593db4459..7a3c7f984c8 100644
--- a/htdocs/contact/perso.php
+++ b/htdocs/contact/perso.php
@@ -28,8 +28,8 @@
*/
require("./pre.inc.php");
-require("../contact.class.php");
-require (DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php");
$langs->load("companies");
diff --git a/htdocs/contact/vcard.php b/htdocs/contact/vcard.php
index 792fc45b755..86d6da46bd2 100644
--- a/htdocs/contact/vcard.php
+++ b/htdocs/contact/vcard.php
@@ -29,8 +29,8 @@
*/
require("./pre.inc.php");
-require("../contact.class.php");
-require (DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php");
$contact = new Contact($db);
diff --git a/htdocs/contrat/contact.php b/htdocs/contrat/contact.php
index 9f47f89ad74..6079f3e7bbe 100644
--- a/htdocs/contrat/contact.php
+++ b/htdocs/contrat/contact.php
@@ -27,8 +27,8 @@
*/
require ("./pre.inc.php");
-require_once (DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
-require_once (DOL_DOCUMENT_ROOT."/contact.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
$langs->load("contracts");
diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php
index 9e9a41f946d..6e86b4cd7d2 100644
--- a/htdocs/fourn/commande/index.php
+++ b/htdocs/fourn/commande/index.php
@@ -29,13 +29,11 @@
*/
require("./pre.inc.php");
-require_once DOL_DOCUMENT_ROOT."/contact.class.php";
+require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
llxHeader('',"Commandes Fournisseurs");
-/*
- * Sécurité accés client
- */
+// Sécurité accés client
if ($user->societe_id > 0)
{
$action = '';
diff --git a/htdocs/societe.php b/htdocs/societe.php
index 79ed4739c14..ec521d402c8 100644
--- a/htdocs/societe.php
+++ b/htdocs/societe.php
@@ -32,9 +32,7 @@ require_once("./pre.inc.php");
if (!$user->rights->societe->lire)
accessforbidden();
-require_once("./contact.class.php");
-//require_once("./cactioncomm.class.php");
-//require_once("./actioncomm.class.php");
+include_once(DOL_DOCUMENT_ROOT."/contact.class.php");
$langs->load("companies");
$langs->load("customers");
|