Very minor logging change in rslight-lib.php

This commit is contained in:
Retro_Guy 2021-03-28 03:15:57 -07:00
parent 0ff1dfb4d9
commit fdf56da24f
1 changed files with 1 additions and 2 deletions

View File

@ -43,13 +43,12 @@ set_time_limit(0);
continue; continue;
} }
if(stripos($buf, 'AUTHINFO PASS') !== false) { if(stripos($buf, 'AUTHINFO PASS') !== false) {
file_put_contents($logfile, "\n".format_log_date()." AUTHINFO PASS (hidden)", FILE_APPEND); file_put_contents($logfile, "\n".format_log_date()." ".$client." AUTHINFO PASS (hidden)", FILE_APPEND);
} else { } else {
file_put_contents($logfile, "\n".format_log_date()." ".$client." ".$buf, FILE_APPEND); file_put_contents($logfile, "\n".format_log_date()." ".$client." ".$buf, FILE_APPEND);
} }
$command = explode(' ', $buf); $command = explode(' ', $buf);
$command[0] = strtolower($command[0]); $command[0] = strtolower($command[0]);
//echo "0:".$command[0]." 1:".$command[1]." 2:".$command[2]." 3:".$command[3]."\r\n";
if(isset($command[1])) { if(isset($command[1])) {
$command[1] = strtolower($command[1]); $command[1] = strtolower($command[1]);
} }