document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?PHP
  2. session_start();
  3. if($_SERVER["REQUEST_METHOD"] == "POST")
  4. {
  5.     $usuario = "pedro";
  6.     $pass= "123456";
  7.     if(! ($_POST[\'username\'] == $usuario && $_POST[\'password\'] == $pass) )
  8.     {
  9.         Echo "<html>";
  10.         Echo "<title>MUY mal</title>";
  11.         Echo "<b>Acceso denegado</b>";        
  12.        
  13.         session_destroy() ;
  14.        
  15.         return false;
  16.     }
  17.     else {
  18.    
  19.         Echo "<html>";
  20.         Echo "<title>MUY bien</title>";
  21.         Echo "<b>Acceso concedido</b>";
  22.  
  23.         session_destroy();    
  24.  
  25.         return true;
  26.     }
  27. }
  28. ?>
');