Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- ////////////////////////////////
- //////// Steam Key ////////////
- //////////////////////////////
- $steamauth['apikey'] = "88E9A1C343AB6B1D465EDBF058C54B23"; // Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey
- /////////////////////////////////////////
- //////// Steam Button Config ///////////
- ///////////////////////////////////////
- $steamauth['buttonstyle'] = "large"; // Style of the login button [small|large_no|large]
- //////////////////////////////////
- //////// MySQL Config ///////////
- ////////////////////////////////
- $connectionname = "localhost"; // Default is localhost
- $username = "loyalcse_apps"; // Username of your database
- $password = "Niggers123"; // Password of your database
- $dbname = "loyalcse_apps"; // Database name
- $tablename = "applications"; // Name of the table where insert info (By default: applications)
- $allowdev = true; // Allow the developer of this script to access to your Admin Panel to fix any Support Ticket easier (THIS WILL BE VALIDATED ONCE YOU INSTALL THE SYSTEM FOR THE FIRST TIME). (SET IT TO FALSE IF YOU'RE TOO PARANOIC)
- /////////////////////////////
- //////// SteamID ///////////
- ///////////////////////////
- $user = "76561198121114919"; // Your SteamID64, get it by using steamid.io (normally is filled up automatly)
- /////////////////////////////////
- //////// Site Config ///////////
- ///////////////////////////////
- $indexurl = "http://loyalcservers.com/apply/"; // The URL where is installed the system - SLASH at the ending!
- $allowapps = "allow"; // Allow/Disallow submiting of applications. (allow / disallow)
- $uploadsys = true; // Activate/Deactivate the uploading system. (true / false)
- //////////////////////////////////
- //////// Email Config ///////////
- ////////////////////////////////
- // WARNING!!!! IF YOU DON'T HAVE BASIC HTML AND PHP CODING KNOWLEDGE, JUST PLEASE DON'T TOUCH THIS.
- // STRING VALUES:
- //$servername = Your Server Name.
- //$pname = Player Username.
- //$steamid = SteamID64 of username.
- //$userm = User Email.
- //$dreason = Explanation by the admin why the user has been denied.
- //$adminemail = Your email specified at the installation.
- // ACCEPTED EMAIL
- $amessage = "
- <html>
- <head>
- <title>".$servername." Staff Aplication</title>
- </head>
- <body>
- <h3>Dear ".$pname."...</br></h3>
- <h4>After carefully considering your staff application the head staff have not acquired a verdict at the moment. We regret to inform you that your application has been accepted.</h4></br></br>
- <h4>Please allow 7 days before you get your rank. If you make another application before 7 days has passed, your application will be automatically denied.</br></br></h4>
- <h4>".$servername."</br></br></h4>
- <h4>2016 ".$servername.". All rights reserved.</br></br></h4>
- <h4>THIS IS AN AUTOMATED MESSAGE, PLEASE DO NOT REPLY!</h3></h4>
- </body>
- </html>
- ";
- // DENIED EMAIL
- $dmessage = "
- <html>
- <head>
- <title>".$servername." Staff Aplication</title>
- </head>
- <body>
- <h3>Dear ".$pname."...</br></h3
- <h4>After carefully considering your staff application the head staff have acquired a verdict. We regret to inform you that your application has been denied.</h4></br></br>
- <h4>Please allow 7 days before you apply again. If you make another application before 7 days has passed it will be automatically denied.</h4></br></br>
- <h4>You have been denied for the next reasons:</h4><br><br>
- ".$dreason."<br><br>
- <h4>If you think this is an error, please contact us at ".$adminemail.".</h4></br></br>
- <h4>".$servername."</br></br></h4>
- <h4>2016 ".$servername." All rights reserved.</br></br></h4>
- <h4>THIS IS AN AUTOMATED MESSAGE, PLEASE DO NOT REPLY!</h3></h4>
- </body>
- </html>
- ";
- // ATTENTION: IF YOU'RE TRYING TO INSTALL THIS SYSTEM WHILE YOU'RE NOT THE PERSON WHO BOUGHT IT, IT WILL COUNT AS LEAK AND IT WILL BE NOTIFIED TO SCRIPTFODDER ADMINS
- // System stuff, dont touch this
- $pname = $_POST['pname'];
- $dreason = $_POST['dreason'];
- $steamauth['loginpage'] = $indexurl;
- $steamauth['logoutpage'] = "";
- $steamauth['domainname'] = $indexurl;
- 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>");}
- if (empty($steamauth['domainname'])) {$steamauth['domainname'] = "localhost";}
- if ($steamauth['buttonstyle'] != "small" and $steamauth['buttonstyle'] != "large") {$steamauth['buttonstyle'] = "large_no";}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement