diff options
Diffstat (limited to 'includes/crypt.php')
| -rw-r--r--[-rwxr-xr-x] | includes/crypt.php | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/includes/crypt.php b/includes/crypt.php index 9707e719..d511e4f4 100755..100644 --- a/includes/crypt.php +++ b/includes/crypt.php @@ -1,18 +1,12 @@ <?php + function PassCrypt($passwort) { + include "config.php"; - -function PassCrypt($passwort) { -include "config.php"; - -switch ($crypt_system) { - case "crypt": - return "{crypt}".crypt($passwort, "77"); - case "md5": - return md5($passwort); + switch ($crypt_system) { + case "crypt": + return "{crypt}" . crypt($passwort, "77"); + case "md5": + return md5($passwort); + } } - -} - - - ?> |
