/**
* Change the password of a given user
*
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
*
* @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
* @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
$this->user = User::newFromName( $user );
$this->password = $password;
- $this->dbw =& wfGetDB( DB_MASTER );
+ $this->dbw = wfGetDB( DB_MASTER );
}
function main() {
require_once 'commandLine.inc';
if( in_array( '--help', $argv ) )
- die(
+ wfDie(
"Usage: php changePassword.php [--user=user --password=password | --help]\n" .
"\toptions:\n" .
"\t\t--help\tshow this message\n" .
$cp = new ChangePassword( @$options['user'], @$options['password'] );
$cp->main();
+?>