/[pliva-si]/sections/pisite_nam.inc
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 /sections/pisite_nam.inc

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

revision 1.1 by dpavlin, Mon Jul 2 21:15:11 2001 UTC revision 1.3 by dpavlin, Tue Nov 20 13:23:43 2001 UTC
# Line 3  Line 3 
3  if (! isset($from) || $from == "") {  if (! isset($from) || $from == "") {
4          $from=str_replace(".php","",basename($HTTP_REFERER));          $from=str_replace(".php","",basename($HTTP_REFERER));
5          if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?"));          if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?"));
6          if ($from == $HTTP_HOST || $from=="www.pliva.hr") $from="index";          if ($from == $HTTP_HOST || $from=="www.pliva.si") $from="index";
7  }  }
8    
9  $email="webmaster@pliva.hr";    // default  $email="info@pliva.si"; // default
10    
11  $sth = $dbh->prepare("select email from emails where referer='$from' limit 1");  $sth = $dbh->prepare("select email from emails where referer='$from' limit 1");
12  $sth->execute();  $sth->execute();
# Line 34  $smarty->assign(array(countries=>$countr Line 34  $smarty->assign(array(countries=>$countr
34          ));          ));
35    
36  if (isset($mailto) && check_required()) {  if (isset($mailto) && check_required()) {
37          $main="Your comment is sent to $mailto. Thank you.";          $main="Sporočilo je bilo poslano na naslov $mailto. Hvala.";
38          include("quoted-printable.inc");          include("quoted-printable.inc");
39          iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment);          iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment);
40  #       $main.="<pre>$mailto $fullname $mailfrom $country $subject $comment</pre>";  #       $main.="<pre>$mailto $fullname $mailfrom $country $subject $comment</pre>";

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

  ViewVC Help
Powered by ViewVC 1.1.26