Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header( 'Content-type: text/html; charset=utf-8' );
- $user = 'admin';
- $pass = 'admin';
- if($user != (isset($_POST['user']) ? $_POST['user'] : '') || $pass != (isset($_POST['pass']) ? $_POST['pass'] : '')) :
- echo '<form method="POST" style="width: 200px; margin: auto;">';
- echo '<table>';
- echo '<tr><td>USER:</td><td><input type="text" name="user"></input></td></tr>';
- echo '<tr><td>PASS:</td><td><input type="password" name="pass"></input></td></tr>';
- echo '<tr><td colspan=2 style="text-align: center;"><input type="submit" name="submit" value="Go" style="width: 180px;"></input></td></tr>';
- echo '</table>';
- echo '</form>';
- exit;
- endif;
- //---------------------------------------------------------------
- // DO NOT REMOVE THE CODE ABOVE TO ENSURE BADDIES DON'T USE YOUR
- // SCRIPT!
- // You can use:
- // flush();
- // ob_flush();
- // to flush the output buffering at anytime
- //---------------------------------------------------------------
- ?>
- <?php
- echo 'Begin ...<br />';
- for( $i = 0 ; $i < 10 ; $i++ ) {
- echo $i . '<br />';
- flush();
- ob_flush();
- sleep(1);
- }
- echo 'End ...<br />';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement