stany.ferer hace 1 año
padre
commit
ece7eb27b2
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  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();
 }