Advertisement
Guest User

settings

a guest
Jun 3rd, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1.  
  2. application/x-httpd-php settings.php ( ASCII C++ program text )
  3.  
  4. <?php
  5. // Configuration
  6. $steamauth['apikey'] = 'FEE54D3F26B18A3AC2599C21B50A3021'; // Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey
  7. $steamauth['domainname'] = 'redcrystalgaming.com'; // The main URL of your website displayed in the login page
  8. $steamauth['buttonstyle'] = 'large_no'; // Style of the login button [small|large_no|large]
  9.  
  10. $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!
  11. $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!
  12.  
  13. // Security Stuff
  14. $encryption_password = '0Bpvh9'; // Password used for openssl encryption and decryption. Can be any value really, just make it secure, don't change it after installation
  15. $encryption_iv = 'IFyGq6w5qyIdP7eV'; // Another encryption security factor. This value can be anything, but has to be EXACTLY 16 characters
  16.  
  17. // 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
  18. // forums page, or wherever your normal website is (you may have had to move it to install Polymer).
  19. // This is Polymer's fix to being installed on the webserver root, so you can still make other parts of your site
  20. // 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
  21. // to the login.php page, and that will allow them to login to Polymer. Once logged in, users aren't redirected.
  22. // (NOT NEEDED AFTER VERSION 1.0.0!)
  23. $RedirectUrl = 'panel'; // Deafault: '/login.php', use this if you don't have any other page to redirect to
  24.  
  25. $Polymer_directory = 'panel'; // Name of the folder that Polymer is installed in
  26.  
  27. // Database settings
  28. $dbhost = 'localhost';
  29. $dbuser = 'redcryst_root';
  30. $dbpass = 'hunter';
  31. $dbname = 'redcryst_adminpanel';
  32. $dbport = 3306;
  33.  
  34. // IGNORE ANYTHING BELOW THIS LINE
  35. if (empty($steamauth['apikey'])) {
  36. die('<p class=\'alert alert-danger\'>Please supply an API Key</p>');
  37. }
  38. if (empty($steamauth['domainname'])) {
  39. $steamauth['domainname'] = 'localhost';
  40. }
  41. if ($steamauth['buttonstyle'] != 'small' and $steamauth['buttonstyle'] != 'large') {
  42. $steamauth['buttonstyle'] = 'large_no';
  43. }
  44.  
  45. $db = new PDO('mysql:host='.$dbhost.';dbname='.$dbname.';port='.$dbport.'', $dbuser, $dbpass);
  46. $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement