[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_users 6 * 7 * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 // Prevent direct access 12 defined('_JEXEC') or die; 13 14 use Joomla\CMS\Factory; 15 use Joomla\CMS\HTML\HTMLHelper; 16 use Joomla\CMS\Language\Text; 17 use Joomla\CMS\Router\Route; 18 use Joomla\Component\Users\Administrator\View\Method\HtmlView; 19 20 /** @var HtmlView $this */ 21 22 HTMLHelper::_('bootstrap.tooltip', '.hasTooltip'); 23 24 $cancelURL = Route::_('index.php?option=com_users&task=methods.display&user_id=' . $this->user->id); 25 26 if (!empty($this->returnURL)) { 27 $cancelURL = $this->escape(base64_decode($this->returnURL)); 28 } 29 30 if ($this->record->method != 'backupcodes') { 31 throw new RuntimeException(Text::_('JERROR_ALERTNOAUTHOR'), 403); 32 } 33 34 ?> 35 <h2> 36 <?php echo Text::_('COM_USERS_USER_BACKUPCODES') ?> 37 </h2> 38 39 <p class="text-muted"> 40 <?php echo Text::_('COM_USERS_USER_BACKUPCODES_DESC') ?> 41 </p> 42 43 <table class="table table-striped"> 44 <?php for ($i = 0; $i < (count($this->backupCodes) / 2); $i++) : ?> 45 <tr> 46 <td> 47 <?php if (!empty($this->backupCodes[2 * $i])) : ?> 48 <?php // This is a Key emoji; we can hide it from screen readers ?> 49 <span aria-hidden="true">🔑</span> 50 <?php echo $this->backupCodes[2 * $i] ?> 51 <?php endif; ?> 52 </td> 53 <td> 54 <?php if (!empty($this->backupCodes[1 + 2 * $i])) : ?> 55 <?php // This is a Key emoji; we can hide it from screen readers ?> 56 <span aria-hidden="true">🔑</span> 57 <?php echo $this->backupCodes[1 + 2 * $i] ?> 58 <?php endif ;?> 59 </td> 60 </tr> 61 <?php endfor; ?> 62 </table> 63 64 <div class="alert alert-info"> 65 <span class="icon-info-circle" aria-hidden="true"></span> 66 <?php echo Text::_('COM_USERS_MFA_BACKUPCODES_RESET_INFO'); ?> 67 </div> 68 69 <div class="d-sm-none"> 70 <a class="btn btn-danger" href="<?php echo Route::_(sprintf("index.php?option=com_users&task=method.regenerateBackupCodes&user_id=%s&%s=1%s", $this->user->id, Factory::getApplication()->getFormToken(), empty($this->returnURL) ? '' : '&returnurl=' . $this->returnURL)) ?>"> 71 <span class="icon icon-refresh" aria-hidden="true"></span> 72 <?php echo Text::_('COM_USERS_MFA_BACKUPCODES_RESET'); ?> 73 </a> 74 75 <a href="<?php echo $cancelURL ?>" 76 class="btn btn-secondary"> 77 <span class="icon icon-cancel-2 icon-ban-circle"></span> 78 <?php echo Text::_('JCANCEL'); ?> 79 </a> 80 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |