20 |
if (! isset($from) || $from == "") { |
if (! isset($from) || $from == "") { |
21 |
$from=str_replace(".php","",basename($HTTP_REFERER)); |
$from=str_replace(".php","",basename($HTTP_REFERER)); |
22 |
if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); |
if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); |
23 |
|
if ($from == $HTTP_HOST || $from=="www.pliva.hr") $from="index"; |
24 |
} |
} |
25 |
|
|
26 |
$email="webmaster@pliva.hr"; // default |
$email="webmaster@pliva.hr"; // default |
52 |
|
|
53 |
include("common.inc"); |
include("common.inc"); |
54 |
|
|
55 |
if (! isset($mailto)) { |
if (isset($mailto) && check_required()) { |
|
$main=$smarty->fetch("$main_file.tpl"); |
|
|
} else { |
|
56 |
$main="Your comment is sent to $mailto. Thank you."; |
$main="Your comment is sent to $mailto. Thank you."; |
57 |
include("quoted-printable.inc"); |
include("quoted-printable.inc"); |
58 |
iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment); |
iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment); |
59 |
# $main.="<pre>$mailto $fullname $mailfrom $country $subject $comment</pre>"; |
# $main.="<pre>$mailto $fullname $mailfrom $country $subject $comment</pre>"; |
60 |
|
} else { |
61 |
|
$main=$smarty->fetch("$main_file.tpl"); |
62 |
} |
} |
63 |
|
|
64 |
$smarty->assign( array(MAIN=>$main, from=>$from, |
$smarty->assign( array(MAIN=>$main, from=>$from, |