Aera223

4.php (login)

Aug 17th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <!DOCTYPE html><html lang="en"><title>Test</title><meta name="viewport" content="width=device-width, initial-scale=1.5"><style>html{font-family:corbel; background:#ec9;}body,p,input,h1,h2,h3{padding:0.3em;margin-left:1em;color:#930;background:#dfe;}</style>
  2. <?php
  3. //DATA ENTERED
  4. $k = file_get_contents($_REQUEST['cn'].".tmp");
  5. if($k==""&$_POST['ws']!=""){$set = fopen($_REQUEST['cn'].".tmp", "x");
  6. $txt = time()."
  7. ".$_SERVER['HTTP_USER_AGENT']."
  8. ".crc32($_REQUEST['ws'])."
  9. ".$_REQUEST['sx'];
  10. fwrite($set,$txt); fclose($set);echo"<h3>Registered! Now login below</h3>";}
  11. echo'<h3>Login here.</h3><a href="3.php" style="background:#000;color:#0ff;">If you don\'t have an account, go here.</a><br><form action="5.php" method="post">
  12. <input name="cn" value="'.$_REQUEST['cn'].'" placeholder="Nick"><br>
  13. <input type="hidden" name="login" value="yep">
  14. <input name="ws" type="password" required placeholder="Code" value="">
  15. <button>Enter</button>
  16. <p>Use the tab keys to speed up form-filling. Then press that magic enter button</p></form>';
  17. ?>
Add Comment
Please, Sign In to add comment