17 |
|
|
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)); |
if (! isset($from) || $from == "") { |
21 |
if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); |
$from=str_replace(".php","",basename($HTTP_REFERER)); |
22 |
|
if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); |
23 |
|
} |
24 |
|
|
25 |
$email="webmaster@pliva.hr"; // default |
$email="webmaster@pliva.hr"; // default |
26 |
|
|
29 |
if ($row=$sth->fetchrow_hash()) { |
if ($row=$sth->fetchrow_hash()) { |
30 |
$email=$row[email]; |
$email=$row[email]; |
31 |
} else { |
} else { |
32 |
$sth = $dbh->prepare("select email from emails,menu where menu.section=referer and url='results.php?type=a'"); |
$sth = $dbh->prepare("select email from emails,menu where menu.section=referer and url like '$from%'"); |
33 |
$sth->execute(); |
$sth->execute(); |
34 |
if ($row=$sth->fetchrow_hash()) { |
if ($row=$sth->fetchrow_hash()) { |
35 |
$email=$row[email]; |
$email=$row[email]; |