A command line (CLI) password reset script. Simply give it a username and a new password and it will change it for you. Completely safe to have in the web root since it only allows access from the CLI. Not safe on servers were other untrusted users have access to your forum code (why are they on the server anyway?)
$ php password_reset.php Bob anewpassword
If no password is given, a random password is created and used.
$ php password_reset.php Bob
The password for Bob has been changed to "63b102d5"
$ ...