summaryrefslogtreecommitdiff
path: root/includes/crypt.php
blob: 8de22030e61be56f1295c7fcbe0a36c07909963f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
  function PassCrypt($passwort) {
    include "../../config/config.php";

    switch ($crypt_system) {
      case "crypt":
        return "{crypt}" . crypt($passwort, "77");
      case "md5":
        return md5($passwort);
    }
  }
?>