Skip to content

A simple PHP Authentication that enables steam users to log into their steam account to access secure content!

Notifications You must be signed in to change notification settings

T3hArco/SteamAuthentication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

Currently in the process of creating a new, improved, cleaner version of this! (4th june 2013)

See a demo at http://smith197.koding.com/steam/index.php !

Foreword

Thanks goes to:

To Install

Upload the files.

Open up steamauth.php and change localhost to your domain Find $api_key and set it to the api key you got from http://steamcommunity.com/dev/apikey Go to line 27 and add you API key there as well.

Now in your file:

add the following:

<?php

require 'steamauth/profilevars.php';

if(!isset($_SESSION['steamid'])) {

    echo "welcome guest! please login \n \n";
    steamlogin(); //login button

}  else {
    //Protected content
    echo "OMG! You logged in! :D \n";
    echo "your steam ID is: " . $_SESSION['steamid'] . "\n"; //prints their steam ID!
    logoutbutton();
}     
?>

About

A simple PHP Authentication that enables steam users to log into their steam account to access secure content!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published