From 3d6790614bb0dc776e02a95835e5c274263d1d1a Mon Sep 17 00:00:00 2001
From: Luke Shumaker Password Hasher for PHP Shell
-
-
Your username cannot contain any of the following reserved - word: "null", "yes", "no", "true", or - "false". The following characters are also prohibited: - " " (space), "[" (left bracket), "|" (pipe), - "&" (ampersand), "~" (tilde), "!" (exclamation - mark), "(" (left parenthesis), or ")" (right - parenthesis).
' . "\n"; - - echo 'Please choose another username and try again.
' . "\n"; - - } else { - echo "Write the following line into config.php " . - "in the users section:
\n"; - - if ( function_exists('sha1') ) { $fkt = 'sha1' ; } else { $fkt = 'md5' ; } ; - $salt = dechex(mt_rand()); - - $hash = $fkt . ':' . $salt . ':' . $fkt($salt . $password); - - echo "\n"; - echo htmlentities(str_pad($username, 8) . ' = "' . $hash . '"') . "\n"; - echo "\n"; - } -} -?> - - - - - - - - -