summaryrefslogtreecommitdiff
path: root/includes/crypt.php
diff options
context:
space:
mode:
authorMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
committerMoritz helios Rudert <helios@planetcyborg.de>2011-06-01 12:13:39 +0200
commit75448045cfe70054c8f4bae1bcfaf9bb0f70d330 (patch)
tree6a4d3d35019cdf933c1816e8522dc5d2557f5238 /includes/crypt.php
parent12e0b0d809c29d435a247798d7318cc9835980ea (diff)
fixes
Diffstat (limited to 'includes/crypt.php')
-rw-r--r--[-rwxr-xr-x]includes/crypt.php24
1 files changed, 9 insertions, 15 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";
-
-switch ($crypt_system) {
- case "crypt":
- return "{crypt}".crypt($passwort, "77");
- case "md5":
- return md5($passwort);
+ function PassCrypt($passwort) {
+ include "config.php";
+
+ switch ($crypt_system) {
+ case "crypt":
+ return "{crypt}" . crypt($passwort, "77");
+ case "md5":
+ return md5($passwort);
+ }
}
-
-}
-
-
-
?>