Update smapi.php