engelsystem/includes/crypt.php

13 lines
242 B
PHP
Raw Normal View History

<?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);
}
}
?>