18 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
19 |
|
|
20 |
$from=str_replace(".php","",basename($HTTP_REFERER)); |
$from=str_replace(".php","",basename($HTTP_REFERER)); |
21 |
|
if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); |
22 |
|
|
23 |
$sth = $dbh->prepare("select email from emails where referer='$from' limit 1"); |
$sth = $dbh->prepare("select email from emails where referer='$from' limit 1"); |
24 |
$sth->execute(); |
$sth->execute(); |
47 |
} else { |
} else { |
48 |
$main="Your comment is sent to $mailto. Thank you."; |
$main="Your comment is sent to $mailto. Thank you."; |
49 |
include("quoted-printable.inc"); |
include("quoted-printable.inc"); |
50 |
iso_mail("$fullname ($country) <$email>",$mailto,$subject,$comment); |
iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment); |
51 |
# $main.="<pre>$mailto $fullname $email $country $subject $comment</pre>"; |
# $main.="<pre>$mailto $fullname $mailfrom $country $subject $comment</pre>"; |
52 |
} |
} |
53 |
|
|
54 |
$smarty->assign( array(MAIN=>$main, from=>$from, |
$smarty->assign( array(MAIN=>$main, from=>$from, |