diff --git a/myaccount.php b/myaccount.php index 8ec64cf..fb8bcd4 100644 --- a/myaccount.php +++ b/myaccount.php @@ -8,7 +8,7 @@ if($undelete_id) { $undelete_q1 = mysql_select_single('SELECT `character_name` FROM `znote_deleted_characters` WHERE `done` = 0 AND `id` = ' . $undelete_id . ' AND `original_account_id` = ' . $session_user_id . ' AND NOW() < `time`'); if($undelete_q1) { mysql_delete('DELETE FROM `znote_deleted_characters` WHERE `id` = ' . $undelete_id); - echo 'Pending delete of ' . $undelete_q1['character_name'] . ' has been successfully cancelled.
'; + echo 'Pending delete of ' . $undelete_q1['character_name'] . ' has been successfully canceled.
'; } } #endregion @@ -30,12 +30,12 @@ if (isset($_GET['authenticate']) && $config['mailserver']['myaccount_verify_emai $user = (int) $user['id']; $active = (int) $user['active']; $active_email = (int) $user['active_email']; - $verify_points = ($active_email == 0 && $config['mailserver']['verify_email_points'] > 0) + $verify_points = ($active_email == 0 && $config['mailserver']['verify_email_points'] > 0) ? ", `points` = `points` + {$config['mailserver']['verify_email_points']}" : ''; // Enable the account to login if ($active == 0 || $active_email == 0) { - $new_activeKey = rand(100000000,999999999); + $new_activeKey = rand(100000000, 999999999); mysql_update("UPDATE `znote_accounts` SET `active`='1', `active_email`='1', `activekey`='{$new_activeKey}' {$verify_points} WHERE `id`= {$user} LIMIT 1;"); } echo '

Congratulations!

Your email has been verified.

'; @@ -70,7 +70,7 @@ if (isset($_GET['authenticate']) && $config['mailserver']['myaccount_verify_emai ?>

Email authentication sent

We have sent you an email with a verification link to your email address:

-

If you can't find the email within 5 minutes, check your junk/trash inbox (spam filter) as it may be mislocated there.

+

If you can't find the email within 5 minutes, check your junk/trash inbox (spam filter) as it may be misplaced there.

Authentication failed

Failed to verify user when trying to send a verification email.

'; @@ -305,16 +305,20 @@ if ($render_page) {

My account

Welcome to your account page,

Email: (Verified).

Account security with Two-factor Authentication:

'. $characters[$i] .''; + echo ''; } else { - echo ''; + echo ''; } } ?> @@ -430,4 +433,4 @@ if ($render_page) { \ No newline at end of file +?>