stany.ferer 1 anno fa
parent
commit
ece7eb27b2
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      core/json/events.check-control-emargement.php

+ 9 - 0
core/json/events.check-control-emargement.php

@@ -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();
 }