Commit a6a7503f32b6a7130a8afeb674f05b46d7a90427

Authored by Michael Joseph
1 parent 089d799b

changed db field names

adding session status array as a session var


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@86 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 5 additions and 3 deletions
lib/Session.inc
... ... @@ -25,8 +25,6 @@ class Session {
25 25  
26 26 // bind userID to session
27 27 $_SESSION['userID'] = $userID;
28   - // lookup user class and add to session
29   - //$_SESSION['userClass'] = lookupUserClass($userID);
30 28  
31 29 // lookup group id and add to session
32 30 //$_SESSION['groupID'] = lookupGroupID($userID);
... ... @@ -129,7 +127,7 @@ class Session {
129 127 // set verified status
130 128 $verified["status"] = 1;
131 129 // update userID? this should be the same value on the session
132   - $verified["userID"] = $sql->f("uid");
  130 + $verified["userID"] = $sql->f("user_id");
133 131 $sql->query("select * from $default->owl_users_table where id = '".$verified["userid"]."'");
134 132 while($sql->next_record()) {
135 133 $verified["groupID"] = $sql->f("groupid");
... ... @@ -151,6 +149,10 @@ class Session {
151 149 }
152 150 }
153 151 }
  152 + // add this array to the session
  153 + session_register($sessionStatus);
  154 +
  155 + // also return the array for good measure
154 156 return $verified;
155 157 }
156 158 }
... ...