<?
$datum = date("Y-m-d");
function FormatDate($strDate){
	$Adob = explode ("-",$strDate);
	$newdob = $Adob[2];
	if ($Adob[1] == 1)$month = _JANUARY;
	if ($Adob[1] == 2)$month = _FEBRUARY;
	if ($Adob[1] == 3)$month = _MARCH;
	if ($Adob[1] == 4)$month = _APRIL;
	if ($Adob[1] == 5)$month = _MAY;
	if ($Adob[1] == 6)$month = _JUNE;
	if ($Adob[1] == 7)$month = _JULY;
	if ($Adob[1] == 8)$month = _AUGUST;
	if ($Adob[1] == 9)$month = _SEPTEMBER;
	if ($Adob[1] == 10)$month = _OCTOBER;
	if ($Adob[1] == 11)$month = _NOVEMBER;
	if ($Adob[1] == 12)$month = _DECEMBER;
	$newdob = "".$newdob." ".$month." ".$Adob[0];
	return $newdob;
}
$emailbody = "<!-- ".$lang_textmsg." " . $inhalt . " -->
<html><body>
<center><table width='90%' border='0'>
<tr><td align='center' valign='middle' ><a target=\"_blank\" href=\"$nukeurl\">
<img border=\"0\" src=\"$nukeurl/modules/".$module_name."/images/logo.gif\" alt=\"$sitename\" title=\"Newsletter from $sitename\"></a>
</td></tr><tr><td  align='center' valign='top'> <TABLE cellSpacing=0 cellPadding=5 width='100%' border=0>
<TBODY><tr><td><TABLE cellSpacing=0 cellPadding=0 width='100%' border=0><TBODY><tr><TD vAlign=bottom align=right width=50><IMG height=28 alt=''
src='$nukeurl/modules/".$module_name."/templates/T2/top_left.gif' width=50 border=0></td>
<TD vAlign=center align=middle width='100%' background=$nukeurl/modules/".$module_name."/templates/T2/top_center.gif><FONT class=storytitle><b><FONT size='2' face='Verdana, Arial, Helvetica, sans-serif'
class=storycat>$sitename Newsletter: ".FormatDate($datum)."</FONT></b></FONT></td>
<TD vAlign=bottom align=left width=50><IMG height=28 alt='' src='$nukeurl/modules/".$module_name."/templates/T2/top_right.gif' width=50 border=0></td></tr></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width='100%' border=0><TBODY><tr><TD bgColor=#006699> <TABLE cellSpacing=0 cellPadding=0 width='100%' border=0>
<TBODY><tr><TD bgColor=#525e6e> <TABLE cellSpacing=1 cellPadding=1 width='100%' border=0><TBODY><tr>
<TD background=$nukeurl/modules/".$module_name."/templates/T2/bg_cat.gif bgColor=#ffcc00 height=30><DIV align=center> <font size='2' face='Verdana, Arial, Helvetica, sans-serif'><strong>Envoyer par: $lang_sendfrom</strong> $sender <strong> - <b>Sujet:</b>$lang_mailtopic</strong>
$thema</font></DIV></td></tr><tr><TD bgColor=#eaedf4> <TABLE cellSpacing=0 cellPadding=8 width='100%' border=0><TBODY><tr>
<td><FONT size='2' face='Verdana, Arial, Helvetica, sans-serif'>$inhalt <br /> $sign <br /><br /> $newsbody $downbody $wlbody $forumbody $totstats</FONT>
</FONT></td></tr></TBODY></TABLE></td></tr></TBODY></TABLE></td></tr></TBODY></TABLE></td></tr></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width='100%' border=0><TBODY><tr><TD vAlign=top align=right width=40><IMG height=9 alt=''
src='$nukeurl/modules/".$module_name."/templates/T2/bottom_left.gif' width=40 border=0></td>
<TD width='100%' background=$nukeurl/modules/".$module_name."/templates/T2/bottom_center.gif><IMG height=1 alt='' src='$nukeurl/modules/".$module_name."/templates/T2/spacer.gif' width=1 border=0></td>
<TD vAlign=top align=left width=40><IMG height=9 alt='' src='$nukeurl/modules/".$module_name."/templates/T2/bottom_right.gif' width=40 border=0></td>
</tr></TBODY></TABLE></td></tr></TBODY></TABLE></td></tr></table></center>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"89%\" align=\"center\"><tr><td>
<center>$banr</center><br /><hr><img border=\"0\" src=\"$nukeurl/modules/".$module_name."/images/watch.gif\" align=absmiddle><font color=\"red\"><small> $unsub</small></font></td></tr></table></body></html>";
?>            
