From: kkalev Date: Tue, 2 Mar 2004 13:27:35 +0000 (+0000) Subject: In log_badlogins add a newline after every sql query so that the resulting file can... X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=1f8a989ff405122c071cbadb1421eb22b2998462;p=freeradius-dialup-admin.git In log_badlogins add a newline after every sql query so that the resulting file can be editable --- diff --git a/Changelog b/Changelog index 073b87e..9479c2f 100644 --- a/Changelog +++ b/Changelog @@ -8,6 +8,7 @@ Ver 1.68: * Close sql connections in add_badusers.php3 * Add a patch from Neil McCalden to not put spaces in the -p argument to the mysql binary. * Fix a bug in conf/config.php3. Patch from Neil McCalden +* In log_badlogins add a newline after every sql query so that the resulting file can be editable Ver 1.65: * Add a captions.conf file with a few configurable captions for now * Move the nas list to a separate file called naslist.conf diff --git a/bin/log_badlogins b/bin/log_badlogins index 5e9c6e8..648b085 100755 --- a/bin/log_badlogins +++ b/bin/log_badlogins @@ -146,7 +146,7 @@ for(;;){ $ctx->add($time); $ctx->add('badlogin'); $uniqueid = $ctx->hexdigest; - print TMP "INSERT INTO $sql_accounting_table (UserName,AcctUniqueId,NASIPAddress,NASPortId,AcctStartTime,AcctStopTime,AcctSessionTime,AcctInputOctets,AcctOutputOctets,CallingStationId,AcctTerminateCause) VALUES ('$user','$uniqueid','$addr','$port','$time','$time','0','0','0','$caller','$cause');"; + print TMP "INSERT INTO $sql_accounting_table (UserName,AcctUniqueId,NASIPAddress,NASPortId,AcctStartTime,AcctStopTime,AcctSessionTime,AcctInputOctets,AcctOutputOctets,CallingStationId,AcctTerminateCause) VALUES ('$user','$uniqueid','$addr','$port','$time','$time','0','0','0','$caller','$cause');\n"; close TMP; `$mysql -h$server $opt -u$sql_username $pass $sql_database <$tmpfile.$server`; $exit = $? >> 8;