Explorar o código

[Web] Add IP to autodiscover log

andryyy %!s(int64=3) %!d(string=hai) anos
pai
achega
d03083f8e7
Modificáronse 2 ficheiros con 0 adicións e 4 borrados
  1. 0 3
      data/web/autodiscover.php
  2. 0 1
      data/web/js/site/debug.js

+ 0 - 3
data/web/autodiscover.php

@@ -58,7 +58,6 @@ if (empty($_SERVER['PHP_AUTH_USER']) || empty($_SERVER['PHP_AUTH_PW'])) {
       "time" => time(),
       "time" => time(),
       "ua" => $_SERVER['HTTP_USER_AGENT'],
       "ua" => $_SERVER['HTTP_USER_AGENT'],
       "user" => "none",
       "user" => "none",
-      "ip" => $_SERVER['REMOTE_ADDR'],
       "service" => "Error: must be authenticated"
       "service" => "Error: must be authenticated"
     )
     )
   );
   );
@@ -83,7 +82,6 @@ if ($login_role === "user") {
           "time" => time(),
           "time" => time(),
           "ua" => $_SERVER['HTTP_USER_AGENT'],
           "ua" => $_SERVER['HTTP_USER_AGENT'],
           "user" => $_SERVER['PHP_AUTH_USER'],
           "user" => $_SERVER['PHP_AUTH_USER'],
-          "ip" => $_SERVER['REMOTE_ADDR'],
           "service" => "Error: invalid or missing request data"
           "service" => "Error: invalid or missing request data"
         )
         )
       );
       );
@@ -138,7 +136,6 @@ if ($login_role === "user") {
         "time" => time(),
         "time" => time(),
         "ua" => $_SERVER['HTTP_USER_AGENT'],
         "ua" => $_SERVER['HTTP_USER_AGENT'],
         "user" => $_SERVER['PHP_AUTH_USER'],
         "user" => $_SERVER['PHP_AUTH_USER'],
-        "ip" => $_SERVER['REMOTE_ADDR'],
         "service" => $autodiscover_config['autodiscoverType']
         "service" => $autodiscover_config['autodiscoverType']
       )
       )
     );
     );

+ 0 - 1
data/web/js/site/debug.js

@@ -78,7 +78,6 @@ jQuery(function($){
         {"name":"time","formatter":function unix_time_format(tm) { var date = new Date(tm ? tm * 1000 : 0); return date.toLocaleDateString(undefined, {year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit"});},"title":lang.time,"style":{"width":"170px"}},
         {"name":"time","formatter":function unix_time_format(tm) { var date = new Date(tm ? tm * 1000 : 0); return date.toLocaleDateString(undefined, {year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit"});},"title":lang.time,"style":{"width":"170px"}},
         {"name":"ua","title":"User-Agent","style":{"min-width":"200px"}},
         {"name":"ua","title":"User-Agent","style":{"min-width":"200px"}},
         {"name":"user","title":"Username","style":{"min-width":"200px"}},
         {"name":"user","title":"Username","style":{"min-width":"200px"}},
-        {"name":"ip","title":"IP","style":{"min-width":"200px"}},
         {"name":"service","title":"Service"},
         {"name":"service","title":"Service"},
       ],
       ],
       "rows": $.ajax({
       "rows": $.ajax({