Code Cleaning : replace include by require_once
This commit is contained in:
parent
44cf10db2f
commit
53af0fd4d8
15 changed files with 16 additions and 16 deletions
|
|
@ -35,7 +35,7 @@ if ( isset ($_REQUEST['with_amount'])) include_once("class_acc_account.php");
|
|||
$cn=DbConnect($gDossier);
|
||||
|
||||
$rep=DbConnect();
|
||||
include ('class_user.php');
|
||||
require_once ('class_user.php');
|
||||
$User=new cl_user($rep);
|
||||
$User->Check();
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
include_once("ac_common.php");
|
||||
include_once ("postgres.php");
|
||||
include ('class_user.php');
|
||||
include("class_rapport.php");
|
||||
include("impress_inc.php");
|
||||
require_once("class_rapport.php");
|
||||
require_once("impress_inc.php");
|
||||
header('Content-type: application/csv');
|
||||
header('Content-Disposition: attachment;filename="rapport.csv"',FALSE);
|
||||
require_once('class_dossier.php');
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
include_once("ac_common.php");
|
||||
include_once ("postgres.php");
|
||||
include ('class_user.php');
|
||||
include("class_acc_account.php");
|
||||
require_once("class_acc_account.php");
|
||||
header('Content-type: application/csv');
|
||||
header('Content-Disposition: attachment;filename="poste.csv"',FALSE);
|
||||
require_once('class_dossier.php');
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ include_once("ac_common.php");
|
|||
include_once("postgres.php");
|
||||
include_once("class.ezpdf.php");
|
||||
include_once("impress_inc.php");
|
||||
include("poste.php");
|
||||
require_once("poste.php");
|
||||
require_once ('header_print.php');
|
||||
require_once('class_dossier.php');
|
||||
$gDossier=dossier::id();
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
include_once("ac_common.php");
|
||||
include_once ("postgres.php");
|
||||
include ('class_user.php');
|
||||
include("class_fiche.php");
|
||||
require_once("class_fiche.php");
|
||||
header('Content-type: application/csv');
|
||||
header('Content-Disposition: attachment;filename="poste.csv"',FALSE);
|
||||
require_once('class_dossier.php');
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
require_once('class_dossier.php');
|
||||
include_once("ac_common.php");
|
||||
include("user_menu.php");
|
||||
require_once("user_menu.php");
|
||||
include_once ("constant.php");
|
||||
include_once("jrn.php");
|
||||
include_once("user_common.php");
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
include_once("postgres.php");
|
||||
include_once("class.ezpdf.php");
|
||||
include_once("impress_inc.php");
|
||||
include("poste.php");
|
||||
require_once("poste.php");
|
||||
echo_debug('send_poste_pdf.php',__LINE__,"imp pdf journaux");
|
||||
$cn=DbConnect($g_dossier);
|
||||
foreach ($_POST as $key=>$element) {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ StartSql($p_cn);
|
|||
|
||||
|
||||
// include the right format for CSV --> given by the <form
|
||||
include($p_format_csv);
|
||||
require_once($p_format_csv);
|
||||
|
||||
|
||||
echo "Importation terminée.";
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ $gDossier=dossier::id();
|
|||
// after in pdf or cvs
|
||||
//-----------------------------------------------------
|
||||
if ( isset( $_POST['bt_html'] ) ) {
|
||||
include("class_acc_ledger.php");
|
||||
require_once("class_acc_ledger.php");
|
||||
$p_cent=( isset ( $_POST['cent']) )?'on':'off';
|
||||
// $POST=from_periode, to_periode, jrn_id, cent
|
||||
$d=var_export($_POST,true);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ include_once("class_widget.php");
|
|||
// after in pdf or cvs
|
||||
//-----------------------------------------------------
|
||||
if ( isset( $_POST['bt_html'] ) ) {
|
||||
include("class_acc_account.php");
|
||||
require_once("class_acc_account.php");
|
||||
$go=0;
|
||||
// we ask a poste_id
|
||||
if ( strlen(trim($_POST['poste_id'])) != 0 && isNumber($_POST['poste_id']) )
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ include_once("class_widget.php");
|
|||
// after in pdf or cvs
|
||||
//-----------------------------------------------------
|
||||
if ( isset( $_GET['bt_html'] ) ) {
|
||||
include("class_rapport.php");
|
||||
require_once("class_rapport.php");
|
||||
$Form=new rapport($cn,$_GET['form_id']);
|
||||
$Form->get_name();
|
||||
// step asked ?
|
||||
|
|
|
|||
|
|
@ -396,5 +396,5 @@ if ( $action == 'search' ) {
|
|||
}
|
||||
echo '</DIV>';
|
||||
}
|
||||
include("user_update.php");
|
||||
require_once("user_update.php");
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ if ( $action == 'solde' ) {
|
|||
echo "</div>";
|
||||
}
|
||||
//-----------------------------------------------------
|
||||
include("user_update.php");
|
||||
require_once("user_update.php");
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -288,5 +288,5 @@ if ( $action == 'search' ) {
|
|||
}
|
||||
echo '</DIV>';
|
||||
}
|
||||
include("user_update.php");
|
||||
require_once("user_update.php");
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -373,5 +373,5 @@ if ( $action == 'voir_jrn_non_paye' ) {
|
|||
echo '</div>';
|
||||
}
|
||||
|
||||
include("user_update.php");
|
||||
require_once("user_update.php");
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue