Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $steamauth['apikey'] = '37F5F0*****************6B86A5A25'; // Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey
- $steamauth['domainname'] = 'https://ultimate-rp.net/'; // The main URL of your website displayed in the login page
- $steamauth['buttonstyle'] = 'large_no'; // Style of the login button [small|large_no|large]
- $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!
- $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!
- // Security Stuff
- $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
- $encryption_iv = 'kEiWb57Pda6YlmXE'; // Another encryption security factor. This value can be anything, but has to be EXACTLY 16 characters
- // 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
- // forums page, or wherever your normal website is (you may have had to move it to install Polymer).
- // This is Polymer's fix to being installed on the webserver root, so you can still make other parts of your site
- // 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
- // to the login.php page, and that will allow them to login to Polymer. Once logged in, users aren't redirected.
- // (NOT NEEDED AFTER VERSION 1.0.0!)
- $RedirectUrl = '/'; // Deafault: '/login.php', use this if you don't have any other page to redirect to
- $Polymer_directory = '/'; // Name of the folder that Polymer is installed in
- // Database settings
- $dbhost = '127.0.0.1';
- $dbuser = 'Ultimate_log';
- $dbpass = '*****************';
- $dbname = 'Ultimate_log';
- $dbport = 3306;
- // IGNORE ANYTHING BELOW THIS LINE
- if (empty($steamauth['apikey'])) {
- die('<p class=\'alert alert-danger\'>Please supply an API Key</p>');
- }
- if (empty($steamauth['domainname'])) {
- $steamauth['domainname'] = 'localhost';
- }
- if ($steamauth['buttonstyle'] != 'small' and $steamauth['buttonstyle'] != 'large') {
- $steamauth['buttonstyle'] = 'large_no';
- }
- $db = new PDO('mysql:host='.$dbhost.';dbname='.$dbname.';port='.$dbport.'', $dbuser, $dbpass);
- $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement