/[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.7 by dpavlin, Mon Mar 5 15:36:16 2001 UTC revision 1.9 by dpavlin, Mon Mar 12 20:05:04 2001 UTC
# Line 17  $mpic="contactus.gif"; Line 17  $mpic="contactus.gif";
17    
18  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
19    
20  $from=str_replace(".php","",basename($HTTP_REFERER));  if (! isset($from) || $from == "") {
21  if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?"));          $from=str_replace(".php","",basename($HTTP_REFERER));
22            if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?"));
23    }
24    
25    $email="webmaster@pliva.hr";    // default
26    
27  $sth = $dbh->prepare("select email from emails where referer='$from' limit 1");  $sth = $dbh->prepare("select email from emails where referer='$from' limit 1");
28  $sth->execute();  $sth->execute();
 $email="webmaster@pliva.hr";  
29  if ($row=$sth->fetchrow_hash()) {  if ($row=$sth->fetchrow_hash()) {
30          $email=$row[email];          $email=$row[email];
31    } else {
32            $sth = $dbh->prepare("select email from emails,menu where menu.section=referer and url like '$from%'");
33            $sth->execute();
34            if ($row=$sth->fetchrow_hash()) {
35                    $email=$row[email];
36            }
37  }  }
38    
39  $email=str_replace("\n","",$email);  $email=str_replace("\n","",$email);

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

  ViewVC Help
Powered by ViewVC 1.1.26