Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * This is a PHP Secure login system.
- */
- //Define MySQL database parameters
- $username = "cfauser";
- $password = "Me!happy";
- $hostname = "localhost";
- $database = "cfa";
- //Define your canonical domain including trailing slash!, example:
- $domain= "http://www.chfaloanct.com";
- //Define sending email notification to webmaster
- $email='tromano@mbcinteractive.com';
- $subject='New user registration notification';
- $from='From: www.chfaloanct.com/cfa/';
- //Define length of salt,minimum=10, maximum=35
- $length_salt=15;
- //Define the maximum number of failed attempts to ban brute force attackers
- //minimum is 5
- $maxfailedattempt=5;
- //Define session timeout in seconds
- //minimum 60 (for one minute)
- $sessiontimeout=180;
- ////////////////////////////////////
- //END OF USER CONFIGURATION/////////
- ////////////////////////////////////
- //DO NOT EDIT ANYTHING BELOW!
- $dbhandle = mysql_connect($hostname, $username, $password)
- or die("Unable to connect to MySQL");
- $selected = mysql_select_db($database,$dbhandle)
- or die("Could not select $database");
- $loginpage_url= $domain.'/leads/login.php';
- $forbidden_url= $domain.'403forbidden.php';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement