-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathhome.php
21 lines (20 loc) · 807 Bytes
/
home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
require_once('steamauth/steamauth.php');
require_once('class.php');
# You would uncomment the line beneath to make it refresh the data every time the page is loaded
// unset($_SESSION['steam_uptodate']);
if (!isset($_SESSION['steamid'])) {
echo "welcome guest! please login<br><br>";
loginbutton(); //login button
} else {
include('steamauth/userInfo.php');
//Protected content
$dz = new dzTraderBankLogging();
if ($dz->isAdmin($steamprofile['steamid'])) {
echo "You're an admin<br>";
};
echo "Welcome back " . $steamprofile['personaname'] . "</br>";
echo "" . $steamprofile['steamid'] . "</br>";
echo "here is your avatar: </br>" . '<img src="' . $steamprofile['avatarfull'] . '" title="" alt="" /><br>'; // Display their avatar!
logoutbutton();
}