From 09d65f653727973c78ca2c45b0e2c01a590a05d1 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Fri, 21 Dec 2007 09:22:03 +0000 Subject: [PATCH] Code Cleaning : get-> load, GetWWW ==> get_www --- html/annulation.php | 4 ++-- html/bal_csv.php | 2 +- html/bilan.php | 2 +- html/budget.php | 2 +- html/central.php | 2 +- html/commercial.php | 4 ++-- html/compta.php | 2 +- html/comptanalytic.php | 6 +++--- html/ecrit_ouv.php | 4 ++-- html/export_ouv.php | 2 +- html/fiche.php | 4 ++-- html/fiche_csv.php | 2 +- html/fiche_new.php | 2 +- html/fiche_search.php | 2 +- html/form.php | 2 +- html/import.php | 8 +++---- html/jrn_add.php | 2 +- html/jrn_csv.php | 2 +- html/jrn_detail.php | 2 +- html/jrn_pdf.php | 2 +- html/jrn_update.php | 2 +- html/line_update.php | 2 +- html/listing_client.php | 2 +- html/parametre.php | 2 +- html/pcmn_update.php | 2 +- html/print_balance.php | 6 +++--- html/sec_pdf.php | 4 ++-- html/show_fiche.php | 2 +- html/user_advanced.php | 2 +- html/user_jrn.php | 2 +- html/user_sec.php | 4 ++-- include/ac_common.php | 4 ++-- include/action.inc.php | 2 +- include/admin.inc.php | 2 +- include/balance.inc.php | 8 +++---- include/bank.inc.php | 24 ++++++++++----------- include/bud_card.inc.php | 6 +++--- include/bud_hypo.inc.php | 6 +++--- include/ca_group.inc.php | 2 +- include/ca_od.inc.php | 6 +++--- include/ca_pa.inc.php | 4 ++-- include/check_priv.php | 6 +++--- include/class_acc_ledger.php | 4 ++-- include/class_acc_operation.php | 2 +- include/class_anc_account.php | 2 +- include/class_anc_group.php | 4 ++-- include/class_anc_group_operation.php | 4 ++-- include/class_anc_operation.php | 2 +- include/class_bud_card.php | 6 +++--- include/class_bud_hypo.php | 2 +- include/class_customer.php | 2 +- include/class_supplier.php | 2 +- include/class_user.php | 30 +++++++++++++-------------- include/client.inc.php | 2 +- include/depense.inc.php | 26 +++++++++++------------ include/facture.inc.php | 24 ++++++++++----------- include/fiche.inc.php | 4 ++-- include/import_inc.php | 2 +- include/impress.inc.php | 2 +- include/impress_bilan.inc.php | 2 +- include/impress_fiche.inc.php | 2 +- include/impress_jrn.inc.php | 2 +- include/impress_poste.inc.php | 2 +- include/impress_rapport.inc.php | 2 +- include/pref.inc.php | 4 ++-- include/preference.php | 4 ++-- include/quick_writing.inc.php | 4 ++-- include/stock.inc.php | 14 ++++++------- include/supplier.inc.php | 2 +- include/user_action_ach.php | 26 +++++++++++------------ include/user_action_fin.php | 22 ++++++++++---------- include/user_action_gl.php | 6 +++--- include/user_action_ods.php | 24 ++++++++++----------- include/user_action_ven.php | 26 +++++++++++------------ include/user_common.php | 2 +- include/user_form_ach.php | 6 +++--- include/user_form_fin.php | 6 +++--- include/user_form_ods.php | 4 ++-- include/user_form_ven.php | 6 +++--- 79 files changed, 222 insertions(+), 222 deletions(-) diff --git a/html/annulation.php b/html/annulation.php index 529746450..c39911f1b 100644 --- a/html/annulation.php +++ b/html/annulation.php @@ -117,8 +117,8 @@ return; } if ($p_id != -1 ) { // A // userPref contient la periode par default - $userPref=$User->GetPeriode($cn); - list ($l_date_start,$l_date_end)=GetPeriode($cn,$userPref); + $userPref=$User->get_periode($cn); + list ($l_date_start,$l_date_end)=get_periode($cn,$userPref); // Periode fermée if ( PeriodeClosed ($cn,$userPref)=='t' ) diff --git a/html/bal_csv.php b/html/bal_csv.php index 8d9424058..2948740e3 100644 --- a/html/bal_csv.php +++ b/html/bal_csv.php @@ -36,7 +36,7 @@ $cn=DbConnect($gDossier); require_once ('class_user.php'); $User=new cl_user(DbConnect()); $User->Check(); -if ( $User->CheckAction($cn,BALANCE) == 0) +if ( $User->check_action($cn,BALANCE) == 0) { NoAccess(); exit; diff --git a/html/bilan.php b/html/bilan.php index d24bfdfff..e9553b3c2 100644 --- a/html/bilan.php +++ b/html/bilan.php @@ -40,7 +40,7 @@ $User->Check(); // TODO a specific level of security for the "bilan" ??? // Change must be done here if ( $User->admin == 0 ) { - if ($User->CheckAction($cn,IMP) + if ($User->check_action($cn,IMP) ==0 ) { diff --git a/html/budget.php b/html/budget.php index ce873da22..5d2203ff4 100644 --- a/html/budget.php +++ b/html/budget.php @@ -84,7 +84,7 @@ echo ''; $cn=DbConnect($gDossier); /*! \todo module budget add the security - *$User->AccessRequest($cn,BUDGET); + *$User->can_request($cn,BUDGET); */ //----------------------------------------------------- // p_action == hypo diff --git a/html/central.php b/html/central.php index d93e1c803..e9dc0d92f 100644 --- a/html/central.php +++ b/html/central.php @@ -49,7 +49,7 @@ include_once("central_inc.php"); echo '
'; echo ShowMenuAdvanced("central.php?".dossier::get()); echo '
'; -$User->AccessRequest($cn,CENTRALIZE); +$User->can_request($cn,CENTRALIZE); diff --git a/html/commercial.php b/html/commercial.php index 62a4daf51..ef04c4017 100644 --- a/html/commercial.php +++ b/html/commercial.php @@ -109,7 +109,7 @@ echo ShowItem(array( echo ''; $cn=DbConnect($gDossier); -$User->AccessRequest($cn,SEC_GESTION); +$User->can_request($cn,SEC_GESTION); echo JS_VIEW_JRN_MODIFY; echo JS_AJAX_FICHE; @@ -178,7 +178,7 @@ if ( $p_action=='quick_writing') { // Impression if ( $p_action == 'impress') { - if ( $User->CheckAction($cn,IMP) == 0) + if ( $User->check_action($cn,IMP) == 0) { NoAccess(); exit; diff --git a/html/compta.php b/html/compta.php index fbfbd883e..2fc54c548 100644 --- a/html/compta.php +++ b/html/compta.php @@ -52,7 +52,7 @@ echo ''; // call impress sub-menu if ( $action == 'impress' ) { - $User->AccessRequest($cn,IMP) ; + $User->can_request($cn,IMP) ; require_once('impress.inc.php'); } diff --git a/html/comptanalytic.php b/html/comptanalytic.php index 733c92238..b0a9cd035 100644 --- a/html/comptanalytic.php +++ b/html/comptanalytic.php @@ -64,15 +64,15 @@ if ( isset ($_REQUEST['p_action'])) switch ($_REQUEST['p_action']) { case 'ca_pa': - $User->AccessRequest($cn,CA_ACCESS); + $User->can_request($cn,CA_ACCESS); $def=0; break; case 'ca_od': - $User->AccessRequest($cn,CA_ODS); + $User->can_request($cn,CA_ODS); $def=1; break; case 'ca_imp': - $User->AccessRequest($cn,CA_IMPRESSION); + $User->can_request($cn,CA_IMPRESSION); $def=2; break; case 'ca_groupe': diff --git a/html/ecrit_ouv.php b/html/ecrit_ouv.php index 757e360fa..f6c393c51 100644 --- a/html/ecrit_ouv.php +++ b/html/ecrit_ouv.php @@ -47,7 +47,7 @@ echo ''; echo ShowMenuAdvanced(8); -$User->AccessRequest($cn,EXP_IMP_ECR); +$User->can_request($cn,EXP_IMP_ECR); echo ''; echo ShowMenuAdvanced(7); -$User->AccessRequest($cn,IMP_BQE); +$User->can_request($cn,IMP_BQE); echo JS_AJAX_FICHE; echo ''; $cn=DbConnect($gDossier); -$User->AccessRequest($cn,GJRN); +$User->can_request($cn,GJRN); echo JS_SEARCH_POSTE; diff --git a/html/jrn_csv.php b/html/jrn_csv.php index 728e33255..dc6ab7a09 100644 --- a/html/jrn_csv.php +++ b/html/jrn_csv.php @@ -38,7 +38,7 @@ $rep=DbConnect(); require_once ('class_user.php'); $User=new cl_user($rep); $User->Check(); -if ( $User->CheckAction($cn,IMP) == 0 || +if ( $User->check_action($cn,IMP) == 0 || $User->AccessJrn($cn,$_GET['jrn_id']) == false){ /* Cannot Access */ NoAccess(); diff --git a/html/jrn_detail.php b/html/jrn_detail.php index 8f883677c..f9589ee49 100644 --- a/html/jrn_detail.php +++ b/html/jrn_detail.php @@ -44,7 +44,7 @@ echo ''; include_once("check_priv.php"); $cn=DbConnect($gDossier); -$User->AccessRequest($cn,GJRN); +$User->can_request($cn,GJRN); // Javascript echo JS_SEARCH_POSTE; diff --git a/html/jrn_pdf.php b/html/jrn_pdf.php index 746d8b07e..86a20fa03 100644 --- a/html/jrn_pdf.php +++ b/html/jrn_pdf.php @@ -55,7 +55,7 @@ $User=new cl_user(DbConnect()); $User->Check(); // Security -if ($User->CheckAction($cn,IMP) == 0 || +if ($User->check_action($cn,IMP) == 0 || $User->AccessJrn($cn,$_GET['jrn_id']) == false){ /* Cannot Access */ NoAccess(); diff --git a/html/jrn_update.php b/html/jrn_update.php index 05271d30c..2b5e96b79 100644 --- a/html/jrn_update.php +++ b/html/jrn_update.php @@ -50,7 +50,7 @@ $cn=DbConnect($gDossier); echo '
'; echo ShowMenuAdvanced("jrn_update.php?".dossier::get()); echo '
'; -$User->AccessRequest($cn,GJRN); +$User->can_request($cn,GJRN); echo '