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

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