Disable multi-account detection as IPv6 are not handle properly

This commit is contained in:
nemunaire 2020-11-15 17:27:39 +01:00
parent a5586af0ba
commit 96ed0d7787

View File

@ -248,17 +248,17 @@ if ((isset($_GET['l']) && isset($_GET['p'])) || (isset($_POST['HB_login']) && is
$SESS->values['idAsteroide'] = 0; $SESS->values['idAsteroide'] = 0;
//Si on détecte le multi-compte, on interdit l'accès au panneau d'admin //Si on détecte le multi-compte, on interdit l'accès au panneau d'admin
if (empty($multi)) //if (empty($multi))
$SESS->level = 1; // $SESS->level = 1;
else //else
$SESS->level = $resultat['auth_level']; $SESS->level = $resultat['auth_level'];
$SESS->put($resultat['id']); $SESS->put($resultat['id']);
if (!empty($resultat['last_visite']) && $message['time'] > $resultat['last_visite']) if (!empty($resultat['last_visite']) && $message['time'] > $resultat['last_visite'])
redirection('./'.$VAR['first_page'].'?p=demarrage'); redirection('./'.$VAR['first_page'].'?p=demarrage');
elseif (empty($multi)) //elseif (empty($multi))
redirection('./'.$VAR['first_page'].'?p=avertmulti'); // redirection('./'.$VAR['first_page'].'?p=avertmulti');
else else
redirection('./'.$VAR['first_page'].'?p=accueil'); redirection('./'.$VAR['first_page'].'?p=accueil');
} }