Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- application/x-httpd-php settings.php ( ASCII C++ program text )
- <?php
- // Configuration
- $steamauth['apikey'] = 'FEE54D3F26B18A3AC2599C21B50A3021'; // Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey
- $steamauth['domainname'] = 'redcrystalgaming.com'; // 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 = '0Bpvh9'; // Password used for openssl encryption and decryption. Can be any value really, just make it secure, don't change it after installation
- $encryption_iv = 'IFyGq6w5qyIdP7eV'; // 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 = 'panel'; // Deafault: '/login.php', use this if you don't have any other page to redirect to
- $Polymer_directory = 'panel'; // Name of the folder that Polymer is installed in
- // Database settings
- $dbhost = 'localhost';
- $dbuser = 'redcryst_root';
- $dbpass = 'hunter';
- $dbname = 'redcryst_adminpanel';
- $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