Nettoyage du code
This commit is contained in:
parent
2c0c7771ca
commit
dad0dff3fb
@ -25,8 +25,6 @@ require("./pre.inc.php3");
|
||||
*
|
||||
*/
|
||||
|
||||
$db = new Db();
|
||||
|
||||
llxHeader();
|
||||
|
||||
/*
|
||||
|
||||
@ -33,7 +33,6 @@ td.border { border: 1px solid #000000}
|
||||
|
||||
|
||||
<?PHP
|
||||
$db = new Db();
|
||||
|
||||
print_titre("Résultat $year");
|
||||
|
||||
|
||||
@ -33,8 +33,6 @@ if ($user->societe_id > 0)
|
||||
*/
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
print_titre("Chiffre d'affaire par société");
|
||||
|
||||
/*
|
||||
|
||||
@ -307,7 +307,6 @@ if ($user->societe_id > 0)
|
||||
$socidp = $user->societe_id;
|
||||
}
|
||||
|
||||
$db = new Db();
|
||||
|
||||
$cyear = strftime ("%Y", time());
|
||||
|
||||
|
||||
@ -25,8 +25,6 @@ require("./pre.inc.php");
|
||||
*
|
||||
*/
|
||||
|
||||
$db = new Db();
|
||||
|
||||
llxHeader();
|
||||
|
||||
/*
|
||||
|
||||
@ -294,8 +294,6 @@ function ppt ($db, $year, $socidp)
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
/*
|
||||
* Sécurité accés client
|
||||
*/
|
||||
|
||||
@ -25,8 +25,6 @@ require("./pre.inc.php");
|
||||
*
|
||||
*/
|
||||
|
||||
$db = new Db();
|
||||
|
||||
llxHeader();
|
||||
|
||||
/*
|
||||
|
||||
@ -76,7 +76,7 @@ function pt ($db, $sql, $title) {
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($sortfield == "")
|
||||
{
|
||||
$sortfield="lower(p.label)";
|
||||
|
||||
@ -99,8 +99,6 @@ function pt ($db, $sql, $date) {
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
$tva = new Tva($db);
|
||||
|
||||
print_titre( "TVA Solde : " . price($tva->solde($year)) . " euros");
|
||||
|
||||
@ -28,8 +28,6 @@ require("../../tva.class.php3");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$db = new Db();
|
||||
|
||||
$tva = new Tva($db);
|
||||
|
||||
print_titre("Réglements TVA");
|
||||
|
||||
@ -32,7 +32,7 @@ if ($user->societe_id > 0)
|
||||
}
|
||||
|
||||
llxHeader();
|
||||
$db = new Db();
|
||||
|
||||
|
||||
if ($sortorder == "")
|
||||
{
|
||||
|
||||
@ -110,7 +110,7 @@ if ($HTTP_POST_VARS["action"] == "set")
|
||||
$conf->db->name = $dolibarr_main_db_name;
|
||||
$conf->db->user = $dolibarr_main_db_user;
|
||||
$conf->db->pass = $dolibarr_main_db_pass;
|
||||
$db = new Db();
|
||||
$db = new DoliDb();
|
||||
|
||||
$sql[0] = "REPLACE INTO llx_const SET name = 'FAC_OUTPUTDIR', value='".$dolibarr_main_document_root."/document/facture', visible=0, type='chaine'";
|
||||
|
||||
|
||||
@ -70,7 +70,7 @@ require (DOL_DOCUMENT_ROOT ."/includes/fpdf/fpdf.php");
|
||||
|
||||
define('FPDF_FONTPATH',DOL_DOCUMENT_ROOT .'/includes/fpdf/font/');
|
||||
|
||||
$db = new Db();
|
||||
$db = new DoliDb();
|
||||
|
||||
$user = new User($db);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user