Correct spelling

This commit is contained in:
Miles Lott 2006-05-17 06:00:12 +00:00
parent 3d362fc3e5
commit fb4182ea66
6 changed files with 24 additions and 14 deletions

View File

@ -241,29 +241,39 @@
}
/**
* Checks if a given password is "save"
* Checks if a given password is "safe"
*
* @param string $login
* @abstract atm a simple check in length, #digits, #uppercase and #lowercase
* could be made more save using e.g. pecl libary cracklib
* but as pecl dosn't tun on any platform and isn't GPL'd
* i havn't implemented it yet
* could be made more safe using e.g. pecl library cracklib
* but as pecl dosn't run on any platform and isn't GPL'd
* i haven't implemented it yet
* Windows compatible check is: 7 char lenth, 1 Up, 1 Low, 1 Num and 1 Special
* @author cornelius weiss<egw at von-und-zu-weiss.de>
* @return mixed false if password is considerd "save" or a string $message if "unsafe"
* @return mixed false if password is considered "safe" or a string $message if "unsafe"
*/
function crackcheck($passwd)
{
if (!preg_match('/.{'. ($noc=7). ',}/',$passwd))
{
$message = lang('Password must have at least %1 characters',$noc). '<br>';
}
if(!preg_match('/(.*\d.*){'. ($non=1). ',}/',$passwd))
{
$message .= lang('Password must contain at least %1 numbers',$non). '<br>';
}
if(!preg_match('/(.*[[:upper:]].*){'. ($nou=1). ',}/',$passwd))
{
$message .= lang('Password must contain at least %1 uppercase letters',$nou). '<br>';
}
if(!preg_match('/(.*[[:lower:]].*){'. ($nol=1). ',}/',$passwd))
{
$message .= lang('Password must contain at least %1 lowercase letters',$nol). '<br>';
}
if(!preg_match('/(.*[\\!"#$%&\'()*+,-.\/:;<=>?@\[\]\^_ {|}~`].*){'. ($nol=1). ',}/',$passwd))
$message .= lang('Password must contain at least %1 special charactars',$nol). '<br>';
{
$message .= lang('Password must contain at least %1 special characters',$nol). '<br>';
}
return $message ? $message : false;
}

View File

@ -613,7 +613,7 @@ password could not be changed common de Passwort konnte nicht ge
password has been updated common de Passwort wurde aktualisiert
password must contain at least %1 lowercase letters common de Das Passwort muss mindestens %1 Kleinbuchstaben enthalten
password must contain at least %1 numbers common de Das Passwort muss mindestens %1 Nummern enthalten
password must contain at least %1 special charactars common de Das Passwort muss mindestens %1 Sonderzeichen enthalten
password must contain at least %1 special characters common de Das Passwort muss mindestens %1 Sonderzeichen enthalten
password must contain at least %1 uppercase letters common de Das Passwort muss mindestens %1 Großbuchstaben enthalten
password must have at least %1 characters common de Das Passwort muss mindestens %1 Zeichen lang sein
paste htmlarea-ContextMenu de Einfügen

View File

@ -653,7 +653,7 @@ password could not be changed common en Password could not be changed
password has been updated common en Password has been updated
password must contain at least %1 lowercase letters common en Password must contain at least %1 lowercase letters
password must contain at least %1 numbers common en Password must contain at least %1 numbers
password must contain at least %1 special charactars common en Password must contain at least %1 special charactars
password must contain at least %1 special characters common en Password must contain at least %1 special characters
password must contain at least %1 uppercase letters common en Password must contain at least %1 uppercase letters
password must have at least %1 characters common en Password must have at least %1 characters
paste htmlarea-ContextMenu en Paste

View File

@ -647,7 +647,7 @@ password could not be changed common fr Le mot de passe n'a pas pu
password has been updated common fr Le mot de passe a été mis à jour avec succès
password must contain at least %1 lowercase letters common fr Le mot de passe doit contenir au moins %1 caractères minuscules
password must contain at least %1 numbers common fr Le mot de passe doit contenir au moins %1 chiffres
password must contain at least %1 special charactars common fr Le mot de passe doit contenir au moins %1 caractères spéciaux
password must contain at least %1 special characters common fr Le mot de passe doit contenir au moins %1 caractères spéciaux
password must contain at least %1 uppercase letters common fr Le mot de passe doit contenir au moins %1 caractères majuscules
password must have at least %1 characters common fr Le mot de passe doit contenir au moins %1 caractères
paste htmlarea-ContextMenu fr Coller

View File

@ -653,7 +653,7 @@ password could not be changed common nl Wachtwoord kon niet worden gewijzigd
password has been updated common nl Wachtwoord is gewijzigd
password must contain at least %1 lowercase letters common nl Wachtwoord moet minstens %1 kleine letters bevatten
password must contain at least %1 numbers common nl Wachtwoord moet minstens %1 cijfers bevatten
password must contain at least %1 special charactars common nl Wachtwoord moet minstens %1 bijzondere tekens bevatten
password must contain at least %1 special characters common nl Wachtwoord moet minstens %1 bijzondere tekens bevatten
password must contain at least %1 uppercase letters common nl Wachtwoord moet minstens %1 hoofdletters bevatten
password must have at least %1 characters common nl Wachtwoord moet minstens %1 tekens bevatten
paste htmlarea-ContextMenu nl Plakken

View File

@ -653,7 +653,7 @@ password could not be changed common pt-br Senha n
password has been updated common pt-br Senha foi alterada
password must contain at least %1 lowercase letters common pt-br Senha deve ter ao menos %1 caractere(s) minúsculo(s)
password must contain at least %1 numbers common pt-br Senha deve ter ao menos %1 número(s)
password must contain at least %1 special charactars common pt-br Senha deve ter ao menos %1 caractere(s) especial(is)
password must contain at least %1 special characters common pt-br Senha deve ter ao menos %1 caractere(s) especial(is)
password must contain at least %1 uppercase letters common pt-br Senha deve ter ao menos %1 caractere(s) maiúsculo(s)
password must have at least %1 characters common pt-br Senha deve ter ao menos %1 caractere(s)
paste htmlarea-ContextMenu pt-br Colar