3 |
if (! isset($from) || $from == "") { |
if (! isset($from) || $from == "") { |
4 |
$from=str_replace(".php","",basename($HTTP_REFERER)); |
$from=str_replace(".php","",basename($HTTP_REFERER)); |
5 |
if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); |
if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); |
6 |
if ($from == $HTTP_HOST || $from=="www.pliva.hr") $from="index"; |
if ($from == $HTTP_HOST || $from=="www.pliva.si") $from="index"; |
7 |
} |
} |
8 |
|
|
9 |
$email="webmaster@pliva.hr"; // default |
$email="info@pliva.si"; // default |
10 |
|
|
11 |
$sth = $dbh->prepare("select email from emails where referer='$from' limit 1"); |
$sth = $dbh->prepare("select email from emails where referer='$from' limit 1"); |
12 |
$sth->execute(); |
$sth->execute(); |