File: /var/www/vhosts/onlinedev.com/httpdocs/newsletter/desabonner.php
<table width="690" border="0" align="center" cellpadding="0" cellspacing="0" style="font:12px Arial, Helvetica, sans-serif; color:#333333;">
<tr>
<td height="29" colspan="5"><img src="http://www.onlinedev.com/newsletter/s1.gif" width="690" height="29"></td>
</tr>
<tr>
<td width="9" rowspan="4" valign="top"><img src="http://www.onlinedev.com/newsletter/s2.gif" width="9" height="446"></td>
<td valign="top" style="padding-left:20px;text-align:center;">
<?php
if ($_REQUEST['email'] && preg_match('/.*@.+\..+/', $_REQUEST['email']))
{
$fp = fopen(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'desabonner.csv', 'a');
fwrite($fp, '"'.date('Y-m-d H:i:s').'","'.$_REQUEST['email'].'"'."\n");
fclose($fp);
echo '<div align="center">Votre demande a été prisé en compte</div>';
}
else
{
if ($_REQUEST['email'])
{
echo '<p>Adresse email invalide</p>';
}
echo '<form method="post" action="'.$_SERVER['PHP_SELF'].'">
Votre adresse email: <input type="text" name="email" /><input type="submit" value="Envoyer" />
</form>';
}
?>
</td>
<td colspan="2" valign="top"><a href="http://www.onlinedev.com"><img src="http://www.onlinedev.com/newsletter/onlinedev_logo.gif" width="181" height="117" border="0" style="margin:25px 0 0 0;"></a></td>
<td width="31" rowspan="2" valign="top"><img src="http://www.onlinedev.com/newsletter/s3.gif" width="31" height="297"></td>
</tr>
<tr>
<td height="129" valign="bottom">
<div style="padding:0 0 0 24px;">
<strong style="font-size:16px; color:#476A83;">Online <span style="color:#0083B7;">Développement</span></strong><br>
<span>55, avenue Franklin D. Roosevelt<br>75 008 Paris<br>Tél. : +33 1 55 25 20 17<br><br>
Mail : <a href="mailto:contact@onlinedev.com" style="color:#0083B7;">contact@onlinedev.com</a><br>
Site internet : <a href="http://www.onlinedev.com" style="color:#0083B7;">www.onlinedev.com</a></span>
</div></td>
</tr>
<tr>
<td height="39" colspan="5"><img src="http://www.onlinedev.com/newsletter/s7.gif" width="690" height="39"></td>
</tr>
</table>