/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-30 11:59:17 UTC
  • mfrom: (85.1.27 lenasys)
  • Revision ID: gustav.hartvigsson@gmail.com-20130530115917-nq06e5l455nfqok5
Merged Ohlssons changes:
added function to get ssn and name for the registrationspages in the user model.
added the registrationpage for students.
edited the registration page for instructors
edited the css for both the registrationpages

Show diffs side-by-side

added added

removed removed

Lines of Context:
394
394
                        return FALSE;
395
395
                }
396
396
                
 
397
                                /*
 
398
                 *      This function returns the name (or FALSE if user isn't logged in).
 
399
                 *  RESTRICTED-LEVEL: System
 
400
                 */ 
 
401
                public function getName() {
 
402
                        if($this->isLoggedIn()) {
 
403
                                $temp = $this->session->userdata('authenticated');
 
404
                                return $temp['name'];
 
405
                        }
 
406
                        
 
407
                        return FALSE;
 
408
                }
 
409
                
 
410
                                /*
 
411
                 *      This function returns the SSN (or FALSE if user isn't logged in).
 
412
                 *  RESTRICTED-LEVEL: System
 
413
                 */ 
 
414
                public function getSSN() {
 
415
                        if($this->isLoggedIn()) {
 
416
                                $temp = $this->session->userdata('authenticated');
 
417
                                return $temp['ssn'];
 
418
                        }
 
419
                        
 
420
                        return FALSE;
 
421
                }
 
422
                
 
423
                
397
424
                /*
398
425
                * This function fetches the active course info
399
426
                */