login
<?php
session_start();
if(@$_REQUEST['action'] == 'login')
$_SESSION['authenticated'] = true;
else if(@$_REQUEST['action'] == 'logout')
$_SESSION['authenticated'] = false;
$auth = @$_SESSION['authenticated'];
$action = $auth ? 'logout' : 'login';
?>
<a href="?action=<?=$action?>"><?=$action?></a><br>
<?php
if($auth) {
?>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
........................ <br>
<?php
}
?>
<hr>
<pre><code><?=htmlentities(file_get_contents(__FILE__))?></code></pre>