Skip to content

Instantly share code, notes, and snippets.

View Xhonor's full-sized avatar
🤡
BIG DICK IS BACK IN TOWN

Aleksey Osipenko Xhonor

🤡
BIG DICK IS BACK IN TOWN
View GitHub Profile
<?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'];
<?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;