~dangarner/xibo/433593

« back to all changes in this revision

Viewing changes to server/modules/module_user_general.php

  • Committer: Dan Garner
  • Date: 2009-08-02 17:20:38 UTC
  • mfrom: (55.2.2 1.0.0)
  • Revision ID: mail@dangarner.co.uk-20090802172038-lwnimpzvqxs5zyyf
MergedĀ lp:~dangarner/xibo/396735

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
                
90
90
                $sql = sprintf("SELECT UserID, UserName, UserPassword, usertypeid, groupID FROM user WHERE UserName = '%s' AND UserPassword = '%s'", $db->escape_string($username), $db->escape_string($password));
91
91
                
92
 
                Debug::LogEntry($db, 'audit', $sql);
93
 
                
94
92
                if(!$result = $db->query($sql)) trigger_error('A database error occurred while checking your login details.', E_USER_ERROR);
95
93
 
96
94
                if ($db->num_rows($result)==0) 
122
120
                $db->query($SQL) or trigger_error("Can not write last accessed info.", E_USER_ERROR);
123
121
 
124
122
                $session->setIsExpired(0);
 
123
                $session->RegenerateSessionID(session_id());
125
124
 
126
125
                return true;
127
126
        }