fix codingstyle
Hanno

Hanno commited on 2019-04-10 08:52:30
Zeige 1 geänderte Dateien mit 2 Einfügungen und 1 Löschungen.

... ...
@@ -189,7 +189,8 @@ function logger($severity, $scriptname, $scope, $message)
189 189
     db_query("INSERT INTO misc.scriptlog (remote, user,scriptname,scope,message) VALUES (:remote, :user, :scriptname, :scope, :message)", $args);
190 190
 }
191 191
 
192
-function count_failed_logins() {
192
+function count_failed_logins()
193
+{
193 194
     $result = db_query("SELECT count(*) AS num FROM misc.scriptlog WHERE user IS NULL AND scriptname='session/start' AND scope='login' AND message LIKE 'wrong user data%' AND remote=:remote AND `timestamp` > NOW() - INTERVAL 10 MINUTE", array(":remote" => $_SERVER['REMOTE_ADDR']));
194 195
     $data = $result->fetch();
195 196
     DEBUG('seen '.$data['num'].' failed logins from this address within 10 minutes');
196 197