noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 19/219: Replace global $http by new httpInput


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 19/219: Replace global $http by new httpInput() to make the test of scenario working
Date: Mon, 18 Dec 2017 13:22:28 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit fe137d9d5f004088bed4d0becbf22a7bf41d5cc8
Author: Dany De Bontridder <address@hidden>
Date:   Sun Jul 23 13:17:18 2017 +0200

    Replace global $http by new httpInput() to make the test of scenario
    working
---
 include/cfgledger.inc.php  | 6 +++++-
 include/company.inc.php    | 2 +-
 include/compta_ach.inc.php | 3 ++-
 include/compta_ven.inc.php | 4 +++-
 include/param_pcmn.inc.php | 2 +-
 5 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/include/cfgledger.inc.php b/include/cfgledger.inc.php
index e3b20c2..7002f6e 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 71d9bbe..f6e5c27 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 '<div class="content">';
 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 ea42a7d..f572e61 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 be3697e..2364f25 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 e9a621c..d967f5c 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';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]