/[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.9 by dpavlin, Mon Mar 12 20:05:04 2001 UTC revision 1.11 by dpavlin, Tue Mar 27 10:15:10 2001 UTC
# Line 20  $smarty->assign( array ( lpic=>$lpic, le Line 20  $smarty->assign( array ( lpic=>$lpic, le
20  if (! isset($from) || $from == "") {  if (! isset($from) || $from == "") {
21          $from=str_replace(".php","",basename($HTTP_REFERER));          $from=str_replace(".php","",basename($HTTP_REFERER));
22          if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?"));          if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?"));
23            if ($from == $HTTP_HOST) $from="index";
24  }  }
25    
26  $email="webmaster@pliva.hr";    // default  $email="webmaster@pliva.hr";    // default
# Line 51  $smarty->assign(array(countries=>$countr Line 52  $smarty->assign(array(countries=>$countr
52    
53  include("common.inc");  include("common.inc");
54    
55  if (! isset($mailto)) {  if (isset($mailto) && check_required()) {
         $main=$smarty->fetch("$main_file.tpl");  
 } else {  
56          $main="Your comment is sent to $mailto. Thank you.";          $main="Your comment is sent to $mailto. Thank you.";
57          include("quoted-printable.inc");          include("quoted-printable.inc");
58          iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment);          iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment);
59  #       $main.="<pre>$mailto $fullname $mailfrom $country $subject $comment</pre>";  #       $main.="<pre>$mailto $fullname $mailfrom $country $subject $comment</pre>";
60    } else {
61            $main=$smarty->fetch("$main_file.tpl");
62  }  }
63    
64  $smarty->assign( array(MAIN=>$main, from=>$from,  $smarty->assign( array(MAIN=>$main, from=>$from,

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.26