X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/d4e344cf24f5cc5c8c8c563b756cc42530c38fcd..a4111660b05af9df96bbe567aa43acff34b6339d:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index ebfffd4..f2a26e0 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -101,10 +101,8 @@ function jirafeau_gen_random($l) return $code; } -function jirafeau_gen_download_pass() +function jirafeau_gen_download_pass($length, $allowed_chars) { - $length = $cfg['download_password_gen_len']; - $allowed_chars = $cfg['download_password_gen_chars']; if ($length <= 0) { return false; }