log des connexions à la console d'admin

This commit is contained in:
Jérôme Bousquié
2018-12-06 10:56:21 +01:00
parent fd242e2e7b
commit ad352fb619
5 changed files with 83 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
<?php
// Formulaire d'authentification simple
include_once('winlog_admin_conf.php');
include_once('connexions.php');
include_once('password.php');
// on sort immédiatement si login.php est appelé hors du auth_mode simple
@@ -15,6 +16,7 @@ $password = $_POST['password'];
if (array_key_exists($username, $passwords) && $password == $passwords[$username]) {
session_start();
$_SESSION['username'] = $username;
LogAdminConnexion($username);
header('Location: '.$winlog_url);
exit();
}