[Openfirst-cvscommit] base/includes User.php,1.1,1.2
Brought to you by:
xtimg
From: Jamie <ast...@us...> - 2005-10-19 04:03:56
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28200/includes Modified Files: User.php Log Message: -Changed utNONE, utNORMAL, and utADMIN to ugNONE, ugNORMAL, and ugADMIN -Removed User::mType -Added User::mReal -Added User::isRealUser() (if the user is actually a user and not a random visitor) -User::isLoggedIn() now reports if the user is the current session -Added User::createNewUser() for registration -Added a bunch of debug stuff that's all commented out (when sessions don't work, it's a real pain to fix) Index: User.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/User.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** User.php 16 Oct 2005 22:39:26 -0000 1.1 --- User.php 19 Oct 2005 04:03:48 -0000 1.2 *************** *** 1,649 **** ! <?php ! /* ! * openFIRST.base - includes/User.php ! * ! * Copyright (C) 2003, ! * openFIRST Project ! * Original Author: Jamie Bliss <ast...@gm...> ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by [...1313 lines suppressed...] ! } ! } ! ! function updateLastSeen() { ! if ( !$this->isRealUser() ) return; ! global $ogDB; ! $this->mLastSeen = date("h:i:s M d, Y"); ! $ogDB->update( 'members', ! array( 'lastseen' => $this->mLastSeen ), ! array( 'user' => $this->mName ) ! ); ! // Don't set $this->mDirty because we saved the changes. ! } ! ! function &getSettingsObject($module=false) { ! return new UserSettings($module,$this); ! } ! } ?> \ No newline at end of file |