<?
session_set_cookie_params(60*60*24);
session_start();
?>
<html><body><center>
<?
$username = $_REQUEST['user'];
if (!isset($username) || empty($username))
{
	echo "<p align='center'>You are not logged in.</p>";
	echo "<a href='with_forms_login.php'>Log in</a><BR>";
}
else
{
	echo "<h2>Here are the images</h2>\n";
	echo "List the images ... <br>";
	echo <<< HERE
                        <form name="form2" action="with_forms_upload_images.php" method="post">
                        <input name="user" type="hidden" value="$username">
                        <input type="submit" value="Upload Images">
                        </form>
			<form name="form3" action="with_forms_logout.php" method="post">
                        <input name="user" type="hidden" value="$username">
                        <input type="submit" value="Log Out">
                        </form>

HERE;

}
?>
</center></body></html>
