Chemin absolu sur les include php.

This commit is contained in:
Laurent Destailleur 2005-09-24 22:28:19 +00:00
parent 33a1002b30
commit c4bb527b03
10 changed files with 69 additions and 67 deletions

View File

@ -32,9 +32,9 @@
require_once("./pre.inc.php"); require_once("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../cactioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/cactioncomm.class.php");
require_once("../../actioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
if ($conf->webcal->enabled) require_once("../../lib/webcal.class.php"); if ($conf->webcal->enabled) require_once(DOL_DOCUMENT_ROOT."/lib/webcal.class.php");
$langs->load("companies"); $langs->load("companies");
$langs->load("commercial"); $langs->load("commercial");

View File

@ -30,8 +30,8 @@
require_once("./pre.inc.php"); require_once("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../cactioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/cactioncomm.class.php");
require_once("../../actioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
$langs->load("companies"); $langs->load("companies");
$langs->load("commercial"); $langs->load("commercial");

View File

@ -31,7 +31,7 @@
require_once("./pre.inc.php"); require_once("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../actioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
$langs->load("companies"); $langs->load("companies");

View File

@ -31,7 +31,7 @@
require_once("./pre.inc.php"); require_once("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../../actioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
// Sécurité accés client // Sécurité accés client
if ($user->societe_id > 0) if ($user->societe_id > 0)

View File

@ -42,8 +42,8 @@ $langs->load('bills');
if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT.'/project.class.php'); 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'); 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.'/propal.class.php');
require_once('../actioncomm.class.php'); require_once(DOL_DOCUMENT_ROOT.'/actioncomm.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"]; $sall=isset($_GET["sall"])?$_GET["sall"]:$_POST["sall"];

View File

@ -29,7 +29,7 @@
require_once("./pre.inc.php"); require_once("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../../actioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
$langs->load('companies'); $langs->load('companies');
$langs->load('projects'); $langs->load('projects');

View File

@ -35,11 +35,8 @@ if (! $user->rights->societe->lire)
accessforbidden(); accessforbidden();
require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once("../actioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
if ($conf->webcal->enabled) require_once(DOL_DOCUMENT_ROOT."/lib/webcal.class.php");
if ($conf->webcal->enabled) {
require("../lib/webcal.class.php");
}
$langs->load("companies"); $langs->load("companies");

View File

@ -498,7 +498,7 @@ if ($_POST['action'] == 'send' || $_POST['action'] == 'relance')
// Insertion action // Insertion action
require_once(DOL_DOCUMENT_ROOT.'/contact.class.php'); require_once(DOL_DOCUMENT_ROOT.'/contact.class.php');
include_once(DOL_DOCUMENT_ROOT.'/actioncomm.class.php'); require_once(DOL_DOCUMENT_ROOT.'/actioncomm.class.php');
$actioncomm = new ActionComm($db); $actioncomm = new ActionComm($db);
$actioncomm->type_id = $actiontypeid; $actioncomm->type_id = $actiontypeid;
$actioncomm->label = $actionmsg2; $actioncomm->label = $actionmsg2;

View File

@ -29,8 +29,8 @@
require("./pre.inc.php"); require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require("../actioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
include_once(DOL_DOCUMENT_ROOT."/facture.class.php"); require_once(DOL_DOCUMENT_ROOT."/facture.class.php");
$langs->load("companies"); $langs->load("companies");
if ($conf->facture->enabled) $langs->load("bills"); if ($conf->facture->enabled) $langs->load("bills");
@ -206,7 +206,8 @@ if ($socid > 0)
print ($societe->prefix_comm?$societe->prefix_comm:' '); print ($societe->prefix_comm?$societe->prefix_comm:' ');
print '</td>'; print '</td>';
if ($societe->client) { if ($societe->client)
{
print '<tr>'; print '<tr>';
print '<td nowrap width="100">'.$langs->trans("CustomerCode"). '</td><td colspan="3">'. $societe->code_client . '</td>'; print '<td nowrap width="100">'.$langs->trans("CustomerCode"). '</td><td colspan="3">'. $societe->code_client . '</td>';
print '</tr>'; print '</tr>';
@ -215,7 +216,8 @@ if ($socid > 0)
print '</tr>'; print '</tr>';
} }
if ($societe->fournisseur) { if ($societe->fournisseur)
{
print '<tr>'; print '<tr>';
print '<td nowrap>'.$langs->trans("SupplierCode"). '</td><td colspan="3">'. $societe->code_fournisseur . '</td>'; print '<td nowrap>'.$langs->trans("SupplierCode"). '</td><td colspan="3">'. $societe->code_fournisseur . '</td>';
print '</tr>'; print '</tr>';
@ -246,6 +248,8 @@ if ($socid > 0)
$societe->typent= $arr[$societe->typent_id]; $societe->typent= $arr[$societe->typent_id];
print '<tr><td>'.$langs->trans("Type").'</td><td>'.$societe->typent.'</td><td>'.$langs->trans("Staff").'</td><td>'.$societe->effectif.'</td></tr>'; print '<tr><td>'.$langs->trans("Type").'</td><td>'.$societe->typent.'</td><td>'.$langs->trans("Staff").'</td><td>'.$societe->effectif.'</td></tr>';
if ($societe->client == 1)
{
// Remise permanente // Remise permanente
print '<tr><td nowrap>'; print '<tr><td nowrap>';
print '<table width="100%" class="nobordernopadding"><tr><td nowrap>'; print '<table width="100%" class="nobordernopadding"><tr><td nowrap>';
@ -279,6 +283,7 @@ if ($socid > 0)
} }
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
}
print "</table>"; print "</table>";
@ -291,7 +296,7 @@ if ($socid > 0)
$MAXLIST=5; $MAXLIST=5;
$tableaushown=0; $tableaushown=0;
/* /**
* Dernieres factures * Dernieres factures
*/ */
if ($conf->facture->enabled && $user->rights->facture->lire) if ($conf->facture->enabled && $user->rights->facture->lire)
@ -338,7 +343,7 @@ if ($socid > 0)
print "</tr>\n"; print "</tr>\n";
$i++; $i++;
} }
$db->free(); $db->free($resql);
} }
else else
{ {

View File

@ -220,7 +220,7 @@ if (MAIN_SHOW_WORKBOARD == 1)
// Nbre actions à faire (en retard) // Nbre actions à faire (en retard)
if (($conf->commercial->enabled || $conf->compta->enabled) && $user->rights->actions->lire) if (($conf->commercial->enabled || $conf->compta->enabled) && $user->rights->actions->lire)
{ {
include_once("./actioncomm.class.php"); include_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
$board=new ActionComm($db); $board=new ActionComm($db);
$board->load_board($user); $board->load_board($user);
$board->warning_delay=$conf->actions->warning_delay/60/60/24; $board->warning_delay=$conf->actions->warning_delay/60/60/24;