/[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.2 by dpavlin, Tue Sep 18 13:21: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();

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

  ViewVC Help
Powered by ViewVC 1.1.26