From 66c84cedfb411ad6ca0508d9f45d6d33c8ad474d 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"; + } +} +?> + + + + + + + + +