removed wikisql user
[lhc/web/wiklou.git] / maintenance / changePassword.php
index 526feb7..591a82b 100644 (file)
 class ChangePassword {
        var $dbw;
        var $user, $password;
-       
+
        function ChangePassword( $user, $password ) {
                $this->user = User::newFromName( $user );
                $this->password = $password;
-               
+
                $this->dbw =& wfGetDB( DB_MASTER );
        }
 
        function main() {
                $fname = 'ChangePassword::main';
-               
+
                $this->dbw->update( 'user',
                        array(
                                'user_password' => wfEncryptPassword( $this->user->getID(), $this->password )
@@ -40,7 +40,7 @@ $optionsWithArgs = array( 'user', 'password' );
 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" .
@@ -50,3 +50,4 @@ if( in_array( '--help', $argv ) )
 
 $cp = new ChangePassword( @$options['user'], @$options['password'] );
 $cp->main();
+?>