/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/models/user.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-05-28 11:46:41 UTC
  • mfrom: (83.2.19 pvp)
  • Revision ID: gustav.hartvigsson@gmail.com-20130528114641-jc7sbw7ffajiwnix
Merged Bigestans:s changes:
* Merged trunk AND
* Modified js/login.js and js/bannermenu.js, specifically functions related to the login popup!
Continuing work on viewstudents

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
                        return FALSE;
176
176
                }
177
177
 
 
178
                /* 
 
179
                 * Updates the details of a user. Takes a username and an associative array of data with the details to be changed 
 
180
                 */
 
181
                public function updateUser($username, $data) {
 
182
                        $this->db->where("username", $username);
 
183
                        $this->db->update("Users", $data);
 
184
                }
 
185
 
178
186
 
179
187
                /*
180
188
                 *      This function removes users from the database.