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 '