@@ -92,31 +92,31 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | |
| 94 | 94 | // Prepare POST variables |
| 95 | -$post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING); |
|
| 96 | -$post_sig_response = filter_input(INPUT_POST, 'sig_response', FILTER_SANITIZE_STRING); |
|
| 97 | -$post_duo_login = filter_input(INPUT_POST, 'duo_login', FILTER_SANITIZE_STRING); |
|
| 98 | -$post_duo_data = filter_input(INPUT_POST, 'duo_data', FILTER_SANITIZE_STRING); |
|
| 95 | +$post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING); |
|
| 96 | +$post_sig_response = filter_input(INPUT_POST, 'sig_response', FILTER_SANITIZE_STRING); |
|
| 97 | +$post_duo_login = filter_input(INPUT_POST, 'duo_login', FILTER_SANITIZE_STRING); |
|
| 98 | +$post_duo_data = filter_input(INPUT_POST, 'duo_data', FILTER_SANITIZE_STRING); |
|
| 99 | 99 | |
| 100 | 100 | // Prepare superGlobal variables |
| 101 | -$session_user_language = $superGlobal->get("user_language", "SESSION"); |
|
| 102 | -$session_user_id = $superGlobal->get("user_id", "SESSION"); |
|
| 103 | -$session_user_flag = $superGlobal->get("user_language_flag", "SESSION"); |
|
| 104 | -$session_user_admin = $superGlobal->get("user_admin", "SESSION"); |
|
| 105 | -$session_user_avatar_thumb = $superGlobal->get("user_avatar_thumb", "SESSION"); |
|
| 106 | -$session_name = $superGlobal->get("name", "SESSION"); |
|
| 107 | -$session_lastname = $superGlobal->get("lastname", "SESSION"); |
|
| 108 | -$session_user_manager = $superGlobal->get("user_manager", "SESSION"); |
|
| 109 | -$session_user_read_only = $superGlobal->get("user_read_only", "SESSION"); |
|
| 110 | -$session_is_admin = $superGlobal->get("is_admin", "SESSION"); |
|
| 111 | -$session_login = $superGlobal->get("login", "SESSION"); |
|
| 112 | -$session_validite_pw = $superGlobal->get("validite_pw", "SESSION"); |
|
| 113 | -$session_nb_folders = $superGlobal->get("nb_folders", "SESSION"); |
|
| 114 | -$session_nb_roles = $superGlobal->get("nb_roles", "SESSION"); |
|
| 115 | -$session_autoriser = $superGlobal->get("autoriser", "SESSION"); |
|
| 116 | -$session_hide_maintenance = $superGlobal->get("hide_maintenance", "SESSION"); |
|
| 117 | -$session_initial_url = $superGlobal->get("initial_url", "SESSION"); |
|
| 118 | -$server_request_uri = $superGlobal->get("REQUEST_URI", "SERVER"); |
|
| 119 | -$session_nb_users_online = $superGlobal->get("nb_users_online", "SESSION"); |
|
| 101 | +$session_user_language = $superGlobal->get("user_language", "SESSION"); |
|
| 102 | +$session_user_id = $superGlobal->get("user_id", "SESSION"); |
|
| 103 | +$session_user_flag = $superGlobal->get("user_language_flag", "SESSION"); |
|
| 104 | +$session_user_admin = $superGlobal->get("user_admin", "SESSION"); |
|
| 105 | +$session_user_avatar_thumb = $superGlobal->get("user_avatar_thumb", "SESSION"); |
|
| 106 | +$session_name = $superGlobal->get("name", "SESSION"); |
|
| 107 | +$session_lastname = $superGlobal->get("lastname", "SESSION"); |
|
| 108 | +$session_user_manager = $superGlobal->get("user_manager", "SESSION"); |
|
| 109 | +$session_user_read_only = $superGlobal->get("user_read_only", "SESSION"); |
|
| 110 | +$session_is_admin = $superGlobal->get("is_admin", "SESSION"); |
|
| 111 | +$session_login = $superGlobal->get("login", "SESSION"); |
|
| 112 | +$session_validite_pw = $superGlobal->get("validite_pw", "SESSION"); |
|
| 113 | +$session_nb_folders = $superGlobal->get("nb_folders", "SESSION"); |
|
| 114 | +$session_nb_roles = $superGlobal->get("nb_roles", "SESSION"); |
|
| 115 | +$session_autoriser = $superGlobal->get("autoriser", "SESSION"); |
|
| 116 | +$session_hide_maintenance = $superGlobal->get("hide_maintenance", "SESSION"); |
|
| 117 | +$session_initial_url = $superGlobal->get("initial_url", "SESSION"); |
|
| 118 | +$server_request_uri = $superGlobal->get("REQUEST_URI", "SERVER"); |
|
| 119 | +$session_nb_users_online = $superGlobal->get("nb_users_online", "SESSION"); |
|
| 120 | 120 | |
| 121 | 121 | |
| 122 | 122 | /* DEFINE WHAT LANGUAGE TO USE */ |
@@ -236,9 +236,7 @@ discard block |
||
| 236 | 236 | <div style="float:right; margin:-10px 5px 0 0; color:#FFF;">' |
| 237 | 237 | .$LANG['index_welcome'].' <b>'.$session_name.' '.$session_lastname |
| 238 | 238 | .' ['.$session_login.']</b> - ' |
| 239 | - , $session_user_admin === '1' ? $LANG['god'] : |
|
| 240 | - ($session_user_manager === '1' ? $LANG['gestionnaire'] : |
|
| 241 | - ($session_user_read_only === '1' ? $LANG['read_only_account'] : $LANG['user']) |
|
| 239 | + , $session_user_admin === '1' ? $LANG['god'] : ($session_user_manager === '1' ? $LANG['gestionnaire'] : ($session_user_read_only === '1' ? $LANG['read_only_account'] : $LANG['user']) |
|
| 242 | 240 | ), ' '.strtolower($LANG['index_login']).'</div>'; |
| 243 | 241 | |
| 244 | 242 | echo ' |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14 | 14 | */ |
| 15 | 15 | global $LANG; |
| 16 | -$LANG = array ( |
|
| 16 | +$LANG = array( |
|
| 17 | 17 | 'error_security_level_not_reached' => 'Expected level of security not reached!', |
| 18 | 18 | 'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.', |
| 19 | 19 | 'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level', |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14 | 14 | */ |
| 15 | 15 | global $LANG; |
| 16 | -$LANG = array ( |
|
| 16 | +$LANG = array( |
|
| 17 | 17 | 'error_security_level_not_reached' => 'Expected level of security not reached!', |
| 18 | 18 | 'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.', |
| 19 | 19 | 'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level', |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14 | 14 | */ |
| 15 | 15 | global $LANG; |
| 16 | -$LANG = array ( |
|
| 16 | +$LANG = array( |
|
| 17 | 17 | 'error_security_level_not_reached' => 'Expected level of security not reached!', |
| 18 | 18 | 'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.', |
| 19 | 19 | 'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level', |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14 | 14 | */ |
| 15 | 15 | global $LANG; |
| 16 | -$LANG = array ( |
|
| 16 | +$LANG = array( |
|
| 17 | 17 | 'error_security_level_not_reached' => 'Expected level of security not reached!', |
| 18 | 18 | 'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.', |
| 19 | 19 | 'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level', |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14 | 14 | */ |
| 15 | 15 | global $LANG; |
| 16 | -$LANG = array ( |
|
| 16 | +$LANG = array( |
|
| 17 | 17 | 'error_security_level_not_reached' => 'Expected level of security not reached!', |
| 18 | 18 | 'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.', |
| 19 | 19 | 'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level', |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14 | 14 | */ |
| 15 | 15 | global $LANG; |
| 16 | -$LANG = array ( |
|
| 16 | +$LANG = array( |
|
| 17 | 17 | 'error_security_level_not_reached' => 'Expected level of security not reached!', |
| 18 | 18 | 'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.', |
| 19 | 19 | 'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level', |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14 | 14 | */ |
| 15 | 15 | global $LANG; |
| 16 | -$LANG = array ( |
|
| 16 | +$LANG = array( |
|
| 17 | 17 | 'error_security_level_not_reached' => 'Expected level of security not reached!', |
| 18 | 18 | 'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.', |
| 19 | 19 | 'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level', |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14 | 14 | */ |
| 15 | 15 | global $LANG; |
| 16 | -$LANG = array ( |
|
| 16 | +$LANG = array( |
|
| 17 | 17 | 'error_security_level_not_reached' => 'Expected level of security not reached!', |
| 18 | 18 | 'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.', |
| 19 | 19 | 'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level', |