diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-07 17:46:48 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-07 17:46:48 +0000 |
| commit | a3fcac2323d9c94ce3a23f6693ba15a8620c9544 (patch) | |
| tree | 294fbec564e71533ca5cf254a4284159245c9ffd /validate.php | |
| parent | a3dd078f2de42755659ca46e47d5bd50fc708a54 (diff) | |
| download | users-a3fcac2323d9c94ce3a23f6693ba15a8620c9544.tar.gz users-a3fcac2323d9c94ce3a23f6693ba15a8620c9544.tar.bz2 users-a3fcac2323d9c94ce3a23f6693ba15a8620c9544.zip | |
merge recent changes from R1 to HEAD
Diffstat (limited to 'validate.php')
| -rw-r--r-- | validate.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/validate.php b/validate.php index ad97777..1fb3a28 100644 --- a/validate.php +++ b/validate.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/validate.php,v 1.4 2005/08/01 18:42:02 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/validate.php,v 1.5 2005/08/07 17:46:46 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,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: validate.php,v 1.4 2005/08/01 18:42:02 squareing Exp $ + * $Id: validate.php,v 1.5 2005/08/07 17:46:46 squareing Exp $ * @package users * @subpackage functions */ @@ -27,7 +27,7 @@ if( empty( $_SESSION['loginfrom'] ) ) { $_SESSION['loginfrom'] = $from['path']; } } -if ($gBitUser->hasPermission( 'bit_p_admin' )) { +if ($gBitUser->isAdmin()) { if (isset($_REQUEST["su"])) { if ($gBitUser->userExists( array( 'login' => $_REQUEST['username'] ) ) ) { $_SESSION["$user_cookie_site"] = $_REQUEST["username"]; @@ -50,7 +50,7 @@ if ($gBitSystem->isFeatureActive( 'https_login_required' ) && !$https_mode) { $url .= $https_prefix . $gBitSystem->getDefaultPage(); if (SID) $url .= '?' . SID; - header("Location " . $url); + header("Location: " . $url); exit; } |
