Example #1
0
function store_user_details($uid)
{
    $details = getPlayerSummary($uid);
    if ($details === false) {
        // Quick fix for Steam non-responsiveness and private user accounts
        // Cannot get user avatar
        return;
    }
    if (is_array($details)) {
        $_SESSION['n'] = $details['personaname'];
        $_SESSION['a'] = $details['avatarfull'];
    }
    return;
}
Example #2
0
\t\t\t\t<div class="panel-body">
\t\t\t\t\t<p class="col-xs-9">Hey! You do not currently have a public account on the SteamLUG site, instead just a session account which means we retain no details about you. We’d like to encourage you to go public, %explain motivation%. Below is roughly what it would look like</p>
\t\t\t\t\t<p class="col-xs-9">Further information can be found in our <a href="/privacy-policy/">Privacy Policy</a>.</p>
\t\t\t\t\t<form method="POST" class="form-horizontal" enctype="multipart/form-data" action="/member/">
\t\t\t\t\t\t<fieldset>
\t\t\t\t\t\t<input type="hidden" name="store" value="STEAMID64HERENOLOLNOTREALLYSESSIONONLYNOHACKSTHANKS">
\t\t\t\t\t\t<input type="submit" class="col-xs-offset-2 btn btn-primary" value="Create">
\t\t\t\t\t\t</fieldset>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t</article>
UPGRADENOW;
        $notDBaccount = true;
        // do we want to trigger another Steam query here? or show minimal data from session?
        // it is about controlling expectation: show what we have, or show what we will show if they promote account?
        $profile = getPlayerSummary($me);
        $profile['isgroupmember'] = $_SESSION['g'];
    } else {
        // Always show the door hanger to delete account…
        $accountUpdate = <<<GAMEOVERMAN
\t\t\t<article class="panel panel-default panel-info">
\t\t\t\t<header class="panel-heading">
\t\t\t\t\t<h3 class="panel-title">Site membership</h3>
\t\t\t\t</header>
\t\t\t\t<div class="panel-body">
\t\t\t\t\t<p class="col-xs-9">We value our members privacy, and will always offer you the ability to control your data.<br />This will remove your personal details from our database, while still leaving intact our event history (which does still contain your SteamID). User information will only rely on session storage until you promote your account again.<br />Further information can be found in our <a href="/privacy-policy/">Privacy Policy</a>.</p>
\t\t\t\t\t<form method="POST" class="form-horizontal" enctype="multipart/form-data" action="/member/">
\t\t\t\t\t\t<fieldset>
\t\t\t\t\t\t<input type="hidden" name="unstore" value="STEAMID64HERENOLOLNOTREALLYSESSIONONLYNOHACKSTHANKS">
\t\t\t\t\t\t<input type="submit" class="btn btn-primary" value="Delete">
\t\t\t\t\t\t</fieldset>
Example #3
0
function getAdminNames()
{
    $users = getPlayerSummary(implode(',', getAdmins()));
    asort($users);
    return $users;
}
Example #4
0
 // retrieve vehivle data
 $vehicleSummary = getVehicleSummaries($vehicles);
 // retrieve Vehicle summary
 $weapons = getWeaponData($PID, $player);
 // retrieve Weapon data
 $weaponSummary = getWeaponSummary($weapons, $player);
 // retrieve weapon summary
 $equipmentSummary = getEquipmentSummary($weapons, $player);
 // retrieve equipment summary
 $kits = getKitData($PID);
 // retrieve kit data
 $kitSummary = getKitSummary($kits, $player);
 // retrieve kits summary
 $maps = getMapData($PID);
 $mapSummary = getMapSummary($maps);
 $playerSummary = getPlayerSummary($player, $weapons, $vehicles, $kits, $armies, $maps);
 // get player summary
 $PlayerAwards = getAwardsByPID($PID);
 $TheaterData = getTheaterData($PID);
 // retrueve Theater Data
 #$awards = getAwardsByPID($PID); // get earned awards
 if (isCached($PID)) {
     $template = getCache($PID);
     $LASTUPDATE = intToTime(getLastUpdate(getcwd() . '/cache/' . $PID . '.cache'));
     $NEXTUPDATE = intToTime(getNextUpdate(getcwd() . '/cache/' . $PID . '.cache', RANKING_REFRESH_TIME));
     $template = str_replace('{:LASTUPDATE:}', $LASTUPDATE, $template);
     $template = str_replace('{:NEXTUPDATE:}', $NEXTUPDATE, $template);
     #echo $template;
 } else {
     include_once './template/playerstats.php';
     // write cache file