2008-09-10 05:42:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
function PassCrypt($passwort) {
|
2008-09-27 21:29:08 +02:00
|
|
|
include "config.php";
|
2008-09-10 05:42:44 +02:00
|
|
|
|
|
|
|
switch ($crypt_system) {
|
|
|
|
case "crypt":
|
|
|
|
return "{crypt}".crypt($passwort, "77");
|
|
|
|
case "md5":
|
|
|
|
return md5($passwort);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|