PHP code example of smith197 / steamauthentication
1. Go to this page and download the library: Download smith197/steamauthentication library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
smith197 / steamauthentication example snippets
if(!isset($_SESSION['steamid'])) {
loginbutton(); //login button
} else {
if (isset($_GET['update'])){
if (isset($_GET['update']) || !empty($_SESSION['steam_uptodate']) && $_SESSION['steam_uptodate']+(24*60*60) < time()){