2008-09-10 05:42:44 +02:00
|
|
|
<?php
|
2011-06-01 12:13:39 +02:00
|
|
|
function PassCrypt($passwort) {
|
2011-06-01 14:30:29 +02:00
|
|
|
include "../../config/config.php";
|
2011-06-01 12:13:39 +02:00
|
|
|
|
|
|
|
switch ($crypt_system) {
|
|
|
|
case "crypt":
|
|
|
|
return "{crypt}" . crypt($passwort, "77");
|
|
|
|
case "md5":
|
|
|
|
return md5($passwort);
|
|
|
|
}
|
2008-09-10 05:42:44 +02:00
|
|
|
}
|
|
|
|
?>
|