<?php /* Smarty version 3.1.27, created on 2025-01-13 21:10:29
         compiled from "/home/greenfie/user.future-trade.ltd/tmpl/security.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:185271376167858145a8e9d3_24891857%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e6cb4686c3d9ec610f3f0bf12ff0024f764c37bb' => 
    array (
      0 => '/home/greenfie/user.future-trade.ltd/tmpl/security.tpl',
      1 => 1731707674,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '185271376167858145a8e9d3_24891857',
  'variables' => 
  array (
    'userinfo' => 0,
    'security' => 0,
    'settings' => 0,
    'errors' => 0,
    'tfa_enabled' => 0,
    'tfa_settings' => 0,
    'tfa_secret' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_67858145aa7e66_77279247',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_67858145aa7e66_77279247')) {
function content_67858145aa7e66_77279247 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/greenfie/user.future-trade.ltd/inc/libs/smarty3/plugins/modifier.myescape.php';

$_smarty_tpl->properties['nocache_hash'] = '185271376167858145a8e9d3_24891857';
echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

<section class="content">
	<div class="container">
		<section class="content">
			<div class="container">
				<style>
				.theme-cyan .checkbox input[type="checkbox"]:checked + label::after {
					border-color: #fff;
					background: #f6b827;
					color: #000;
				}
				</style>
				<div class="row clearfix">
					<div class="col-lg-12">
						<div class="card" style="margin-top: 30px">
							<div class="body block-header">
								<div class="row">
									<div class="col-lg-6 col-md-8 col-sm-12">
										<h2>Welcome, <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['userinfo']->value['username']);?>
</h2>
										<ul class="breadcrumb p-l-0 p-b-0 ">
											<li class="breadcrumb-item"><a href="/?a=account"><i class="fas fa-home"></i></a></li>
											<li class="breadcrumb-item"><a href="/?a=account">Dashboard</a></li>
											<li class="breadcrumb-item active">Two Factor Authentication</li>
										</ul>
									</div>
									<div class="col-lg-6 col-md-4 col-sm-12 text-right">
										<a href="/?a=deposit">
											<button class="btn btn-primary btn-round btn-simple float-right hidden-xs m-l-10 btn-warning waves-effect">Make an investment</button>
										</a>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				<div class="row clearfix">
                    <!--div class="col-xl-4 col-lg-12 col-md-12">
                        <div class="card">
                            <div class="header">
                                <h2><strong>Security Settings</strong></h2>
                            </div>
                            <div class="body">
                                <form method="post">
                                    <input type="hidden" name="a" value="security">
                                    <input type="hidden" name="action" value="save">
                
                                    <label>Detect IP Address Change Sensitivity</label><br>
                                    <input type="radio" name="ip" value="disabled" <?php if ($_smarty_tpl->tpl_vars['security']->value['detect_ip'] == 'disabled') {?>checked<?php }?>> Disabled<br>
                                    <input type="radio" name="ip" value="medium" <?php if ($_smarty_tpl->tpl_vars['security']->value['detect_ip'] == 'medium') {?>checked<?php }?>> Medium<br>
                                    <input type="radio" name="ip" value="high" <?php if ($_smarty_tpl->tpl_vars['security']->value['detect_ip'] == 'high') {?>checked<?php }?>> High<br>
                                    <input type="radio" name="ip" value="always" <?php if ($_smarty_tpl->tpl_vars['security']->value['detect_ip'] == 'always') {?>checked<?php }?>> Paranoic<br><br>
                
                                    <label>Detect Browser Change</label><br>
                                    <input type="radio" name="browser" value="disabled" <?php if ($_smarty_tpl->tpl_vars['security']->value['detect_browser'] == 'disabled') {?>checked<?php }?>> Disabled<br>
                                    <input type="radio" name="browser" value="enabled" <?php if ($_smarty_tpl->tpl_vars['security']->value['detect_browser'] == 'enabled') {?>checked<?php }?>> Enabled<br><br>
                                    
                                    <input type="submit" value="Set" class="btn btn-primary">
                                </form>
                            </div>
                        </div>
                    </div-->

                    <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_tfa']) {?>
                    <div class="col-xl-4 col-lg-12 col-md-12">
                        <div class="card">
                            <div class="header">
                                <h2><strong>Two Factor Authentication</strong></h2>
                            </div>
                            <div class="body">
                                <form method="post" name="mainform">
                                    <input type="hidden" name="a" value="security">
                                    <input type="hidden" name="action" value="tfa_save">
                                    <input type="hidden" name="time">
                
                                    <?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_tfa_code']) {?>
                                    <div class="text-danger">Invalid code.</div>
                                    <?php }?>
                                    <?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_tfa_secret']) {?>
                                    <div class="text-danger">Invalid Secret.</div>
                                    <?php }?>
                
                                    <?php if ($_smarty_tpl->tpl_vars['tfa_enabled']->value) {?>
                                    <div class="form-check">
                                        <input type="checkbox" class="form-check-input" name="tfa_on_login" value="1" <?php if ($_smarty_tpl->tpl_vars['tfa_settings']->value['login']) {?>checked<?php }?>>
                                        <label class="form-check-label">On Login</label>
                                    </div>
                                    <div class="form-check">
                                        <input type="checkbox" class="form-check-input" name="tfa_on_edit_account" value="1" <?php if ($_smarty_tpl->tpl_vars['tfa_settings']->value['edit_account']) {?>checked<?php }?>>
                                        <label class="form-check-label">On Edit Account</label>
                                    </div>
                                    <div class="form-check">
                                        <input type="checkbox" class="form-check-input" name="tfa_on_withdraw" value="1" <?php if ($_smarty_tpl->tpl_vars['tfa_settings']->value['withdraw']) {?>checked<?php }?>>
                                        <label class="form-check-label">On Withdraw</label>
                                    </div>
                                    <?php if ($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_enabled']) {?>
                                    <div class="form-check">
                                        <input type="checkbox" class="form-check-input" name="tfa_on_internal_transfer" value="1" <?php if ($_smarty_tpl->tpl_vars['tfa_settings']->value['internal_transfer']) {?>checked<?php }?>>
                                        <label class="form-check-label">On Internal Transfer</label>
                                    </div>
                                    <?php }?>
                                    <div class="form-check text-danger">
                                        <input type="checkbox" class="form-check-input" name="tfa_disable" value="1">
                                        <label class="form-check-label">Disable Two Factor Authentication (not recommended)</label>
                                    </div>
                                    
                                    <div class="form-group mt-3">
                                        <label>Confirm by typing code:</label>
                                        <input type="text" name="code" class="form-control">
                                    </div>
                                    <input type="submit" value="Update" class="sbmt">
                                    
                                    <?php } else { ?>
                                    <center>Your Secret Code is: <div style="font-size: 18px; background: #f6b827; padding: 10px 15px; border-radius: 10px; color: #000; margin-top: 15px"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['tfa_secret']->value);?>
</div>
                                    <input type="hidden" name="tfa_secret" value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['tfa_secret']->value);?>
"><br><br>
                                    
                                    <img class="mx-auto" width=150 src="https://api.qrserver.com/v1/create-qr-code/?data=otpauth://totp/<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['site_name']);?>
:<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['userinfo']->value['username']);?>
?secret=<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['tfa_secret']->value);?>
&amp;size=300x303"><br><br>
                                    </center>
                                    <p>Please enter two factor token from Google Authenticator to verify correct setup:</p>
                                    <div class="form-group">
                                        <input type="text" name="code" class="form-control key" placeholder="XXX-XXX">
                                    </div>
                                    <input type="submit" value="Enable" class="sbmt">
                                    <?php }?>
                                </form>
                            </div>
                        </div>
                    </div>
                    <?php }?>
                
                    <div class="col-xl-8 col-lg-12 col-md-12">
                        <div class="card">
                            <div class="body">
                                <p>Install Google Authenticator or LastPass Authenticator on your mobile device.</p>
                                <div class="row clearfix">
                                    <div class="col-xl-6 col-lg-12 col-md-6">
                                        <a href="https://www.google.com/landing/2step/" target="_blank">
                                            <img src="web/assets/img/google.jpg" alt="Google Authenticator" class="img-fluid">
                                        </a>
                                        <p><a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2" target="_blank">Download for Android</a></p>
                                        <p><a href="https://apps.apple.com/us/app/google-authenticator/id388497605" target="_blank">Download for iOS</a></p>
                                    </div>
                                    <div class="col-xl-6 col-lg-12 col-md-6">
                                        <a href="https://lastpass.com/auth/" target="_blank">
                                            <img src="web/assets/img/lastpass.jpg" alt="LastPass Authenticator" class="img-fluid">
                                        </a>
                                        <p><a href="https://play.google.com/store/apps/details?id=com.lastpass.authenticator" target="_blank">Download for Android</a></p>
                                        <p><a href="https://apps.apple.com/us/app/lastpass-authenticator/id1079110004" target="_blank">Download for iOS</a></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


				<div class="row clearfix"></div>
				<div class="row clearfix">
					<div class="col-md-12 col-lg-12">
						<div class="card active-bg">
							<div class="body">
								<p class="copyright m-b-0 text-dark">Copyright 2024 <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['site_name']);?>
.</p>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>


<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

<?php }
}
?>