Advertisement
Guest User

Untitled

a guest
Jun 15th, 2016
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1.  
  2.  
  3. $steamauth['apikey'] = '37F5F0*****************6B86A5A25'; // Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey
  4. $steamauth['domainname'] = 'https://ultimate-rp.net/'; // The main URL of your website displayed in the login page
  5. $steamauth['buttonstyle'] = 'large_no'; // Style of the login button [small|large_no|large]
  6.  
  7. $steamauth['logoutpage'] = 'index.php'; // Page to redirect to after a successfull logout (from the directory the SteamAuth-folder is located in) - NO slash at the beginning!
  8. $steamauth['loginpage'] = 'index.php'; // Page to redirect to after a successfull login (from the directory the SteamAuth-folder is located in) - NO slash at the beginning!
  9.  
  10. // Security Stuff
  11. $encryption_password = 'xMtOdz'; // Password used for openssl encryption and decryption. Can be any value really, just make it secure, don't change it after installation
  12. $encryption_iv = 'kEiWb57Pda6YlmXE'; // Another encryption security factor. This value can be anything, but has to be EXACTLY 16 characters
  13.  
  14. // This is the URL / path that someone will be redirected to if they visit your website and are not logged into Polymer. Set this as your
  15. // forums page, or wherever your normal website is (you may have had to move it to install Polymer).
  16. // This is Polymer's fix to being installed on the webserver root, so you can still make other parts of your site
  17. // automatically load without the need for users to add the directory name to the URL. Then on a different part of your site, you can link admins
  18. // to the login.php page, and that will allow them to login to Polymer. Once logged in, users aren't redirected.
  19. // (NOT NEEDED AFTER VERSION 1.0.0!)
  20. $RedirectUrl = '/'; // Deafault: '/login.php', use this if you don't have any other page to redirect to
  21.  
  22. $Polymer_directory = '/'; // Name of the folder that Polymer is installed in
  23.  
  24. // Database settings
  25. $dbhost = '127.0.0.1';
  26. $dbuser = 'Ultimate_log';
  27. $dbpass = '*****************';
  28. $dbname = 'Ultimate_log';
  29. $dbport = 3306;
  30.  
  31. // IGNORE ANYTHING BELOW THIS LINE
  32. if (empty($steamauth['apikey'])) {
  33. die('<p class=\'alert alert-danger\'>Please supply an API Key</p>');
  34. }
  35. if (empty($steamauth['domainname'])) {
  36. $steamauth['domainname'] = 'localhost';
  37. }
  38. if ($steamauth['buttonstyle'] != 'small' and $steamauth['buttonstyle'] != 'large') {
  39. $steamauth['buttonstyle'] = 'large_no';
  40. }
  41.  
  42. $db = new PDO('mysql:host='.$dbhost.';dbname='.$dbname.';port='.$dbport.'', $dbuser, $dbpass);
  43. $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement