/[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

Diff of /contact.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by dpavlin, Mon Feb 19 16:22:20 2001 UTC revision 1.4 by dpavlin, Mon Mar 5 11:56:10 2001 UTC
# Line 21  $from=str_replace(".php","",basename($HT Line 21  $from=str_replace(".php","",basename($HT
21    
22  $sth = $dbh->prepare("select email from emails where referer='$from' limit 1");  $sth = $dbh->prepare("select email from emails where referer='$from' limit 1");
23  $sth->execute();  $sth->execute();
24  $email_to="webmaster@pliva.hr";  $email="webmaster@pliva.hr";
25  if ($row=$sth->fetchrow_hash()) {  if ($row=$sth->fetchrow_hash()) {
26          $email_to=$row[email];          $email=$row[email];
27  }  }
28    
29  $main=$smarty->fetch("$main_file.tpl");  $email=str_replace("\n","",$email);
30    $email=str_replace(" ","",$email);
31    $email_val=explode(",",$email);
32    
33    $sth = $dbh->prepare("select iso,name from countries order by name");
34    $sth->execute();
35    while ($row=$sth->fetchrow_hash()) {
36            $countries[]=$row;
37    }
38    $smarty->assign(array(countries=>$countries,
39            email_val=>$email_val,
40            ));
41    
42    include("common.inc");
43    
44    if (! isset($mailto)) {
45            $main=$smarty->fetch("$main_file.tpl");
46    } else {
47            $main="Your comment is sent to $mailto. Thank you.";
48            include("quoted-printable.inc");
49            iso_mail("$fullname ($country) <$email>",$mailto,$subject,$comment);
50    #       $main.="<pre>$mailto $fullname $email $country $subject $comment</pre>";
51    }
52    
53    $smarty->assign( array(MAIN=>$main, from=>$from,
54            contact_section=>1,
55            ));
56    
 $smarty->assign( array(MAIN=>$main, from=>$from, contact_section=>1, email_to=>$email_to ));  
57    
58  $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".  $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --".
59          $url[0] . "from: $from");          $url[0] . "from: $from");

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26