Advertisement
tjromano

Config.php

Sep 9th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.16 KB | None | 0 0
  1. <?php
  2. /*
  3.  * This is a PHP Secure login system.
  4.  */
  5. //Define MySQL database parameters
  6.  
  7. $username = "cfauser";
  8. $password = "Me!happy";
  9. $hostname = "localhost";
  10. $database = "cfa";
  11.  
  12. //Define your canonical domain including trailing slash!, example:
  13. $domain= "http://www.chfaloanct.com";
  14.  
  15. //Define sending email notification to webmaster
  16.  
  17. $email='tromano@mbcinteractive.com';
  18. $subject='New user registration notification';
  19. $from='From: www.chfaloanct.com/cfa/';
  20.  
  21. //Define length of salt,minimum=10, maximum=35
  22. $length_salt=15;
  23.  
  24. //Define the maximum number of failed attempts to ban brute force attackers
  25. //minimum is 5
  26. $maxfailedattempt=5;
  27.  
  28. //Define session timeout in seconds
  29. //minimum 60 (for one minute)
  30. $sessiontimeout=180;
  31.  
  32. ////////////////////////////////////
  33. //END OF USER CONFIGURATION/////////
  34. ////////////////////////////////////
  35.  
  36. //DO NOT EDIT ANYTHING BELOW!
  37.  
  38. $dbhandle = mysql_connect($hostname, $username, $password)
  39.  or die("Unable to connect to MySQL");
  40. $selected = mysql_select_db($database,$dbhandle)
  41. or die("Could not select $database");
  42. $loginpage_url= $domain.'/leads/login.php';
  43. $forbidden_url= $domain.'403forbidden.php';
  44. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement