This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!$_SESSION['steamid'] == ""){ | |
include("settings.php"); | |
if (empty($_SESSION['steam_uptodate']) or $_SESSION['steam_uptodate'] == false or empty($_SESSION['steam_personaname'])) { | |
@ $url = file_get_contents("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=".$steamauth['apikey']."&steamids=".$_SESSION['steamid']); | |
$content = json_decode($url, true); | |
$_SESSION['steam_steamid'] = $content['response']['players'][0]['steamid']; | |
$_SESSION['steam_communityvisibilitystate'] = $content['response']['players'][0]['communityvisibilitystate']; | |
$_SESSION['steam_profilestate'] = $content['response']['players'][0]['profilestate']; | |
$_SESSION['steam_personaname'] = $content['response']['players'][0]['personaname']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include "core.php"; | |
head(); | |
// Get Userid | |
if(!$_GET['id']){ | |
echo '<meta http-equiv="refresh" content="0;url=/index.php">'; | |
} | |
$username = $_GET['id']; | |
$okv = 1; |