30 lines
856 B
PHP
Executable File
30 lines
856 B
PHP
Executable File
<?php
|
|
|
|
if (!defined('ABSPATH')) die('No direct access.');
|
|
|
|
if (!$is_activated_for_user) {
|
|
|
|
global $current_user;
|
|
echo empty($current_user->ID) ? '(' . esc_html__('Not logged in.', 'all-in-one-wp-security-and-firewall').')' : esc_html__('Two factor authentication is not available for your user.', 'all-in-one-wp-security-and-firewall');
|
|
|
|
} else {
|
|
|
|
?>
|
|
|
|
<div class="wrap" style="padding-bottom:10px">
|
|
|
|
<?php $simba_tfa->include_template('settings-intro-notices.php'); ?>
|
|
|
|
<?php $tfa_frontend->settings_enable_or_disable_output(); ?>
|
|
|
|
<?php $simba_tfa->get_controller('totp')->current_codes_box(); ?>
|
|
|
|
<?php if (!empty($show_algorithm_selector)) $simba_tfa->get_controller('totp')->advanced_settings_box(array($tfa_frontend, 'save_settings_button')); ?>
|
|
|
|
</div>
|
|
|
|
<?php $tfa_frontend->save_settings_javascript_output(); ?>
|
|
|
|
<?php
|
|
}
|