-
Notifications
You must be signed in to change notification settings - Fork 143
/
demo.php
153 lines (152 loc) · 4.9 KB
/
demo.php
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php
require ('steamauth/steamauth.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SteamAuth Demo</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.table {
table-layout: fixed;
word-wrap: break-word;
}
</style>
</head>
<body style="background-color: #EEE;">
<div class="container" style="margin-top: 30px; margin-bottom: 30px; padding-bottom: 10px; background-color: #FFF;">
<h1>SteamAuth Demo</h1>
<span class="small pull-left" style="padding-right: 10px;">for SteamAuth 3.2</span>
<hr>
<?php
if(!isset($_SESSION['steamid'])) {
echo "<div style='margin: 30px auto; text-align: center;'>Welcome Guest! Please log in!<br>";
loginbutton();
echo "</div>";
} else {
include ('steamauth/userInfo.php');
?>
<div style='float:left;'>
<a href='https://github.com/SmItH197/SteamAuthentication'>
<button class='btn btn-success' style='margin: 2px 3px;' type='button'>GitHub Repo</button>
</a>
<a href='https://github.com/SmItH197/SteamAuthentication/releases'>
<button class='btn btn-warning' style='margin: 2px 3px;' type='button'>Download</button>
</a>
</div>
<br>
<br>
<h4 style='margin-bottom: 3px; float:left;'>Steam WebAPI-Output:</h4><span style='float:right;'><?php logoutbutton(); ?></span>
<table class='table table-striped'>
<tr>
<td><b>Variable name</b></td>
<td><b>Value</b></td>
<td><b>Description</b></td>
</tr>
<tr>
<td>$steamprofile['steamid']</td>
<td><?=$steamprofile['steamid']?></td>
<td>SteamID64 of the user</td>
</tr>
<tr>
<td>$steamprofile['communityvisibilitystate']</td>
<td><?=$steamprofile['communityvisibilitystate']?></td>
<td>1 - Account not visible; 3 - Account is public (Depends on the relationship of your account to the others)</td>
</tr>
<tr>
<td>$steamprofile['profilestate']</td>
<td><?=$steamprofile['profilestate']?></td>
<td>1 - The user has a Steam Community profile; 0 - if not</td>
</tr>
<tr>
<td>$steamprofile['personaname']</td>
<td><?=$steamprofile['personaname']?></td>
<td>Public name of the user</td>
</tr>
<tr>
<td>$steamprofile['lastlogoff']</td>
<td><?=$steamprofile['lastlogoff']?></td>
<td>
<a href='http://www.unixtimestamp.com/' target='_blank'>Unix timestamp</a> of the user's last logoff
</td>
</tr>
<tr>
<td>$steamprofile['profileurl']</td>
<td><?=$steamprofile['profileurl']?></td>
<td>Link to the user's profile</td>
</tr>
<tr>
<td>$steamprofile['personastate']</td>
<td><?=$steamprofile['personastate']?></td>
<td>0 - Offline, 1 - Online, 2 - Busy, 3 - Away, 4 - Snooze, 5 - looking to trade, 6 - looking to play</td>
</tr>
<tr>
<td>$steamprofile['realname']</td>
<td><?=$steamprofile['realname']?></td>
<td>"Real" name</td>
</tr>
<tr>
<td>$steamprofile['primaryclanid']</td>
<td><?=$steamprofile['primaryclanid']?></td>
<td>The ID of the user's primary group</td>
</tr>
<tr>
<td>$steamprofile['timecreated']</td>
<td><?=$steamprofile['timecreated']?>
</td>
<td>
<a href='http://www.unixtimestamp.com/' target='_blank'>Unix timestamp</a> for the time the user's account was created
</td>
</tr>
<tr>
<td>$steamprofile['uptodate']</td>
<td><?=$steamprofile['uptodate']?></td>
<td>
<a href='http://www.unixtimestamp.com/' target='_blank'>Unix timestamp</a> for the time the user's account information was last updated
</td>
</tr>
<tr>
<td>$steamprofile['avatar']</td>
<td>
<img src='<?=$steamprofile['avatar']?>'><br>
<?=$steamprofile['avatar']?>
</td>
<td>Address of the user's 32x32px avatar</td>
</tr>
<tr>
<td>$steamprofile['avatarmedium']</td>
<td>
<img src='<?=$steamprofile['avatarmedium']?>'><br>
<?=$steamprofile['avatarmedium']?>
</td>
<td>Address of the user's 64x64px avatar</td>
</tr>
<tr>
<td>$steamprofile['avatarfull']</td>
<td>
<img src='<?=$steamprofile['avatarfull']?>'><br>
<?=$steamprofile['avatarfull']?>
</td>
<td>Address of the user's 184x184px avatar</td>
</tr>
</table>
<?php
}
?>
<hr>
<div class="pull-right">
<i>This page is powered by <a href="http://steampowered.com">Steam</a></i>
</div>
<a href="https://github.com/SmItH197/SteamAuthentication">GitHub Repo</a><br>
Demo page by <a href="https://github.com/blackcetha" target="_blank">BlackCetha</a>
</div>
<!--Version 4.0-->
</body>
</html>