-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSGTrain.php
More file actions
83 lines (72 loc) · 2.79 KB
/
SGTrain.php
File metadata and controls
83 lines (72 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
if(isset($_POST['txt'])){
$txt= $_POST['txt'];
$arr=json_decode ( $txt, true);
if(!isset($arr['rgWishlist'])){
echo 'rgWishlist not set';
die();
}
if(!isset($arr['rgOwnedApps'])){
echo 'rgOwnedApps not set';
die();
}
$wishlist=$arr['rgWishlist'];
$owned=$arr['rgOwnedApps'];
$apps = array(232890,346940,345180,359310,400110,223470,360960,34900,498450,418070,347560,412600,454200,363490,277700,423610,546380); // update with appIds
$wlcount=0;
$notownedcount=0;
$ownedcount=0;
foreach($apps AS $app) {
if (in_array($app, $wishlist)){
//echo "WL Match found for ". $app . "<br />";
$wlcount=$wlcount+1;
$notownedcount=$notownedcount+1;
}
else{
if (in_array($app, $owned)){
//echo "Owned Match found for ". $app. "<br />";
$ownedcount=$ownedcount+1;
}
else{
//echo "No Match not found for ". $app. "<br />";
$notownedcount=$notownedcount+1;
}
}
}
echo "<html><body>";
if($wlcount>0){
echo 'There are some games from your WISHLIST in this train (at least 1). <br />';
}else{
echo 'No games on your wishlist. <br />';
}
if($notownedcount>0){
echo 'There are some games you do NOT own in this train (at least 1). <br />';
}else{
echo 'No games you do not already own. <br />';
}
if($ownedcount>0){
echo 'There are some games you DO own in this train (at least 1). <br />';
}
echo "</body></html>";
}else{
?>
<html><body>
<div align=center valign=center>
<div align=center valign=center style="width:900px;">
This page tells you if there are games in that train, that you do not own, that you do own or that are on your wishlist. <br />
I tested it and it should work, but no guarantee. The sourcecode of this page can be found <a href="https://github.com/KlappPc/MiscUserscripts/blob/master/SGTrain.php">here</a>. <br />
Usage:<br />
1. While being logged into steam go <a href="http://store.steampowered.com/dynamicstore/userdata/">here</a>. <br />
2. Copy the full text (strg+a is your friend).<br />
3. Paste the full text below.<br />
4. Click on "Send".<br /><br />
There should be no personal data whatsoever inside that data and I neither store nor send it to anyone else. The text should only contain lists with appids. <br />
There should be 8 lists: owned apps/packages, ignored apps/packages, wishlist, packages/apps in cart and recommended tags. <br />
I do only use owned apps (rgOwnedApps) and wishlist (rgWishlist). Everything else can be removed. If you want to remove stuff or want to check whats inside please use an JSON editor like <a href="http://www.jsoneditoronline.org/">this</a>.<br /><br />
<form action="#" method="post"><textarea name="txt" style="width:700px;"></textarea><br /> <button>Send</button></form><br /> <br />
PS: I don't use a "normal" method like parsing your (public) profile or such, because I am lazy^^.
</div></div>
</body></html>
<?
}
?>