--- contact.php 2001/03/27 10:15:10 1.11 +++ contact.php 2001/10/02 09:59:03 1.14 @@ -6,21 +6,15 @@ $smarty->assign( array ( Title=>"Pliva d.d." ) ); -$section=str_replace(".php","",basename($PHP_SELF)); -$smarty->assign("section",$section); - +include("section.inc"); $main_file=$section; -$title="CONTACT US"; -$lpic="cont"; $lext=".jpg"; -$mpic="contactus.gif"; - $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); if (! isset($from) || $from == "") { $from=str_replace(".php","",basename($HTTP_REFERER)); if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); - if ($from == $HTTP_HOST) $from="index"; + if ($from == $HTTP_HOST || $from=="www.pliva.hr") $from="index"; } $email="webmaster@pliva.hr"; // default