From 0b04bbc64aba3ca47c6d4508b7806101bd1ac039 Mon Sep 17 00:00:00 2001 From: dennydai Date: Mon, 15 Feb 2016 11:44:48 +0800 Subject: [PATCH] improve steam plugin --- plugins/steam.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/steam.php b/plugins/steam.php index 3070fa4..2d78e2a 100644 --- a/plugins/steam.php +++ b/plugins/steam.php @@ -1,6 +1,6 @@ /", file_get_contents("https://steamdb.info/calculator/".$plugin_steam_steamid."/"), $plugin_steam_account_value); $msg = "Personal Name: ".$plugin_steam_PlayerSummaries['response']['players'][0]['personaname']."\n". "Steam Level: ".$plugin_steam_PlayerLevel['response']['player_level']."\n". @@ -25,7 +27,10 @@ if ($plugin_steam_steamid['response']['success'] == 1){ //"Recently Played: ".$plugin_steam_RecentlyPlayedGames['response']['games'][0]['name']."\n". "Last Log Off (".date('T')."): ".date("Y-m-d H:i:s", $plugin_steam_PlayerSummaries['response']['players'][0]['lastlogoff'])."\n". "Profile URL: ".$plugin_steam_PlayerSummaries['response']['players'][0]['profileurl']."\n". - "Owned Games (".$plugin_steam_OwnedGames['response']['game_count']."): ".substr($plugin_steam_OwnedGames_String, 0, strlen($plugin_steam_OwnedGames_String)-1); + //"Owned Games (".$plugin_steam_OwnedGames['response']['game_count']."): ".substr($plugin_steam_OwnedGames_String, 0, strlen($plugin_steam_OwnedGames_String)-1)."\n".$_GET + "Owned Games (".$plugin_steam_OwnedGames['response']['game_count']."): ".$plugin_steam_PlayerSummaries['response']['players'][0]['profileurl']."games/?tab=all"."\n". + "Account Value: https://steamdb.info/calculator/".$plugin_steam_steamid."/"."\n". + "\n".str_replace("% of my games, valued at a total of ","% of those games, valued at a total of ",$plugin_steam_account_value[1]); }else{ $msg = "User Not Found :("; }