Update wpri.class.php