Advertisement
szymski

Untitled

Mar 10th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <?php
  2. $steamauth['apikey'] = "XXXX"; // Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey
  3. $steamauth['domainname'] = "gwa.szymekk.info"; // The main URL of your website displayed in the login page
  4. $steamauth['buttonstyle'] = ""; // Style of the login button [small|large_no|large]
  5. $steamauth['logoutpage'] = "../"; // Page to redirect to after a successfull logout (from the directory the SteamAuth-folder is located in) - NO slash at the beginning!
  6. $steamauth['loginpage'] = "/"; // Page to redirect to after a successfull login (from the directory the SteamAuth-folder is located in) - NO slash at the beginning!
  7.  
  8. // System stuff
  9. if (empty($steamauth['apikey'])) {die("<div style='display: block; width: 100%; background-color: red; text-align: center;'>SteamAuth:<br>Please supply an API-Key!</div>");}
  10. if (empty($steamauth['domainname'])) {$steamauth['domainname'] = "localhost";}
  11. if ($steamauth['buttonstyle'] != "small" and $steamauth['buttonstyle'] != "large") {$steamauth['buttonstyle'] = "large_no";}
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement