|
|
@@ -41,6 +41,15 @@ if (session::isConnect("salarie")) {
|
|
|
echo json_encode($return);
|
|
|
exit();
|
|
|
} else {
|
|
|
+ if(debug::isFile() == TRUE) {
|
|
|
+ historique::recRef("/events.check-control-emargement.php (control)");
|
|
|
+ historique::add(array(
|
|
|
+ "idType" => historique::getIdRef("ERROR"),
|
|
|
+ "idUser" => session::getId(),
|
|
|
+ "idPage" => historique::getIdRef("/events.check-control-emargement.php"),
|
|
|
+ "log" => "401 Unauthorized"
|
|
|
+ ));
|
|
|
+ }
|
|
|
header('HTTP/1.0 401 Unauthorized');
|
|
|
exit();
|
|
|
}
|