Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <?php
  2. header( 'Content-type: text/html; charset=utf-8' );
  3. $user = 'admin';
  4. $pass = 'admin';
  5. if($user != (isset($_POST['user']) ? $_POST['user'] : '') || $pass != (isset($_POST['pass']) ? $_POST['pass'] : '')) :
  6. echo '<form method="POST" style="width: 200px; margin: auto;">';
  7. echo '<table>';
  8. echo '<tr><td>USER:</td><td><input type="text" name="user"></input></td></tr>';
  9. echo '<tr><td>PASS:</td><td><input type="password" name="pass"></input></td></tr>';
  10. echo '<tr><td colspan=2 style="text-align: center;"><input type="submit" name="submit" value="Go" style="width: 180px;"></input></td></tr>';
  11. echo '</table>';
  12. echo '</form>';
  13. exit;
  14. endif;
  15. //---------------------------------------------------------------
  16. // DO NOT REMOVE THE CODE ABOVE TO ENSURE BADDIES DON'T USE YOUR
  17. // SCRIPT!
  18.  
  19. // You can use:
  20. // flush();
  21. // ob_flush();
  22. // to flush the output buffering at anytime
  23. //---------------------------------------------------------------
  24. ?>
  25.  
  26. <?php
  27. echo 'Begin ...<br />';
  28. for( $i = 0 ; $i < 10 ; $i++ ) {
  29. echo $i . '<br />';
  30. flush();
  31. ob_flush();
  32. sleep(1);
  33. }
  34. echo 'End ...<br />';
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement