<body bgcolor=#999999 vlink=#003366 alink=#003366>
<font color=#003366 font face=Arial>
<center>
<table bgcolor=#999999>
<tr>
<td>
<form action="delete.php">
<input type="hidden" name="num" value="<?php echo($num); ?>">
<input type="hidden" name="username" value="<?php echo $username; ?>">
<input type="hidden" name="password" value="<?php echo $password; ?>">
<input type="hidden" name="mailserver" value="<?php echo $mailserver; ?>">
<input type="image" src="http://www.michael.vuurwerk.nl/delete.gif" border=0 alt=delete_message>
</form>
</td>
<td>
<form action="reply.php">
<input type="hidden" name="num" value="<?php echo($num); ?>">
<input type="hidden" name="username" value="<?php echo $username; ?>">
<input type="hidden" name="password" value="<?php echo $password; ?>">
<input type="hidden" name="mailserver" value="<?php echo $mailserver; ?>">
<input type="image" src="http://www.michael.vuurwerk.nl/reply.gif" border=0 alt=reply_message>
</form>
</td>
<td>
<form action="imap.php">
<input type="hidden" name="num" value="<?php echo $num; ?>">
<input type="hidden" name="username" value="<?php echo $username; ?>">
<input type="hidden" name="password" value="<?php echo $password; ?>">
<input type="hidden" name="mailserver" value="<?php echo $mailserver; ?>">
<input type="image" src="http://www.michael.vuurwerk.nl/inbox.gif" border=0 alt=inbox>
</form>
</td>
<td>
<form action="create.php">
<input type="hidden" name="num" value="<?php echo, $num; ?>">
<input type="hidden" name="username" value="<?php echo $username; ?>">
<input type="hidden" name="password" value="<?php echo $password; ?>">
<input type="hidden" name="mailserver" value="<?php echo $mailserver; ?>">
<input type="image" src="http://www.michael.vuurwerk.nl/create.gif" border=0 alt=create_message>
</form>
</td>
<td>
<form action="login.php">
<input type="hidden" name="num" value="<?php echo $num; ?>">
<input type="hidden" name="username" value="<?php echo $username;?>">
<input type="hidden" name="password" value="<?php echo $password; ?>">
<input type="hidden" name="mailserver" value="<?php echo $mailserver; ?>">
<input type="image" src="http://www.michael.vuurwerk.nl/logout.gif" border=0 alt=logout>
</form>
</td>
</tr>
</table>
<IMG alt="" border=0 height=100 src="Webmail.gif" width=504
<table bgcolor=#999999 cellspacing=0 cellpadding=0 width=0 border1>
<tr>
<td>
</td>
</tr>
</table>
<table bgcolor=#999999 width="70%" height="30%" >
<tr>
<td><center>
<table bgcolor=#999999>
<tr>
<td>
<font face=Arial><font color=#003366>
<?php
//imap.php
if (isset($username)) {$user = base64_decode("$username");}
if (!isset($username)) {$user = $user;}
if (isset($password)) {$pass = base64_decode("$password");}
if (!isset($password)) {$pass = $pass;}
$mailserver = $mailserver;
$link = imap_open($mailserver, $user, $pass);
$headers = imap_headers($link);
if (count($headers) == 0) {print "Sorry there is no mail<br>\n";}
for ($x=1; $x <= count($headers); $x++)
{
$idx = $x-1;
echo "<INPUT TYPE=\"checkbox\" NAME=\"$x\" value=$idx>\n";
echo "<a
href=\"http://www.michael.vuurwerk.nl/view.php?num=$x&username=".base64_encode("$user")."&password=".base64_encode("$pass")."&mailserver=$mailserver\">$headers[$idx]</a><br>";
}
?>
<font color=#003366>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>