bernd
Erlaube wildcards bei vhosts
bernd commited 20664c3 at 2010-12-15 06:43:43
<?php
require_once('inc/error.php');
function strong_password($password)
{
if (! function_exists("crack_opendict"))
{
DEBUG("cracklib not available!");
return true;
}
if (config('use_cracklib') === NULL or config('use_cracklib') === false) {
DEBUG('Cracklib deaktiviert');
return true;
}
DEBUG("Öffne Wörterbuch: ".config('cracklib_dict'));
if (! ($dict = crack_opendict(config('cracklib_dict'))))
{
logger(LOG_ERR, "inc/security", "cracklib", "could not open cracklib-dictionary »".config('cracklib_dict')."«");
system_failure("Kann Crack-Lib-Wörterbuch nicht öffnen: ".config('cracklib_dict'));
}
// Führe eine Überprüfung des Passworts durch
$check = crack_check($dict, $password);
$message = crack_getlastmessage();
crack_closedict($dict);
if ($check === True)
{
DEBUG("Passwort ok");
return true;
}
else
{
DEBUG("Passwort nicht ok: {$message}");
return $message;
}
}
function filter_input_general( $input )
{
return htmlspecialchars(iconv('UTF-8', 'UTF-8', $input), ENT_QUOTES, 'UTF-8');
}
function verify_input_general( $input )
{
if (filter_input_general($input) != $input) {
system_failure("Ihre Daten enthielten ungültige Zeichen!");
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX