function changeUserEmail($userid, $email)
{
    $userid = makeStringSafe($userid);
    $email = makeStringSafe($email);
    doQuery("UPDATE " . getDBPrefix() . "_users SET email = '" . $email . "'  WHERE user_id = " . $userid . "");
    logChangeUserEmail($userid);
}