Code Cleaning : replace include by require_once

This commit is contained in:
sparkyx 2007-12-21 08:32:23 +00:00
parent 44cf10db2f
commit 53af0fd4d8
15 changed files with 16 additions and 16 deletions

View file

@ -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();

View file

@ -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');

View file

@ -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');

View file

@ -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();

View file

@ -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');

View file

@ -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");

View file

@ -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) {

View file

@ -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.";

View file

@ -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);

View file

@ -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']) )

View file

@ -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 ?

View file

@ -396,5 +396,5 @@ if ( $action == 'search' ) {
}
echo '</DIV>';
}
include("user_update.php");
require_once("user_update.php");
?>

View file

@ -301,7 +301,7 @@ if ( $action == 'solde' ) {
echo "</div>";
}
//-----------------------------------------------------
include("user_update.php");
require_once("user_update.php");
?>

View file

@ -288,5 +288,5 @@ if ( $action == 'search' ) {
}
echo '</DIV>';
}
include("user_update.php");
require_once("user_update.php");
?>

View file

@ -373,5 +373,5 @@ if ( $action == 'voir_jrn_non_paye' ) {
echo '</div>';
}
include("user_update.php");
require_once("user_update.php");
?>