File size: 2.15Kb
<?php
include("include/vars.php");
require("include/functions.php");
$lang=setlanguage();
require("language/$lang");
$menu=setmenu();
if (!$do) {
$do="main";
}
if ($do=='main') {
$main="<table cellspacing=\"1\" cellpadding=\"3\" border=\"0\" width=\"400\" align=\"center\">
<tr>
<td align=\"center\" colspan=\"2\"><b>$text_4</b><br>$text_94</td>
</tr>
</table>
<form action=\"feedback.php?do=send\" method=\"post\">
<table cellspacing=\"1\" cellpadding=\"3\" border=\"0\" width=\"400\" align=\"center\">
<tr>
<td colspan=\"2\"> </td>
</tr>
<tr>
<td>$text_95</td>
<td>
<input type=\"text\" name=\"sendermail\" size=\"30\" >
</td>
</tr>
<tr>
<td>$text_96</td>
<td>
<input type=\"text\" name=\"mailsubject\" size=\"30\" >
</td>
</tr>
<tr>
<td valign=\"top\" colspan=\"2\"><div align=\"center\">$text_97</div></td>
</tr>
<tr>
<td colspan=\"2\" align=\"center\">
<textarea name=\"mailbody\" cols=\"40\" rows=\"15\" nowrap></textarea>
</td>
</tr>
<tr>
<td align=\"center\" colspan=\"2\">
<input type=\"submit\" name=\"submit\" value=\"$text_98\">
</td>
</tr>
</table>
</form>";
$template = new MyredTemplate("template/template.html");
$template->assign("TITLE", $pagetitle);
$template->assign("MENU", $menu);
$template->assign("MAIN", $main);
$template->myred_print() or die($template->error);
exit;
}
if ($do=='send') {
if (!$sendermail || verify_email($sendermail)!=1) {
$send_error.="$text_41<br>";
}
if (!$mailsubject) {
$send_error.="$text_101<br>";
}
if (!$mailbody) {
$send_error.="$text_102<br>";
}
if ($send_error) {
errormsg($send_error);
exit;
}
$mailbody=stripslashes($mailbody);
mail($adminmail,$mailsubject,$mailbody,"From: $sendermail\nReply-To: $sendermail");
$main="<table cellspacing=\"1\" cellpadding=\"3\" border=\"0\" width=\"400\" align=\"center\">
<tr>
<td>
<p>$text_99</p>
<p>$text_100</p>
<p>$text_46</p>
</td>
</tr>
</table>";
$template = new MyredTemplate("template/template.html");
$template->assign("TITLE", $pagetitle);
$template->assign("MENU", $menu);
$template->assign("MAIN", $main);
$template->myred_print() or die($template->error);
exit;
}?>