diff options
author | Mario <mario@mariovavti.com> | 2021-04-19 19:07:50 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-04-19 19:07:50 +0000 |
commit | 20ca6676d291cf03e6790d6ec5106c10712dd6e8 (patch) | |
tree | 371ff03a1c9cb4fafbdbc5ecb3a08b30d3089a4e /Zotlabs | |
parent | eded0f6c09475a138e042de4f6845d54e7a6e60c (diff) | |
download | volse-hubzilla-20ca6676d291cf03e6790d6ec5106c10712dd6e8.tar.gz volse-hubzilla-20ca6676d291cf03e6790d6ec5106c10712dd6e8.tar.bz2 volse-hubzilla-20ca6676d291cf03e6790d6ec5106c10712dd6e8.zip |
registration: reveal possibility to show all registrations in the UI
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Admin/Accounts.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Zotlabs/Module/Admin/Accounts.php b/Zotlabs/Module/Admin/Accounts.php index 76d332268..4d32beee1 100644 --- a/Zotlabs/Module/Admin/Accounts.php +++ b/Zotlabs/Module/Admin/Accounts.php @@ -235,6 +235,13 @@ class Accounts { $pending[$n]['reg_atip_n'] = $atipn[$v['reg_atip']]; } + $pending[$n]['status'] = ''; + if($pending[$n]['reg_flags'] & ACCOUNT_UNVERIFIED > 0) + $pending[$n]['status'] = [t('Unverified'), 'bg-warning']; + + if($pending[$n]['status'] && $pending[$n]['reg_expires'] < datetime_convert()) + $pending[$n]['status'] = [t('Expired'), 'bg-danger text-white']; + // timezone adjust date_time for display $pending[$n]['reg_created'] = datetime_convert('UTC', date_default_timezone_get(), $pending[$n]['reg_created']); $pending[$n]['reg_startup'] = datetime_convert('UTC', date_default_timezone_get(), $pending[$n]['reg_startup']); @@ -300,11 +307,12 @@ class Accounts { '$title' => t('Administration'), '$page' => t('Accounts'), '$submit' => t('Submit'), - '$select_all' => t('select all'), + '$get_all' => (($get_all) ? t('Show verified registrations') : t('Show all registrations')), + '$get_all_link' => (($get_all) ? z_root() .'/admin/accounts' : z_root() .'/admin/accounts?get_all'), '$sel_tall' => t('Select toggle'), '$sel_deny' => t('Deny selected'), '$sel_aprv' => t('Approve selected'), - '$h_pending' => t('Verified registrations waiting for approval'), + '$h_pending' => (($get_all) ? t('All registrations') : t('Verified registrations waiting for approval')), '$th_pending' => array(t('Request date'), 'dId2', t('Email'), 'IP', t('Requests')), '$no_pending' => t('No verified registrations.'), '$approve' => t('Approve'), |