diff --git a/html/login.php b/html/login.php index 22cca30e8..f201ecd09 100644 --- a/html/login.php +++ b/html/login.php @@ -40,7 +40,7 @@ include_once ("class_user.php"); $User=new cl_user($rep); $User->Check(); - Redirect($User->type,$_REQUEST["PHPSESSID"]); + Redirect($_REQUEST["PHPSESSID"]); } else { @@ -49,7 +49,7 @@ $User->Check(); $User=new cl_user($rep); $User->Check(); - Redirect($User->type,$_REQUEST["PHPSESSID"]); + Redirect($_REQUEST["PHPSESSID"]); // } } html_page_stop(); diff --git a/include/ac_common.php b/include/ac_common.php index 3e5c1958b..1095b33bc 100644 --- a/include/ac_common.php +++ b/include/ac_common.php @@ -254,25 +254,15 @@ function GetUserType($p_user) * Purpose : redirect following the user's profile * * parm : - * - p_profile (ac_users.use_usertype) * - php_session PHPSESSID * gen : * - none * return: none */ -function Redirect($p_profile,$php_session) { +function Redirect($php_session) { include_once("debug.php"); echo_debug(__FILE__,__LINE__,"Session is $php_session"); - - if ( $p_profile =="compta" ) { - $URL="compta_login.php"; - } else if ( $p_profile == "user") { - $URL="user_login.php"; - } - else { - echo_error ("Undefined profile"); - exit (-1); - } + $URL="user_login.php"; echo ""; }