Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- if((isset($_COOKIE['username'])) && (isset($_COOKIE['password'])))
- {
- $get_username2 = $_COOKIE['username'];
- $get_md5_password2 = $_COOKIE['password'];
- $get_username_password2 = ($get_username2 . ":" . $get_md5_password2);
- $get_file2 = file_get_contents("accounts/usernames_and_md5_passwords.txt");
- if((!stristr($get_file2, $get_username_password2) === FALSE) && (strlen($get_md5_password2) == 32))
- {
- // MATCH
- echo("<p /><font color='purple' face='Courier' size='3'>Logged In!</font><br />");
- echo("<a href='../logout.php'>Logout</a></br>");
- echo("<a href='../profile.php?username=" . $get_username2 . "'>View Profile</a></br>");
- }
- else
- {
- echo("<form action='../login.php' method='post'><table border='0'><tr><td>");
- echo("<font color='purple' face='Courier' size='3'>Username:</font></td>");
- echo("<td><input type='text' name='username' id='username' /></td></tr>");
- echo("<tr><td><font color='purple' face='Courier' size='3'>Password:</font></td>");
- echo("<td><input type='password' name='password' id='password' /></td></tr>");
- echo("<tr><td> </td><td>");
- echo("<input type='submit' value='l0g1n' id='submit1' name='submit1' /> <a href='../accounts/registration.php'><b>r3g15t3r</b></a></td></tr></table></form>");
- }
- }
- else
- {
- echo("<form action='../login.php' method='post'><table border='0'><tr><td>");
- echo("<font color='purple' face='Courier' size='3'>Username:</font></td>");
- echo("<td><input type='text' name='username' id='username' /></td></tr>");
- echo("<tr><td><font color='purple' face='Courier' size='3'>Password:</font></td>");
- echo("<td><input type='password' name='password' id='password' /></td></tr>");
- echo("<tr><td> </td><td>");
- echo("<input type='submit' value='l0g1n' id='submit1' name='submit1' /> <a href='../accounts/registration.php'><b>r3g15t3r</b></a></td></tr></table></form>");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement