/[docman2]/htusers/file.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/file.php

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

revision 1.2 by dpavlin, Sat Jul 27 22:26:34 2002 UTC revision 1.3 by dpavlin, Sun Jul 28 17:31:10 2002 UTC
# Line 18  Line 18 
18          }          }
19          $htusers=fopen($htusers_file,"r");          $htusers=fopen($htusers_file,"r");
20          while($user = fgetcsv($htusers,255,":")) {          while($user = fgetcsv($htusers,255,":")) {
21                  if ($user[0] == $GLOBALS[gblLogin]) {                  if ($user[0] == $GLOBALS["gblLogin"]) {
22                          $gblUserName=$user[1];                          $gblUserName=$user[1];
23                          $secHash=$user[2];                          $secHash=$user[2];
24                          if (substr($secHash,0,5) == "auth_" && file_exists("$gblIncDir/$secHash.php")) {                          if (substr($secHash,0,5) == "auth_" && file_exists("$gblIncDir/$secHash.php")) {
25                                  include_once("$gblIncDir/$secHash.php");                                  include_once("$gblIncDir/$secHash.php");
26                                  if ($secHash($user)) {                                  if ($secHash($user)) {
27                                          $secHash=md5($GLOBALS[gblLogin].$GLOBALS[gblPasswd]);                                          $secHash=md5($GLOBALS["gblLogin"].$GLOBALS["gblPasswd"]);
28                                  } else {                                  } else {
29                                          $secHash="error".md5($GLOBALS[gblLogin].$GLOBALS[gblPasswd]);                                          $secHash="error".md5($GLOBALS["gblLogin"].$GLOBALS["gblPasswd"]);
30                                  }                                  }
31                          }                          }
32                          $gblEmail=$user[3];                          $gblEmail=$user[3];

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

  ViewVC Help
Powered by ViewVC 1.1.26