Update base.class.php