Déconnecté"; session_unset('EVOADMIN_SESS'); session_destroy(); } if (!empty($_POST['login'])) { try { $login = htmlentities(strip_tags($_POST['login']),ENT_NOQUOTES); $password = htmlentities(strip_tags($_POST['password']),ENT_NOQUOTES); $server = new LdapServer($login, $config['ldap']); $server->login($password); $_SESSION['login'] = $server->getLogin(); header("location: superadmin.php\n\n"); exit(0); } catch (Exception $e) { print ''; } } ?>
Responsive image