/[corp_html]/contact.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /contact.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Mon Feb 19 16:22:20 2001 UTC (23 years, 2 months ago) by dpavlin
Branch: MAIN
Branch point for: dbp
Initial revision

1 dpavlin 1.1 <?php
2     require("Smarty.class.php");
3     require("conn.inc");
4    
5     $smarty = new Smarty;
6    
7     $smarty->assign( array ( Title=>"Pliva d.d." ) );
8    
9     $section=str_replace(".php","",basename($PHP_SELF));
10     $smarty->assign("section",$section);
11    
12     $main_file=$section;
13    
14     $title="CONTACT US";
15     $lpic="cont"; $lext=".jpg";
16     $mpic="contactus.gif";
17    
18     $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
19    
20     $from=str_replace(".php","",basename($HTTP_REFERER));
21    
22     $sth = $dbh->prepare("select email from emails where referer='$from' limit 1");
23     $sth->execute();
24     $email_to="webmaster@pliva.hr";
25     if ($row=$sth->fetchrow_hash()) {
26     $email_to=$row[email];
27     }
28    
29     $main=$smarty->fetch("$main_file.tpl");
30    
31     $smarty->assign( array(MAIN=>$main, from=>$from, contact_section=>1, email_to=>$email_to ));
32    
33     $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".
34     $url[0] . "from: $from");
35    
36    
37     $smarty->display("index.tpl");
38     ?>

  ViewVC Help
Powered by ViewVC 1.1.26