Plugin Directory

Changeset 428626


Ignore:
Timestamp:
08/25/2011 11:17:44 AM (15 years ago)
Author:
johanee
Message:

tag 1.6.2, fix bug with log not working after being cleared, update working copy

Location:
limit-login-attempts
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • limit-login-attempts/tags/1.6.2/limit-login-attempts-es_ES.po

    r160010 r428626  
    88"Project-Id-Version: limit-login-attempts 1.3\n"
    99"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
    10 "POT-Creation-Date: 2009-01-28 17:17+0000\n"
    11 "PO-Revision-Date: 2009-07-25 08:07-0300\n"
    12 "Last-Translator: Marcelo Pedra <marcelo@ampm-soluciones.com.ar>\n"
     10"POT-Creation-Date: 2011-02-17 15:08:09+00:00\n"
     11"PO-Revision-Date: 2011-02-20 09:24-0300\n"
     12"Last-Translator: Marcelo Pedra <marcelo@marcelopedra.com.ar>\n"
    1313"Language-Team: Español <marcelo@ampm-soluciones.com.ar>\n"
    1414"MIME-Version: 1.0\n"
     
    1919"X-Poedit-Country: ARGENTINA\n"
    2020
    21 #: limit-login-attempts.php:372
    22 #, php-format
     21#: limit-login-attempts.php:474
    2322msgid "%d hour"
    2423msgid_plural "%d hours"
     
    2625msgstr[1] "%d horas"
    2726
    28 #: limit-login-attempts.php:378
    29 #, php-format
     27#: limit-login-attempts.php:480
    3028msgid "%d minute"
    3129msgid_plural "%d minutes"
     
    3331msgstr[1] "%d minutos"
    3432
    35 #: limit-login-attempts.php:381
    36 #, php-format
     33#: limit-login-attempts.php:485
    3734msgid "[%s] Too many failed login attempts"
    3835msgstr "[%s] Demasiados intentos de acceso fallidos"
    3936
    40 #: limit-login-attempts.php:383
    41 #, php-format
     37#: limit-login-attempts.php:487
    4238msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
    4339msgstr "%d intentos de acceso fallidos (%d bloqueo(s)) desde la IP: %s"
    4440
    45 #: limit-login-attempts.php:387
    46 #, php-format
     41#: limit-login-attempts.php:491
    4742msgid "Last user attempted: %s"
    4843msgstr "Ultimo usuario probado: %s"
    4944
    50 #: limit-login-attempts.php:390
    51 #, php-format
     45#: limit-login-attempts.php:494
    5246msgid "IP was blocked for %s"
    5347msgstr "La IP se ha bloqueado para %s"
    5448
    55 #: limit-login-attempts.php:445
     49#: limit-login-attempts.php:551
    5650msgid "<strong>ERROR</strong>: Too many failed login attempts."
    5751msgstr "<strong>ERROR</strong>: Demasiados intentos de acceso fallidos."
    5852
    59 #: limit-login-attempts.php:449
     53#: limit-login-attempts.php:555
    6054msgid "Please try again later."
    6155msgstr "Por favor inténtelo más tarde."
    6256
    63 #: limit-login-attempts.php:456
    64 #, php-format
     57#: limit-login-attempts.php:562
    6558msgid "Please try again in %d hour."
    6659msgid_plural "Please try again in %d hours."
     
    6861msgstr[1] "Por favor inténtelo dentro de %d horas."
    6962
    70 #: limit-login-attempts.php:458
    71 #, php-format
     63#: limit-login-attempts.php:564
    7264msgid "Please try again in %d minute."
    7365msgid_plural "Please try again in %d minutes."
     
    7567msgstr[1] "Por favor inténtelo dentro de %d minutos."
    7668
    77 #: limit-login-attempts.php:487
    78 #, php-format
     69#: limit-login-attempts.php:593
    7970msgid "<strong>%d</strong> attempt remaining."
    8071msgid_plural "<strong>%d</strong> attempts remaining."
     
    8273msgstr[1] "Le quedan <strong>%d</strong> intentos más."
    8374
    84 #: limit-login-attempts.php:551
     75#: limit-login-attempts.php:658
    8576msgid "<strong>ERROR</strong>: Incorrect username or password."
    8677msgstr "<strong>ERROR</strong>: Nombre de usuario o contraseña incorrectos."
    8778
    88 #: limit-login-attempts.php:714
    89 msgid "IP|Internet address"
    90 msgstr "IP|Dirección de Internet"
    91 
    92 #: limit-login-attempts.php:714
     79#: limit-login-attempts.php:826
     80msgctxt "Internet address"
     81msgid "IP"
     82msgstr "IP"
     83
     84#: limit-login-attempts.php:826
    9385msgid "Tried to log in as"
    9486msgstr "Intentó ingresar como"
    9587
    96 #: limit-login-attempts.php:719
    97 #, php-format
     88#: limit-login-attempts.php:831
    9889msgid "%d lockout"
    9990msgid_plural "%d lockouts"
     
    10192msgstr[1] "%d bloqueos"
    10293
    103 #: limit-login-attempts.php:743
     94#: limit-login-attempts.php:860
    10495msgid "Cleared IP log"
    10596msgstr "Direcciones liberadas"
    10697
    107 #: limit-login-attempts.php:751
     98#: limit-login-attempts.php:868
    10899msgid "Reset lockout count"
    109100msgstr "Reiniciar contador de bloqueos"
    110101
    111 #: limit-login-attempts.php:759
     102#: limit-login-attempts.php:876
    112103msgid "Cleared current lockouts"
    113104msgstr "Bloqueos actuales liberados"
    114105
    115 #: limit-login-attempts.php:788
     106#: limit-login-attempts.php:905
    116107msgid "Options changed"
    117108msgstr "Opciones actualizadas"
    118109
    119 #: limit-login-attempts.php:799
    120 msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
    121 msgstr "<strong>NOTA:</strong> Este plugin sólo funciona en Wordpress 2.7 o superior"
    122 
    123 #: limit-login-attempts.php:815
    124 #, php-format
     110#: limit-login-attempts.php:923
    125111msgid "It appears the site is reached directly (from your IP: %s)"
    126112msgstr "Al parecer, el sitio está siendo accedido directamente (desde tu IP: %s)"
    127113
    128 #: limit-login-attempts.php:817
    129 #, php-format
     114#: limit-login-attempts.php:925
    130115msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
    131116msgstr "Al parecer, el sitio está siendo accedido desde un servidor proxy (IP del proxy: %s, tu IP: %s)"
    132117
    133 #: limit-login-attempts.php:825
    134 #, php-format
     118#: limit-login-attempts.php:933
    135119msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
    136120msgstr "<strong>La configuración actual parece ser incorrecta</strong>. Asegúrate de verificarla. Para mayor información, <a href=\"%s\" title=\"FAQ\">click aquí</a>"
    137121
    138 #: limit-login-attempts.php:833
     122#: limit-login-attempts.php:941
    139123msgid "Limit Login Attempts Settings"
    140124msgstr "Preferencias del Limitador de Acceso"
    141125
    142 #: limit-login-attempts.php:834
     126#: limit-login-attempts.php:942
    143127msgid "Statistics"
    144128msgstr "Estadísticas"
    145129
    146 #: limit-login-attempts.php:838
     130#: limit-login-attempts.php:947
    147131msgid "Total lockouts"
    148132msgstr "Bloqueos totales"
    149133
    150 #: limit-login-attempts.php:841
     134#: limit-login-attempts.php:950
    151135msgid "Reset Counter"
    152136msgstr "Reiniciar contador"
    153137
    154 #: limit-login-attempts.php:842
    155 #, php-format
     138#: limit-login-attempts.php:951
    156139msgid "%d lockout since last reset"
    157140msgid_plural "%d lockouts since last reset"
     
    159142msgstr[1] "%d bloqueos desde el último reinicio."
    160143
    161 #: limit-login-attempts.php:843
     144#: limit-login-attempts.php:952
    162145msgid "No lockouts yet"
    163146msgstr "Ningún bloqueo hasta ahora"
    164147
    165 #: limit-login-attempts.php:848
     148#: limit-login-attempts.php:957
    166149msgid "Active lockouts"
    167150msgstr "Bloqueos activos"
    168151
    169 #: limit-login-attempts.php:850
     152#: limit-login-attempts.php:959
    170153msgid "Restore Lockouts"
    171154msgstr "Restablecer bloqueos"
    172155
    173 #: limit-login-attempts.php:851
    174 #, php-format
     156#: limit-login-attempts.php:960
    175157msgid "%d IP is currently blocked from trying to log in"
    176158msgstr "La IP %d actualmente tiene restringido el acceso"
    177159
    178 #: limit-login-attempts.php:857
     160#: limit-login-attempts.php:966
    179161msgid "Options"
    180162msgstr "Opciones"
    181163
    182 #: limit-login-attempts.php:861
     164#: limit-login-attempts.php:971
    183165msgid "Lockout"
    184166msgstr "Bloqueo"
    185167
    186 #: limit-login-attempts.php:863
     168#: limit-login-attempts.php:973
    187169msgid "allowed retries"
    188170msgstr "reintentos permitidos"
    189171
    190 #: limit-login-attempts.php:864
     172#: limit-login-attempts.php:974
    191173msgid "minutes lockout"
    192174msgstr "minutos por bloqueo"
    193175
    194 #: limit-login-attempts.php:865
     176#: limit-login-attempts.php:975
    195177msgid "lockouts increase lockout time to"
    196178msgstr "bloqueos incrementan el tiempo a"
    197179
    198 #: limit-login-attempts.php:865
     180#: limit-login-attempts.php:975
    199181msgid "hours"
    200182msgstr "horas"
    201183
    202 #: limit-login-attempts.php:866
     184#: limit-login-attempts.php:976
    203185msgid "hours until retries are reset"
    204186msgstr "horas hasta restablecer los reintentos"
    205187
    206 #: limit-login-attempts.php:870
     188#: limit-login-attempts.php:980
    207189msgid "Site connection"
    208190msgstr "Conexión"
    209191
    210 #: limit-login-attempts.php:876
     192#: limit-login-attempts.php:986
    211193msgid "Direct connection"
    212194msgstr "Connexión directa"
    213195
    214 #: limit-login-attempts.php:881
     196#: limit-login-attempts.php:991
    215197msgid "From behind a reversy proxy"
    216198msgstr "Detrás de un proxy"
    217199
    218 #: limit-login-attempts.php:887
     200#: limit-login-attempts.php:997
    219201msgid "Handle cookie login"
    220202msgstr "Gestionar cookies de login"
    221203
    222 #: limit-login-attempts.php:889
     204#: limit-login-attempts.php:999
    223205msgid "Yes"
    224206msgstr "Sí"
    225207
    226 #: limit-login-attempts.php:889
     208#: limit-login-attempts.php:999
    227209msgid "No"
    228210msgstr "No"
    229211
    230 #: limit-login-attempts.php:894
     212#: limit-login-attempts.php:1003
    231213msgid "Notify on lockout"
    232214msgstr "Notificar al bloquear"
    233215
    234 #: limit-login-attempts.php:896
     216#: limit-login-attempts.php:1005
    235217msgid "Log IP"
    236218msgstr "Registrar IP"
    237219
    238 #: limit-login-attempts.php:897
     220#: limit-login-attempts.php:1006
    239221msgid "Email to admin after"
    240222msgstr "Enviar email al administrador cada"
    241223
    242 #: limit-login-attempts.php:897
     224#: limit-login-attempts.php:1006
    243225msgid "lockouts"
    244226msgstr "bloqueos"
    245227
    246 #: limit-login-attempts.php:902
     228#: limit-login-attempts.php:1011
    247229msgid "Change Options"
    248230msgstr "Cambiar opciones"
    249231
    250 #: limit-login-attempts.php:910
     232#: limit-login-attempts.php:1019
    251233msgid "Lockout log"
    252234msgstr "Registro de bloqueos"
    253235
    254 #: limit-login-attempts.php:914
     236#: limit-login-attempts.php:1024
    255237msgid "Clear Log"
    256238msgstr "Limpiar registro"
    257239
    258 #. Plugin Name of an extension
     240#. Plugin Name of the plugin/theme
    259241msgid "Limit Login Attempts"
    260242msgstr "Límitador de intentos de login"
    261243
    262 #. Plugin URI of an extension
     244#. Plugin URI of the plugin/theme
    263245msgid "http://devel.kostdoktorn.se/limit-login-attempts"
    264246msgstr "http://devel.kostdoktorn.se/limit-login-attempts"
    265247
    266 #. Description of an extension
     248#. Description of the plugin/theme
    267249msgid "Limit rate of login attempts, including by way of cookies, for each IP."
    268250msgstr "Limita la tasa de intentos de acceso, usando cookies por IP."
    269251
    270 #. Author of an extension
     252#. Author of the plugin/theme
    271253msgid "Johan Eenfeldt"
    272254msgstr "Johan Eenfeldt"
    273255
    274 #. Author URI of an extension
     256#. Author URI of the plugin/theme
    275257msgid "http://devel.kostdoktorn.se"
    276258msgstr "http://devel.kostdoktorn.se"
    277259
     260#~ msgid "IP|Internet address"
     261#~ msgstr "IP|Dirección de Internet"
     262#~ msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
     263#~ msgstr ""
     264#~ "<strong>NOTA:</strong> Este plugin sólo funciona en Wordpress 2.7 o "
     265#~ "superior"
     266
  • limit-login-attempts/tags/1.6.2/limit-login-attempts.php

    r346913 r428626  
    77  Author URI: http://devel.kostdoktorn.se
    88  Text Domain: limit-login-attempts
    9   Version: 1.6.1
     9  Version: 1.6.2
    1010
    1111  Copyright 2008 - 2011 Johan Eenfeldt
     
    8686 */
    8787
    88 limit_login_setup();
     88add_action('init', 'limit_login_setup');
    8989
    9090
     
    502502/* Logging of lockout (if configured) */
    503503function limit_login_notify_log($user) {
    504     $log = get_option('limit_login_logged');
     504    $log = $option = get_option('limit_login_logged');
     505    if (!is_array($log)) {
     506        $log = array();
     507    }
    505508    $ip = limit_login_get_address();
    506     if (!is_array($log)) {
    507         $log = array($ip => array($user => 1));
     509
     510    /* can be written much simpler, if you do not mind php warnings */
     511    if (isset($log[$ip])) {
     512        if (isset($log[$ip][$user])) { 
     513            $log[$ip][$user]++;
     514        } else {
     515            $log[$ip][$user] = 1;
     516        }
     517    } else {
     518        $log[$ip] = array($user => 1);
     519    }
     520
     521    if ($option === false) {
    508522        add_option('limit_login_logged', $log, '', 'no'); /* no autoload */
    509523    } else {
    510         /* can be written much simpler, if you do not mind php warnings */
    511         if (isset($log[$ip])) {
    512             if (isset($log[$ip][$user])) { 
    513                 $log[$ip][$user]++;
    514             } else {
    515                 $log[$ip][$user] = 1;
    516             }
    517         } else {
    518             $log[$ip] = array($user => 1);
    519         }
    520524        update_option('limit_login_logged', $log);
    521525    }
     
    856860    /* Should we clear log? */
    857861    if (isset($_POST['clear_log'])) {
    858         update_option('limit_login_logged', '');
     862        delete_option('limit_login_logged');
    859863        echo '<div id="message" class="updated fade"><p>'
    860864            . __('Cleared IP log', 'limit-login-attempts')
  • limit-login-attempts/tags/1.6.2/readme.txt

    r346944 r428626  
    33Tags: login, security, authentication
    44Requires at least: 2.8
    5 Tested up to: 3.1-RC4
    6 Stable tag: 1.6.1
     5Tested up to: 3.2.1
     6Stable tag: 1.6.2
    77
    88Limit rate of login attempts, including by way of cookies, for each IP. Fully customizable.
     
    6767
    6868== Changelog ==
     69
     70= 1.6.2 =
     71* Fix bug where log would not get updated after it had been cleared
     72* Do plugin setup in 'init' action
     73* Small update to Spanish translation file, thanks to Marcelo Pedra
     74* Tested against WordPress 3.2.1
    6975
    7076= 1.6.1 =
  • limit-login-attempts/trunk/languages-old/limit-login-attempts-nl_NL.po

    r272921 r428626  
    1 # Limit Login Attempts Swedish Translation
     1# Limit Login Attempts German Translation
    22# Copyright (C) 2009 Johan Eenfeldt
    33# This file is distributed under the same license as the Wordpress package.
     
    66msgid ""
    77msgstr ""
    8 "Project-Id-Version: limit-login-attempts 1.2\n"
     8"Project-Id-Version: limit-login-attempts 1.3\n"
    99"Report-Msgid-Bugs-To: http://wordpress.org/tag/limit-login-attempts\n"
    1010"POT-Creation-Date: 2009-01-28 17:17+0000\n"
    11 "PO-Revision-Date: 2009-07-15 13:14+0100\n"
    12 "Last-Translator: Rune G <dev@bloggs.be>\n"
    13 "Language-Team: DigitalHverdag <dev@bloggs.be>\n"
     11"PO-Revision-Date: 2010-03-19 13:52+0100\n"
     12"Last-Translator: BjornW <burobjorn@burobjorn.nl>\n"
     13"Language-Team: German <michael@skerwiderski.de>\n"
    1414"MIME-Version: 1.0\n"
    1515"Content-Type: text/plain; charset=UTF-8\n"
    1616"Content-Transfer-Encoding: 8bit\n"
    1717"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    18 "X-Poedit-Language: Norwegian Bokmal\n"
    19 "X-Poedit-Country: NORWAY\n"
     18"X-Poedit-Language: German\n"
     19"X-Poedit-Country: GERMANY\n"
    2020
    2121#: limit-login-attempts.php:372
     
    2323msgid "%d hour"
    2424msgid_plural "%d hours"
    25 msgstr[0] "%d time"
    26 msgstr[1] "%d timer"
     25msgstr[0] "%d uur"
     26msgstr[1] "%d uren"
    2727
    2828#: limit-login-attempts.php:378
     
    3030msgid "%d minute"
    3131msgid_plural "%d minutes"
    32 msgstr[0] "%d minutt"
    33 msgstr[1] "%d minutter"
     32msgstr[0] "%d minute"
     33msgstr[1] "%d minuten"
    3434
    3535#: limit-login-attempts.php:381
    3636#, php-format
    3737msgid "[%s] Too many failed login attempts"
    38 msgstr "[%s] For mange påloggingsforsøk"
     38msgstr "[%s] Teveel gefaalde login pogingen"
    3939
    4040#: limit-login-attempts.php:383
    4141#, php-format
    4242msgid "%d failed login attempts (%d lockout(s)) from IP: %s"
    43 msgstr "%d påloggingsforsøk (stoppet %d gang(er)) fra IP: %s"
     43msgstr "%d gefaalde login pogingen (%d blokkades) van IP: %s"
    4444
    4545#: limit-login-attempts.php:387
    4646#, php-format
    4747msgid "Last user attempted: %s"
    48 msgstr "Siste brukernavn som feilet : %s"
     48msgstr "Laatste inlogpoging werd gedaan met de gebruikersnaam: %s"
    4949
    5050#: limit-login-attempts.php:390
    5151#, php-format
    5252msgid "IP was blocked for %s"
    53 msgstr "IP blokkert i %s"
     53msgstr "IP was geblokkeerd voor %s."
    5454
    5555#: limit-login-attempts.php:445
    5656msgid "<strong>ERROR</strong>: Too many failed login attempts."
    57 msgstr "<strong>Feil</strong>: For mange påloggingsforsøk."
     57msgstr "<strong>FOUT</strong>: Teveel gefaalde inlogpogingen."
    5858
    5959#: limit-login-attempts.php:449
    6060msgid "Please try again later."
    61 msgstr "Prøv igjen senere"
     61msgstr "Probeer het later nogmaals"
    6262
    6363#: limit-login-attempts.php:456
     
    6565msgid "Please try again in %d hour."
    6666msgid_plural "Please try again in %d hours."
    67 msgstr[0] "Prøv igjen om %d time."
    68 msgstr[1] "Prøv igjen om %d timer."
     67msgstr[0] ".Probeer het over %d uur nogmaals."
     68msgstr[1] "Probeer het over %d uren nogmaals."
    6969
    7070#: limit-login-attempts.php:458
     
    7272msgid "Please try again in %d minute."
    7373msgid_plural "Please try again in %d minutes."
    74 msgstr[0] "Prøv igjen om %d minutt."
    75 msgstr[1] "Prøv igjen om %d minutter."
     74msgstr[0] "Probeer het over %d minuut nogmaals"
     75msgstr[1] "Probeer het over %d minuten nogmaals."
    7676
    7777#: limit-login-attempts.php:487
     
    7979msgid "<strong>%d</strong> attempt remaining."
    8080msgid_plural "<strong>%d</strong> attempts remaining."
    81 msgstr[0] "<strong>%d</strong> forsøk gjenstår."
    82 msgstr[1] "<strong>%d</strong> forsøk gjenstår."
     81msgstr[0] "Nog <strong>%d</strong> loginpoging mogelijk."
     82msgstr[1] "Nog <strong>%d</strong> loginpogingen mogelijk."
    8383
    8484#: limit-login-attempts.php:551
    8585msgid "<strong>ERROR</strong>: Incorrect username or password."
    86 msgstr "<strong>Feil</strong>: Feil brukernavn eller passord."
     86msgstr "<strong>FOUT</strong>: Ongeldige gebruikersnaam of wachtwoord."
    8787
    8888#: limit-login-attempts.php:714
    8989msgid "IP|Internet address"
    90 msgstr "IP"
     90msgstr "IP|Internet adres"
    9191
    9292#: limit-login-attempts.php:714
    9393msgid "Tried to log in as"
    94 msgstr "Prøvde å logge inn som"
     94msgstr "Inlogpoging als"
    9595
    9696#: limit-login-attempts.php:719
     
    9898msgid "%d lockout"
    9999msgid_plural "%d lockouts"
    100 msgstr[0] "%d blokkering"
    101 msgstr[1] "%d blokkeringer"
     100msgstr[0] "%d Blokkade"
     101msgstr[1] "%d Blokkades"
    102102
    103103#: limit-login-attempts.php:743
    104104msgid "Cleared IP log"
    105 msgstr "Nullstill IP loggen"
     105msgstr "IP log is gewist"
    106106
    107107#: limit-login-attempts.php:751
    108108msgid "Reset lockout count"
    109 msgstr "Nullstill antall blokkeringer"
     109msgstr "Reset blokkades teller"
    110110
    111111#: limit-login-attempts.php:759
    112112msgid "Cleared current lockouts"
    113 msgstr "Fjernet gjeldende blokkeringer"
     113msgstr "Actieve blokkades zijn gewist"
    114114
    115115#: limit-login-attempts.php:788
    116116msgid "Options changed"
    117 msgstr "Innstillinger endret"
     117msgstr "Instellingen zijn gewijzigd"
    118118
    119119#: limit-login-attempts.php:799
    120120msgid "<strong>NOTE:</strong> Only works in Wordpress 2.7 or later"
    121 msgstr "<strong>NB:</strong> Du må bruker WordPress 2.7 eller nyere"
     121msgstr "<strong>NB:</strong> Werkt alleen vanaf Wordpress 2.7 of hogere versie nummers"
    122122
    123123#: limit-login-attempts.php:815
    124124#, php-format
    125125msgid "It appears the site is reached directly (from your IP: %s)"
    126 msgstr "Det ser ut som om du kan nå bloggen direkte (fra din IP: %s)"
     126msgstr "Het lijkt erop dat de site direct te bereiken is (van uw IP-adres: %s)"
    127127
    128128#: limit-login-attempts.php:817
    129129#, php-format
    130130msgid "It appears the site is reached through a proxy server (proxy IP: %s, your IP: %s)"
    131 msgstr "Det ser ut som om bloggen din er bak en proxy server (proxy IP: %s, din IP: %s)"
     131msgstr "Het lijkt erop dat de site te bereiken is via een proxy server,  (Proxy Server IP adres: %s, Uw IP-adres: %s)"
    132132
    133133#: limit-login-attempts.php:825
    134134#, php-format
    135135msgid "<strong>Current setting appears to be invalid</strong>. Please make sure it is correct. Further information can be found <a href=\"%s\" title=\"FAQ\">here</a>"
    136 msgstr "<strong>Dine innstillinger kan være feil</strong>. Sjekk at de er korrekte. Mer informasjon <a href=\"%s\" title=\"FAQ\">her</a>"
     136msgstr "<strong>De huidige instelling lijkt ongeldig te zijn</strong>. Pas deze zo aan dat deze wel geldig is, informatie over hoe u dit kunt doen kunt u vinden in de <a href=\"%s\" title=\"FAQ\">FAQ</a> (in het Engels)."
    137137
    138138#: limit-login-attempts.php:833
    139139msgid "Limit Login Attempts Settings"
    140 msgstr "Limit Login Attempts Innstillinger"
     140msgstr "Limit Login Attempts Instellingen"
    141141
    142142#: limit-login-attempts.php:834
    143143msgid "Statistics"
    144 msgstr "Statistikk"
     144msgstr "Statistieken"
    145145
    146146#: limit-login-attempts.php:838
    147147msgid "Total lockouts"
    148 msgstr "Totalt antall blokkeringer"
     148msgstr "Totaal aantal blokkades"
    149149
    150150#: limit-login-attempts.php:841
    151151msgid "Reset Counter"
    152 msgstr "Nullstill teller"
     152msgstr "Teller resetten"
    153153
    154154#: limit-login-attempts.php:842
     
    156156msgid "%d lockout since last reset"
    157157msgid_plural "%d lockouts since last reset"
    158 msgstr[0] "%d blokkering siden siste nullstilling"
    159 msgstr[1] "%d blokkeringer siden siste nullstilling"
     158msgstr[0] "%d Blokkade sinds de laatste reset"
     159msgstr[1] "%d Blokkades sinds de laatste reset"
    160160
    161161#: limit-login-attempts.php:843
    162162msgid "No lockouts yet"
    163 msgstr "Ingen blokkeringer enda"
     163msgstr "Nog geen blokkades actief"
    164164
    165165#: limit-login-attempts.php:848
    166166msgid "Active lockouts"
    167 msgstr "Aktive blokkeringer"
     167msgstr "Actieve blokkades"
    168168
    169169#: limit-login-attempts.php:850
    170170msgid "Restore Lockouts"
    171 msgstr "Fjern blokkeringer"
     171msgstr "Blokkades opheffen"
    172172
    173173#: limit-login-attempts.php:851
    174174#, php-format
    175175msgid "%d IP is currently blocked from trying to log in"
    176 msgstr "%d IP står på blokkeringslisten"
     176msgstr "%d IP is op dit moment voor inloggen geblokkeerd"
    177177
    178178#: limit-login-attempts.php:857
    179179msgid "Options"
    180 msgstr "Innstillinger"
     180msgstr "Instellingen"
    181181
    182182#: limit-login-attempts.php:861
    183183msgid "Lockout"
    184 msgstr "Blokkering"
     184msgstr "Blokkade"
    185185
    186186#: limit-login-attempts.php:863
    187187msgid "allowed retries"
    188 msgstr "Antall påloggingsforsøk"
     188msgstr "mogelijke inlogpogingen"
    189189
    190190#: limit-login-attempts.php:864
    191191msgid "minutes lockout"
    192 msgstr "minutters blokkering"
     192msgstr "Aantal minuten geblokkeerd na een gefaalde inlogpoging"
    193193
    194194#: limit-login-attempts.php:865
    195195msgid "lockouts increase lockout time to"
    196 msgstr "Blokkeringer øker blokkeringstiden til"
     196msgstr "Blokkades verhogen de blokkade tijd naar"
    197197
    198198#: limit-login-attempts.php:865
    199199msgid "hours"
    200 msgstr "timer"
     200msgstr "uren"
    201201
    202202#: limit-login-attempts.php:866
    203203msgid "hours until retries are reset"
    204 msgstr "timer til nullstilling"
     204msgstr "aantal uren voordat het aantal ondernomen pogingen wordt gereset"
    205205
    206206#: limit-login-attempts.php:870
    207207msgid "Site connection"
    208 msgstr "Blogg forbindelse"
     208msgstr "Verbinding naar deze website"
    209209
    210210#: limit-login-attempts.php:876
    211211msgid "Direct connection"
    212 msgstr "Direkte forbindelse"
     212msgstr "Directe verbinding"
    213213
    214214#: limit-login-attempts.php:881
    215215msgid "From behind a reversy proxy"
    216 msgstr "Bak en omvendt proxy"
     216msgstr "Via een reverse-proxy"
    217217
    218218#: limit-login-attempts.php:887
    219219msgid "Handle cookie login"
    220 msgstr "Behandle pålogginger med cookies"
     220msgstr "Omgaan met cookie loginverzoeken"
    221221
    222222#: limit-login-attempts.php:889
     
    226226#: limit-login-attempts.php:889
    227227msgid "No"
    228 msgstr "Nei"
     228msgstr "Nee"
    229229
    230230#: limit-login-attempts.php:894
    231231msgid "Notify on lockout"
    232 msgstr "Gi melding om blokkering"
     232msgstr "Waarschuwen in het geval van een blokkade"
    233233
    234234#: limit-login-attempts.php:896
    235235msgid "Log IP"
    236 msgstr "Logg IP"
     236msgstr "Log IP adres"
    237237
    238238#: limit-login-attempts.php:897
    239239msgid "Email to admin after"
    240 msgstr "Send epost til admin etter"
     240msgstr "Email de beheerder na"
    241241
    242242#: limit-login-attempts.php:897
    243243msgid "lockouts"
    244 msgstr "blokkeringer"
     244msgstr "Blokkades"
    245245
    246246#: limit-login-attempts.php:902
    247247msgid "Change Options"
    248 msgstr "Endre innstillinger"
     248msgstr "Instellingen aanpassen"
    249249
    250250#: limit-login-attempts.php:910
    251251msgid "Lockout log"
    252 msgstr "Blokkerings logg"
     252msgstr "Log van blokkades"
    253253
    254254#: limit-login-attempts.php:914
    255255msgid "Clear Log"
    256 msgstr "Nullstill loggen"
     256msgstr "Log wissen"
    257257
    258258#. Plugin Name of an extension
    259259msgid "Limit Login Attempts"
    260 msgstr "Begrense påloggingsforsøk"
     260msgstr "Limit Login Attempts"
    261261
    262262#. Plugin URI of an extension
     
    266266#. Description of an extension
    267267msgid "Limit rate of login attempts, including by way of cookies, for each IP."
    268 msgstr "Begrenser antall påloggingsforsøk, inkludert forsøk med cookies, for alle IPer"
     268msgstr "Beperkt het aantal inlogpogingen, inclusief bij het gebruik van cookies, voor elk IP adres."
    269269
    270270#. Author of an extension
  • limit-login-attempts/trunk/limit-login-attempts-admin.php

    r346913 r428626  
    4040/* Level of the different roles. Used for descriptive purposes only */
    4141$GLOBALS['limit_login_level_role'] =
    42     array(0 => __('Subscriber','limit-login-attempts')
    43           , 1 => __('Contributor','limit-login-attempts')
    44           , 2 => __('Author','limit-login-attempts')
    45           , 7 => __('Editor','limit-login-attempts')
    46           , 10 => __('Administrator','limit-login-attempts'));
     42    array(0 => __('Subscriber', 'limit-login-attempts')
     43          , 1 => __('Contributor', 'limit-login-attempts')
     44          , 2 => __('Author', 'limit-login-attempts')
     45          , 7 => __('Editor', 'limit-login-attempts')
     46          , 10 => __('Administrator', 'limit-login-attempts'));
    4747
    4848
     
    200200    global $limit_login_option_page;
    201201
    202     limit_login_cleanup();
    203 
    204202    if (!current_user_can('manage_options'))
    205203        wp_die('Sorry, but you do not have permissions to change settings.');
     204
     205    limit_login_cleanup();
    206206
    207207    /* Make sure post was from this page */
  • limit-login-attempts/trunk/limit-login-attempts.php

    r346913 r428626  
    3737 *
    3838 * Future:
    39  * - cookie login: need better failed attempts handling
    4039 * - add logging of registration lockouts
    4140 * - add user_meta with IP when registering users to allow trace
    42  * - track last login?
     41 * - track when last login, IP of last few successful logins
    4342 */
    4443
     
    102101        add_action('plugins_loaded', 'limit_login_handle_cookies', 99999);
    103102        add_action('auth_cookie_bad_hash', 'limit_login_failed_cookie');
    104         add_action('auth_cookie_bad_username', 'limit_login_failed_cookie');
     103
     104        global $wp_version;
     105
     106        /* auth_cookie_valid action only available in WP >= 3.0 */
     107        if (version_compare($wp_version, '3.0', '>=')) {
     108            add_action('auth_cookie_bad_hash', 'limit_login_failed_cookie_hash');
     109            add_action('auth_cookie_valid', 'limit_login_valid_cookie', 10, 2);
     110        } else {
     111            add_action('auth_cookie_bad_hash', 'limit_login_failed_cookie');
     112        }
    105113    }
    106114
     
    171179    $error_codes[] = 'too_many_retries';
    172180    return $error_codes;
     181}
     182
     183
     184/*
     185 * Action: failed cookie login hash
     186 *
     187 * Make sure same invalid cookie doesn't get counted more than once.
     188 *
     189 * Requires WordPress version 3.0.0, previous versions use limit_login_failed_cookie()
     190 */
     191function limit_login_failed_cookie_hash($cookie_elements) {
     192    limit_login_clear_auth_cookie();
     193
     194    /*
     195     * Under some conditions an invalid auth cookie will be used multiple
     196     * times, which results in multiple failed attempts from that one
     197     * cookie.
     198     *
     199     * Unfortunately I've not been able to replicate this consistently and
     200     * thus have not been able to make sure what the exact cause is.
     201     *
     202     * Probably it is because a reload of for example the admin dashboard
     203     * might result in multiple requests from the browser before the invalid
     204     * cookie can be cleared.
     205     *
     206     * Handle this by only counting the first attempt when the exact same
     207     * cookie is attempted for a user.
     208     */
     209
     210    extract($cookie_elements, EXTR_OVERWRITE);
     211
     212    // Check if cookie is for a valid user
     213    $user = get_userdatabylogin($username);
     214    if (!$user) {
     215        // "shouldn't happen" for this action
     216        limit_login_failed($username);
     217        return;
     218    }
     219
     220    $previous_cookie = get_user_meta($user->ID, 'limit_login_previous_cookie', true);
     221    if ($previous_cookie && $previous_cookie == $cookie_elements) {
     222        // Identical cookies, ignore this attempt
     223        return;
     224    }
     225
     226    // Store cookie
     227    if ($previous_cookie)
     228        update_user_meta($user->ID, 'limit_login_previous_cookie', $cookie_elements);
     229    else
     230        add_user_meta($user->ID, 'limit_login_previous_cookie', $cookie_elements, true);
     231
     232    limit_login_failed($username);
     233}
     234
     235
     236/*
     237 * Action: successful cookie login
     238 *
     239 * Clear any stored cookie in user_meta.
     240 *
     241 * Requires WordPress version 3.0.0, not used in previous versions
     242 */
     243function limit_login_valid_cookie($cookie_elements, $user) {
     244    /*
     245     * As all meta values get cached on user load this should not require
     246     * any extra work for the common case of no stored value.
     247     */
     248
     249    if (get_user_meta($user->ID, 'limit_login_previous_cookie'))
     250        delete_user_meta($user->ID, 'limit_login_previous_cookie');
    173251}
    174252
  • limit-login-attempts/trunk/readme.txt

    r346944 r428626  
    44Requires at least: 2.8
    55Tested up to: 3.0.1
    6 Stable tag: 1.6.1
     6Stable tag: 1.6.2
    77
    88Limit rate of login attempts for each IP. Also support additional security for password reset, rate limit on new user registrations, and more.
     
    123123* Only autoload the necessary option table entries
    124124* Log time of last lockout for each IP in log; keep track of last increase + last clear for statistics
    125 * Forward-merged changes from versions 1.5 - 1.5.2
    126 * Move translations to separate directories
     125* Forward-merged changes from versions 1.5 - 1.6.1
     126* Move translations to separate directory
    127127* Updated Swedish translation
    128128* Updated Bulgarian translation, thanks to Hristo Chakarov
Note: See TracChangeset for help on using the changeset viewer.