]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
In log_badlogins add a newline after every sql query so that the resulting file can...
authorkkalev <kkalev>
Tue, 2 Mar 2004 13:27:35 +0000 (13:27 +0000)
committerkkalev <kkalev>
Tue, 2 Mar 2004 13:27:35 +0000 (13:27 +0000)
Changelog
bin/log_badlogins

index 073b87ecdbaa29c7182593c5a93dde5d5409556b..9479c2f7b75b59e08aab6c59008d29c17fc55e5b 100644 (file)
--- 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
index 5e9c6e84e1942b432a9616ca6209d66e89fefcd2..648b085cc220560ee4717dc33ddb46219e098fe8 100755 (executable)
@@ -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;