diff options
| author | Christian Fowler <spider@viovio.com> | 2009-04-02 19:48:11 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2009-04-02 19:48:11 +0000 |
| commit | 5e7ced5978c56ac3f1d4422a81b4b0f671d425b1 (patch) | |
| tree | 22b0c61ebd21f5d9629baa6c16c6df0990eefb69 /BitUser.php | |
| parent | cc7f14df0d59b241a90ea2c0c7c34d3524655714 (diff) | |
| download | users-5e7ced5978c56ac3f1d4422a81b4b0f671d425b1.tar.gz users-5e7ced5978c56ac3f1d4422a81b4b0f671d425b1.tar.bz2 users-5e7ced5978c56ac3f1d4422a81b4b0f671d425b1.zip | |
add users_login_homepage config, and use that value where default is users/my.php; add verifyRegistered
Diffstat (limited to 'BitUser.php')
| -rw-r--r-- | BitUser.php | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/BitUser.php b/BitUser.php index 9a76f63..9073a17 100644 --- a/BitUser.php +++ b/BitUser.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.219 2009/03/31 06:15:41 lsces Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.220 2009/04/02 19:48:04 spiderr Exp $ * * Lib for user administration, groups and permissions * This lib uses pear so the constructor requieres @@ -12,7 +12,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: BitUser.php,v 1.219 2009/03/31 06:15:41 lsces Exp $ + * $Id: BitUser.php,v 1.220 2009/04/02 19:48:04 spiderr Exp $ * @package users */ @@ -42,7 +42,7 @@ define( "ACCOUNT_DISABLED", -6 ); * Class that holds all information for a given user * * @author spider <spider@steelsun.com> - * @version $Revision: 1.219 $ + * @version $Revision: 1.220 $ * @package users * @subpackage BitUser */ @@ -2286,6 +2286,20 @@ class BitUser extends LibertyMime { } /** + * verifyRegistered + * + * @access public + * @return TRUE if user is registered, otherwise a login dialog is displayed + */ + function verifyRegistered( $pMsg = "" ) { + global $gBitSystem; + if( !$this->isRegistered() ) { + $gBitSystem->fatalPermission( "", $pMsg ); + } + return TRUE; + } + + /** * userExists * * @param array $pUserMixed |
