/[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.3 by dpavlin, Fri Mar 2 07:50:38 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    $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");  $sth = $dbh->prepare("select iso,name from countries order by name");
34  $sth->execute();  $sth->execute();
35  while ($row=$sth->fetchrow_hash()) {  while ($row=$sth->fetchrow_hash()) {
36          $countries[]=$row;          $countries[]=$row;
37  }  }
38  $smarty->assign(array(countries=>$countries,  $smarty->assign(array(countries=>$countries,
39          email_to=>$email_to,          email_val=>$email_val,
40          ));          ));
41    
42  include("common.inc");  include("common.inc");
43  $main=$smarty->fetch("$main_file.tpl");  
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,  $smarty->assign( array(MAIN=>$main, from=>$from,
54          contact_section=>1,          contact_section=>1,

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

  ViewVC Help
Powered by ViewVC 1.1.26