diff options
| author | lsces <lester@lsces.co.uk> | 2025-08-29 13:18:39 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-08-29 13:18:39 +0100 |
| commit | d388cface6a2f2bc7368fa21d8cb6be2e7179f27 (patch) | |
| tree | ef3403eb08c68bc333061f224a61775899a98295 /confirm.php | |
| parent | c32ecb5a1051f7c23f25219805af49a348e111c3 (diff) | |
| download | users-d388cface6a2f2bc7368fa21d8cb6be2e7179f27.tar.gz users-d388cface6a2f2bc7368fa21d8cb6be2e7179f27.tar.bz2 users-d388cface6a2f2bc7368fa21d8cb6be2e7179f27.zip | |
General tools updated to PHP8.4 and namespace
Diffstat (limited to 'confirm.php')
| -rwxr-xr-x[-rw-r--r--] | confirm.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/confirm.php b/confirm.php index dfb4fe4..b39c09e 100644..100755 --- a/confirm.php +++ b/confirm.php @@ -1,4 +1,7 @@ <?php +use Bitweaver\HttpStatusCodes; +use Bitweaver\KernelTools; + /** * confirm password change * @@ -11,16 +14,15 @@ /** * required setup */ -require_once( '../kernel/includes/setup_inc.php' ); +require_once '../kernel/includes/setup_inc.php'; if( !empty( $_REQUEST["v"] ) && strpos( $_REQUEST["v"], ':' ) ) { - list( $userId, $provPass ) = explode( ':', $_REQUEST["v"] ); + [ $userId, $provPass ] = explode( ':', $_REQUEST["v"] ); } if( !empty( $userId ) && !empty( $provPass ) && $userInfo = $gBitUser->confirmRegistration( $userId, $provPass ) ) { - $gBitSmarty->assignByRef( 'userInfo', $userInfo ); - $gBitSystem->display( 'bitpackage:users/change_password.tpl', 'Confirm Password Change' , array( 'display_mode' => 'display' )); + $gBitSmarty->assign( 'userInfo', $userInfo ); + $gBitSystem->display( 'bitpackage:users/change_password.tpl', 'Confirm Password Change' , [ 'display_mode' => 'display' ]); } else { - $gBitSystem->fatalError( tra("This confirmation link is no longer valid. Please Login or <a href=\"".USERS_PKG_URL."remind_password.php\">request a new password change</a>"), NULL, NULL, HttpStatusCodes::HTTP_GONE ); + $gBitSystem->fatalError( KernelTools::tra("This confirmation link is no longer valid. Please Login or <a href=\"".USERS_PKG_URL."remind_password.php\">request a new password change</a>"), null, null, HttpStatusCodes::HTTP_GONE ); } -?> |
