/[docman]/htusers_header.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 /htusers_header.php

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

revision 1.2 by dpavlin, Wed Sep 26 14:43:35 2001 UTC revision 1.3 by dpavlin, Wed Sep 26 14:44:54 2001 UTC
# Line 50  http_referer=test.foo.bar:Dobrica (by re Line 50  http_referer=test.foo.bar:Dobrica (by re
50                                  $remote_hostname=substr($remote_hostname,0,strpos($remote_hostname,"."));                                  $remote_hostname=substr($remote_hostname,0,strpos($remote_hostname,"."));
51                                  if ($tmp[1] == $remote_hostname) $login_allowed=1;                                  if ($tmp[1] == $remote_hostname) $login_allowed=1;
52                          } elseif (stristr($tmp[0],"http_referer")) {                          } elseif (stristr($tmp[0],"http_referer")) {
53                                  error_log("$tmp[0]: $tmp[1] ?? $GLOBALS[HTTP_REFERER]",0);                                  //error_log("$tmp[0]: $tmp[1] ?? $GLOBALS[HTTP_REFERER]",0);
54                                  if (isset($GLOBALS[HTTP_REFERER]) && stristr($GLOBALS[HTTP_REFERER],$tmp[1])) {                                  if (isset($GLOBALS[HTTP_REFERER]) && stristr($GLOBALS[HTTP_REFERER],$tmp[1])) {
55                                          setcookie($cookie_name,$cookie_val,time()+3600);                                          setcookie($cookie_name,$cookie_val,time()+3600);
56                                          $login_allowed=1;                                          $login_allowed=1;
57                                          error_log("$tmp[0]: $tmp[1] == $GLOBALS[HTTP_REFERER]",0);                                          //error_log("$tmp[0]: $tmp[1] == $GLOBALS[HTTP_REFERER]",0);
58                                  }                                  }
59    
60                          }                          }

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

  ViewVC Help
Powered by ViewVC 1.1.26