<html>
<head>
<meta http-equiv="Content-Language" content="de">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>NUR DIREKT.DE</title>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="FF0000">
<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0" height="475">
<tr>
<td bgcolor="#FF0000" width="14" align="center" valign="top"> </td>
<td bgcolor="#FCFF00" valign="top">
<table border="1" width="100%" id="table4" cellspacing="0" cellpadding="10" height="100%">
<tr>
<td bgcolor="#FCFF00" valign="top">
<!--INHALT //-->
<?PHP
require("../include/config.inc.php");
require("../include/db_mod.php");
require("../include/session.php");
global $CONFIG;
$server = "***";
$db_user = "***";
$db_pass = "***";
if($TODO=="SEND"){
$user_result=GetDBData($CONFIG[table_user],"u_email","WHERE u_id='$UID'");
while($test=mysql_fetch_array($user_result)){
$email=$test[0];
}
#$mailto="info@nurdirekt.de";
$mailto="liebeskleines@freenet.de";
$subject="Kontaktformular NURDIREKT";
$header="From: $email\nReply-To:$email\nX-Mailer:PHP/".phpversion();
mail($mailto, $subject, $text, "From: $email");
echo "<center>Ihre Anfrage wurde gesendet.</center>";
echo "<meta http-equiv='refresh' content='2; URL=contact.php?UID=".$UID."&SID=".SID."'>";
}
else{
?>
<form method="POST" action="contact.php" name="emailform">
<table border="0" id="table2">
<tr>
<td width="150" valign="top">Nachricht</td>
<td><textarea rows="5" name="text" cols="34"></textarea></td>
</tr>
<tr>
<td></td><td>
<p align="center">
<input type="hidden" name="TODO" value="SEND">
<input type="hidden" name="UID" value="<? echo $UID; ?>">
<a href="javascript:emailform.submit()"><img src="../images/button_email.gif" border="0"></a></td>
</tr>
</table>
</form>
<?
}
?>
</td></tr>
</table>
</td>
</tr>
<tr><td colspan="3" bgcolor="#FF0000" height="14" align="center" valign="top"> </td></tr>
</table>
</body>
</html>