diff --git a/include/lib/user_menu.php b/include/lib/user_menu.php index b3dc5fa2c..6444cb3c7 100644 --- a/include/lib/user_menu.php +++ b/include/lib/user_menu.php @@ -27,52 +27,6 @@ require_once NOALYSS_INCLUDE.'/lib/idate.class.php'; require_once NOALYSS_INCLUDE.'/lib/icard.class.php'; require_once NOALYSS_INCLUDE.'/lib/ispan.class.php'; - - - -/*! - * \brief Show the menu for the card management - * - * \param $p_dossier dossier 1 - * - * - * - * \return nothing - */ -function ShowMenuFiche($p_dossier) -{ - $cn=new Database($p_dossier); - $mod="&ac=".$_REQUEST['ac']; - $str_dossier=dossier::get().$mod; - echo ''; -} /*! MenuAdmin */ /* \brief show the menu for user/database management /* @@ -82,11 +36,14 @@ function ShowMenuFiche($p_dossier) function MenuAdmin() { $def=-1; + $http=new HttpInput(); + if (isset($_REQUEST['UID'])) $def=0; if ( isset ($_REQUEST['action'])) { - switch ($_REQUEST['action']) + $action=$http->request('action'); + switch ($action) { case 'user_mgt': $def=0; @@ -163,7 +120,8 @@ function MenuAdmin() function menu_acc_plan($p_start=1) { - $base="?ac=".$_REQUEST['ac']; + $http=new HttpInput(); + $base="?ac=".$http->request('ac'); $str_dossier="&".dossier::get(); for ($i=0;$i<10;$i++) { $class[$i]="tabs";} $class[$p_start]="tabs_selected";