Update events.class.php