51 |
|
|
52 |
include("common.inc"); |
include("common.inc"); |
53 |
|
|
54 |
if (! isset($mailto)) { |
if (isset($mailto) && check_required()) { |
|
$main=$smarty->fetch("$main_file.tpl"); |
|
|
} else { |
|
55 |
$main="Your comment is sent to $mailto. Thank you."; |
$main="Your comment is sent to $mailto. Thank you."; |
56 |
include("quoted-printable.inc"); |
include("quoted-printable.inc"); |
57 |
iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment); |
iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment); |
58 |
# $main.="<pre>$mailto $fullname $mailfrom $country $subject $comment</pre>"; |
# $main.="<pre>$mailto $fullname $mailfrom $country $subject $comment</pre>"; |
59 |
|
} else { |
60 |
|
$main=$smarty->fetch("$main_file.tpl"); |
61 |
} |
} |
62 |
|
|
63 |
$smarty->assign( array(MAIN=>$main, from=>$from, |
$smarty->assign( array(MAIN=>$main, from=>$from, |