function changeUserPassword($userid, $newpass) { $userid = makeStringSafe($userid); $newpass = makeStringSafe($newpass); doQuery("UPDATE " . getDBPrefix() . "_users SET password = '******' WHERE user_id = " . $userid . ""); logChangeUserPassword($userid); }
<?php