diff --git a/include/cfgledger.inc.php b/include/cfgledger.inc.php index e3b20c2ed..7002f6e22 100644 --- a/include/cfgledger.inc.php +++ b/include/cfgledger.inc.php @@ -36,7 +36,11 @@ require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php'; $gDossier=dossier::id(); global $cn; -global $http; + +global $g_parameter; +$http=new HttpInput(); + + $show_menu=1; $ledger=new Acc_Ledger($cn,-1); diff --git a/include/company.inc.php b/include/company.inc.php index 71d9bbe2e..f6e5c27ec 100644 --- a/include/company.inc.php +++ b/include/company.inc.php @@ -24,7 +24,7 @@ */ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis'); global $g_user; -global $http; +$http=new HttpInput(); echo '
'; require_once NOALYSS_INCLUDE.'/class/own.class.php'; if (isset($_POST['record_company'])) diff --git a/include/compta_ach.inc.php b/include/compta_ach.inc.php index ea42a7d00..f572e612d 100644 --- a/include/compta_ach.inc.php +++ b/include/compta_ach.inc.php @@ -31,7 +31,8 @@ require_once NOALYSS_INCLUDE.'/class/pre_op_ach.class.php'; require_once NOALYSS_INCLUDE.'/lib/ipopup.class.php'; $gDossier = dossier::id(); global $g_parameter; -global $http; +$http=new HttpInput(); + $cn = Dossier::connect(); //menu = show a list of ledger $str_dossier = dossier::get(); diff --git a/include/compta_ven.inc.php b/include/compta_ven.inc.php index be3697e93..2364f25f6 100644 --- a/include/compta_ven.inc.php +++ b/include/compta_ven.inc.php @@ -34,8 +34,10 @@ $gDossier=dossier::id(); $cn=Dossier::connect(); //menu = show a list of ledger $str_dossier=dossier::get(); +global $g_parameter; +$http=new HttpInput(); +$strac=$http->request('ac'); $ac="ac=".$_REQUEST['ac']; -global $g_parameter,$http; $p_msg=""; //---------------------------------------------------------------------- // Encode a new invoice diff --git a/include/param_pcmn.inc.php b/include/param_pcmn.inc.php index e9a621cfb..d967f5c82 100644 --- a/include/param_pcmn.inc.php +++ b/include/param_pcmn.inc.php @@ -26,7 +26,7 @@ require_once NOALYSS_INCLUDE.'/lib/ac_common.php'; require_once NOALYSS_INCLUDE.'/constant.php'; require_once NOALYSS_INCLUDE.'/class/dossier.class.php'; require_once NOALYSS_INCLUDE.'/lib/function_javascript.php'; -global $http; +$http=new HttpInput(); $gDossier=dossier::id(); require_once NOALYSS_INCLUDE.'/lib/database.class.php';