<?php /* Smarty version 3.1.27, created on 2024-04-04 06:42:25
         compiled from "my:settings" */ ?>
<?php
/*%%SmartyHeaderCode:253611162660e4bd1c892d3_85114442%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4f37b3e8400e048e25632ee44f023e2710fd97f6' => 
    array (
      0 => 'my:settings',
      1 => 1712212945,
      2 => 'my',
    ),
  ),
  'nocache_hash' => '253611162660e4bd1c892d3_85114442',
  'variables' => 
  array (
    'frm' => 0,
    'settings' => 0,
    'proxy_opts' => 0,
    'i' => 0,
    'opt' => 0,
    'permits' => 0,
    'o' => 0,
    't' => 0,
    'v' => 0,
    'file' => 0,
    'server_time' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_660e4bd1d1e860_86113282',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_660e4bd1d1e860_86113282')) {
function content_660e4bd1d1e860_86113282 ($_smarty_tpl) {
if (!is_callable('smarty_function_html_select_date')) require_once '/home/boosterc/wealthponds.net/inc/libs/smarty3/plugins/function.html_select_date.php';

$_smarty_tpl->properties['nocache_hash'] = '253611162660e4bd1c892d3_85114442';
?>
 <?php echo $_smarty_tpl->getSubTemplate ("my:admin_header", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 <h3>Main Settings:</h3>  <?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == "invalid_passphrase") {?> <div class="alert alert-danger">Invalid Alternative Passphrase. No data has been updated.</div> <?php }?> <?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == "done") {?> <div class="alert alert-success">Changes has been successfully saved.</div> <?php }?> <?php echo '<script'; ?>
 language=javascript> var use_alternative_passphrase = <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_alternative_passphrase']) {?>1<?php } else { ?>0<?php }?>; var ipvar = []; <?php
$_from = $_smarty_tpl->tpl_vars['proxy_opts']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['o'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['o']->_loop = false;
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['o']->value) {
$_smarty_tpl->tpl_vars['o']->_loop = true;
$foreach_o_Sav = $_smarty_tpl->tpl_vars['o'];
?> ipvar[<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
] = "<?php echo $_smarty_tpl->tpl_vars['opt']->value['value'];?>
"; <?php
$_smarty_tpl->tpl_vars['o'] = $foreach_o_Sav;
}
?>  function test_smtp() { if (document.mainform.smtp_host.value == "") { alert("SMTP Host is required"); document.mainform.smtp_host.focus(); return false; } if (document.mainform.smtp_port.value == "") { alert("SMTP Port is required"); document.mainform.smtp_port.focus(); return false; } win = window.open("", "testsmtp", "width=400, height=200, status=0"); document.testsmtp.target = "testsmtp"; document.testsmtp.smtp_secure.value = document.mainform.smtp_secure.options[document.mainform.smtp_secure.selectedIndex].value; document.testsmtp.smtp_host.value = document.mainform.smtp_host.value; document.testsmtp.smtp_port.value = document.mainform.smtp_port.value; document.testsmtp.smtp_user.value = document.mainform.smtp_user.value; document.testsmtp.smtp_pass.value = document.mainform.smtp_pass.value; document.testsmtp.submit(); win.focus(); } function check_form() { var d = document.mainform; /* if (!use_alternative_passphrase && d.use_alternative_passphrase.options[d.use_alternative_passphrase.selectedIndex].value == 1 && d.new_alternative_passphrase.value == "") { alert("Please enter your New Alternative Passphrase!"); d.new_alternative_passphrase.focus(); return false; } if (d.new_alternative_passphrase.value != "" && d.new_alternative_passphrase.value != d.new_alternative_passphrase2.value) { alert("Please, check your Alternative Passphrase!"); d.new_alternative_passphrase2.focus(); return false; } if (use_alternative_passphrase && d.alternative_passphrase.value == "") { alert("Please enter Alternative Passphrase"); d.alternative_passphrase.focus(); return false; } */ return true; } function ajax_get(url, fsuccess = null, ferror = null) { var xhr = new XMLHttpRequest(); xhr.open("GET", url); xhr.onload = function() { if (xhr.status === 200) { if (fsuccess) { fsuccess(xhr.responseText); } } else { if (ferror) { ferror(xhr.status); } } }; xhr.send(); } function check_proxy() { var ip = ""; document.getElementById("yourip").innerHTML = ""; ajax_get("https://www.goldcoders.com/ip.php?license={$settings.license}&domain="+window.location.hostname, function(ret) { _check_proxy(ret); });
} function _check_proxy(ip) { document.getElementById("yourip").innerHTML = "Your IP: <b>"+ip+"</b>"; ipidx = -1; for (i in ipvar) { document.getElementById("ipopt"+i).style.background = "inherit"; if (ipvar[i] && ipvar[i] == ip) { document.getElementById("ipopt"+i).style.background = "#FF9999"; if (ipidx == -1) ipidx = i; } } if (ipidx == -1) { // alert("Detection is failed");
 } else { document.mainform.ddos_type[ipidx].checked = true; } } function open_payment_settings(a, ii) { var id = "settings_"+a; document.getElementById(id).style.display = document.getElementById(id).style.display == "table" ? "none" : "table"; } function open_trs(a, ii) { for (i = 1; i<=ii; i++) { obj = document.getElementById(a+"_tr_"+i); if (obj) obj.style.display = ""; } } function close_trs(a, ii) { for (i = 1; i<=ii; i++) { obj = document.getElementById(a+"_tr_"+i); if (obj) obj.style.display = "none"; } }  <?php echo '</script'; ?>
> <?php echo '<script'; ?>
 type="text/javascript" src="images/js/jscolor.js"><?php echo '</script'; ?>
> <?php if ($_smarty_tpl->tpl_vars['permits']->value['test_smtp']) {?> <form name=testsmtp method=post> <input type=hidden name=a value="test_smtp"> <input type=hidden name=smtp_secure> <input type=hidden name=smtp_host> <input type=hidden name=smtp_port> <input type=hidden name=smtp_user> <input type=hidden name=smtp_pass> </form> <?php }?> <form method=post name="mainform" onsubmit="return check_form()">  <input type=hidden name=a value=settings> <input type=hidden name=action value=save> <input type=hidden name=say value=""> <table class="form settings"> <tr> <th>Site name:</th> <td><input type=text name=site_name value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['site_name'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr> <tr> <th>Site url:</th> <td><input type=text name=site_url value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['site_url'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr> <tr> <th>Start day:</th> <td> <?php echo smarty_function_html_select_date(array('prefix'=>"site_start_",'time'=>$_smarty_tpl->tpl_vars['frm']->value,'field_order'=>"DMY",'start_year'=>$_smarty_tpl->tpl_vars['frm']->value['start_year'],'end_year'=>"+1",'all_extra'=>"class=\"inpts nosize\"",'month_format'=>"%m",'month_value_format'=>"%m"),$_smarty_tpl);?>
 </td> </tr> <tr> <th>Redirect to HTTPS:</th> <td> <select name=redirect_to_https class="inpts nosize"><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['redirect_to_https'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['redirect_to_https'] == 1) {?>selected<?php }?>>Yes</select> <small>Do not change this option until you know how it works exactly. If you are using redirect from http:// to https:// you have set &#39;https://&#39; into Site URL field above!</small>
 </td> </tr> <tr> <th>DDoS Protection:</th> <td> <table class=list> <?php
$_from = $_smarty_tpl->tpl_vars['proxy_opts']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['o'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['o']->_loop = false;
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['o']->value) {
$_smarty_tpl->tpl_vars['o']->_loop = true;
$foreach_o_Sav = $_smarty_tpl->tpl_vars['o'];
?> <tr> <th><input type="radio" name="ddos_type" value="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['settings']->value['ddos_type'] == $_smarty_tpl->tpl_vars['i']->value) {?>checked<?php }?>></th> <td id="ipopt<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
<br><?php if ($_smarty_tpl->tpl_vars['o']->value['value']) {?><b><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['value'], ENT_QUOTES, 'UTF-8', true);?>
</p><?php } else { ?><i>N/A</i><?php }?></td> </tr> <?php
$_smarty_tpl->tpl_vars['o'] = $foreach_o_Sav;
}
?> </table> <button type="button" onclick="check_proxy()" class="sbmt">Detect</button> <span id="yourip"></span> </td> </tr> <tr> <td colspan=2> <?php echo $_smarty_tpl->getSubTemplate ("my:start_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 Site name: your site title.<br> Site url: your site url, without tailing slash (http://yoursite.com for example).<br>
Start day: shows days online. Select the date you have launched your site here.<br> Redirect to HTTPS: Redirects users from HTTP to HTTPS. Use this option only if you can access your site using https. You should go to <a href="<?php echo $_smarty_tpl->tpl_vars['settings']->value['https_site_url'];?>
" target=_blank><?php echo $_smarty_tpl->tpl_vars['settings']->value['https_site_url'];?>
</a> and your site will be displayed if the HTTPS is supported.<br> <?php echo $_smarty_tpl->getSubTemplate ("my:end_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 </td> </tr> </table> <br> <table class="form settings"> <tr> <th>Processings:</th> <td class="alert alert-danger"><a href="?a=processings" targe=_blank>Processings setup is here</a></td> </tr> </table> <table class="form settings"> <tr> <th>Admin Profile:</th> <td class="alert alert-danger"><a href="?a=admin" targe=_blank>Admin profile is here</a></td> </tr> </table> <br><br>  <table class="form settings"> <tr> <th class=title colspan=2>Other settings:</th> </tr> <tr> <th>Reverse left and right columns:</th> <td><select name=reverse_columns class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['reverse_columns'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['reverse_columns'] == 1) {?>selected<?php }?>>Yes</select> </td> </tr> <tr> <th>Deny Registrations:</th> <td><select name=deny_registration class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['deny_registration'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['deny_registration'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Double Opt-in during Registration:<br><small>Confirm email address on signup</small></th> <td><select name=use_opt_in class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_opt_in'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_opt_in'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>System E-mail:</th> <td><input type=text name=system_email value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['system_email'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr> <tr> <th>Support E-mail:</th> <td><input type=text name=support_email value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['support_email'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr>  <tr> <th>Enable Calculator:</th> <td><select name=enable_calculator class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['enable_calculator'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['enable_calculator'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Use double entry accounting:</th> <td><select name=use_history_balance_mode class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_history_balance_mode'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_history_balance_mode'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>After user logout move him to:</th> <td><select name=redirect_logout class=inpts><option value="home" <?php if ($_smarty_tpl->tpl_vars['settings']->value['redirect_logout'] == "home") {?>selected<?php }?>>Home<option value="login" <?php if ($_smarty_tpl->tpl_vars['settings']->value['redirect_logout'] == "login") {?>selected<?php }?>>Login</select></td> </tr>  <tr> <td colspan=2> <?php echo $_smarty_tpl->getSubTemplate ("my:start_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 Double opt-in when registering: Select &#39;yes&#39; if a user has to confirm the registration. An E-mail with the confirmation code will be sent to the user after he had submitted the registration request.<br> Opt-in e-mail: Confirmation messages will be sent from this e-mail account.<br> System e-mail: All system messages will be sent from this e-mail account.<br> Use user location fields: Adds &quot;Address&quot;, &quot;City&quot;, &quot;State&quot;, &quot;Zip&quot; and &quot;Country&quot; fields to user&#39;s profile.<br> Use double entry accounting: This mod is used for the transactions history screen in both users and admin areas. It shows three different columns - "Debit", "Credit" and "Balance" instead of one "Amount" field.<br> Reverse left and right columns. If the (this) box is unchecked, the user menu will be located on the left and news box on the right. If checked: news on the left, user menu on the right <?php echo $_smarty_tpl->getSubTemplate ("my:end_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 </td> </tr> </table> <table class="form settings"> <tr> <th class=title colspan=2>E-mail Settings:</th> </tr> <tr> <th>E-mail Charset:</th> <td><input type=text name=mail_charset value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['mail_charset'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr> <tr> <th>Send contact email from user&#39;s email:</th> <td> <select name=user_from_on_contact class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['user_from_on_contact'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['user_from_on_contact'] == 1) {?>selected<?php }?>>Yes</select> <i style="font-size:10;">Your hoster can deny sending mails from your server with email address outside of your domain name - use this settings to No in this case</i> </td> </tr> <tr> <th>E-mail throw:</th> <td> <select name=mail_method class=inpts onchange="if (this.selectedIndex == 1){open_trs('SMTP', 4);}else{close_trs('SMTP', 4)}"> <option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['mail_method'] == 0) {?>selected<?php }?>>PHP mail() function</option> <option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['mail_method'] == 1) {?>selected<?php }?>>SMTP</option> </select> </td> </tr> <tr id="SMTP_tr_1" style="display:none"> <th class=title colspan=2>SMTP Settings:</th> </tr> <tr id="SMTP_tr_2" style="display:none"> <th>SMTP Server:</th> <td><select name=smtp_secure class="inpts nosize"> <option value="" <?php if ($_smarty_tpl->tpl_vars['settings']->value['smtp_secure'] == '') {?>selected<?php }?>>None</option> <option value="ssl" <?php if ($_smarty_tpl->tpl_vars['settings']->value['smtp_secure'] == "ssl") {?>selected<?php }?>>SSL</option> <option value="tls" <?php if ($_smarty_tpl->tpl_vars['settings']->value['smtp_secure'] == "tls") {?>selected<?php }?>>TLS</option> </select> <input type=text name=smtp_host value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['smtp_host'], ENT_QUOTES, 'UTF-8', true);?>
" class="inpts nosize" size=15> <input type=text name=smtp_port value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['smtp_port'], ENT_QUOTES, 'UTF-8', true);?>
" class="inpts nosize" size=4> <?php if ($_smarty_tpl->tpl_vars['permits']->value['test_smtp']) {?><input type=button class=sbmt value="Test SMTP Settings" onclick="test_smtp()"><?php }?> </td> </tr> <tr id="SMTP_tr_3" style="display:none"> <th>SMTP User:</th> <td><input type=text name=smtp_user value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['smtp_user'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr> <tr id="SMTP_tr_4" style="display:none"> <th>SMTP Password:</th> <td><input type=password name=smtp_pass value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['smtp_pass'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr> </table> <br> <table class="form settings"> <tr> <th class=title colspan=2>Deposit Settings:</th> </tr> <tr> <th>Allow Topup Account Balance:</th> <td><select name=use_add_funds class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_add_funds'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_add_funds'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Deposit from Balance Fee (%):</th> <td><input type=text name=balance_deposit_fee_percent value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['balance_deposit_fee_percent'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr> <tr> <th>Deposit Memo Template:</th> <td><input type=text name=payment_description value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['payment_description'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr> <tr> <th class=title colspan=2>Withdrawal Settings:</th> </tr> <tr> <th>Withdraw Disabled:</th> <td><select name="withdraw_disabled" class=inpts> <option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['withdraw_disabled'] == 0) {?>selected<?php }?>>No</option> <option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['withdraw_disabled'] == 1) {?>selected<?php }?>>Yes</option> </select></td> </tr> <tr> <th>User Payment Account Required:</th> <td><select name=withdraw_force_account_filled class=inpts> <option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['withdraw_force_account_filled'] == 0) {?>selected<?php }?>>No</option> <option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['withdraw_force_account_filled'] == 1) {?>selected<?php }?>>Yes</option> </select></td> </tr> <tr> <th>Withdrawal Fees:</th> <td><a href="?a=processings" targe=_blank>Set withdrawal fees per processing</a></td> </tr> <tr> <th>Max daily withdraw (<?php echo amount_smarty_fiat_func(array(),$_smarty_tpl);?>
):</th> <td><input type=text name=max_daily_withdraw class="inpts nosize" value="<?php echo amount_smarty_format($_smarty_tpl->tpl_vars['settings']->value['max_daily_withdraw']);?>
" size=6> <small>(set 0 to skip limits)</small></td> </tr> <tr> <th>Limit Withdraw Period:</th> <td> <input type=text name=limit_withdraw_period_times value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_times'];?>
" class="inpts nosize" size=6> times per <select name=limit_withdraw_period_date class="inpts nosize"> <option value="n" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_date'] == "n") {?>selected<?php }?>>none</option> <option value="day" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_date'] == "day") {?>selected<?php }?>>day</option> <option value="week" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_date'] == "week") {?>selected<?php }?>>week</option> <option value="month" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_date'] == "month") {?>selected<?php }?>>month</option> <option value="year" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_date'] == "year") {?>selected<?php }?>>year</option> <option value="ever" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_date'] == "ever") {?>selected<?php }?>>ever</option> </select> for <select name=limit_withdraw_period_pending_only class="inpts nosize"> <option value="0" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_pending_only'] == 0) {?>selected<?php }?>>Processed and Pending</option> <option value="1" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_pending_only'] == 1) {?>selected<?php }?>>Pending only</option> </select> </td> </tr> <tr> <th>Withdraw Memo Template:</th> <td><input type=text name=withdraw_memo_string value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['withdraw_memo_string'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=30></td> </tr> <tr> <th class=title colspan=2>Internal Transfer Settings:</th> </tr> <th>Allow internal transfer:</th> <td><select name=internal_transfer_enabled class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_enabled'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_enabled'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Min Internal Transfer Amount (<?php echo amount_smarty_fiat_func(array(),$_smarty_tpl);?>
):</th> <td><input type=text name=internal_transfer_min value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_min'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=6></td> </tr> <tr> <th>Max Internal Transfer Amount (<?php echo amount_smarty_fiat_func(array(),$_smarty_tpl);?>
):</th> <td><input type=text name=internal_transfer_max value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_max'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=6></td> </tr> <tr> <th>Internal Transfer Fee (%):</th> <td><input type=text name=internal_transfer_fee value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_fee'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=6></td> </tr> <tr> <th>Minimal Internal Transfer Fee (<?php echo amount_smarty_fiat_func(array(),$_smarty_tpl);?>
):</th> <td><input type=text name=minimum_internal_transfer_fee value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['minimum_internal_transfer_fee'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=6></td> </tr> <tr> <th>Internal Transfer Fee Payer:</th> <td><select name=internal_transfer_fee_payer class=inpts><option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_fee_payer'] == 1) {?>selected<?php }?>>Receiver<option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_fee_payer'] == 0) {?>selected<?php }?>>Payer</select></td> </tr> <tr> <th>Limit Transfer Period:</th> <td> <input type=text name=limit_transfer_period_times value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['limit_transfer_period_times'], ENT_QUOTES, 'UTF-8', true);?>
" class="inpts nosize" size=6> per <select name=limit_transfer_period_date class="inpts nosize"> <option value="n" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_transfer_period_date'] == "n") {?>selected<?php }?>>none</option> <option value="day" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_transfer_period_date'] == "day") {?>selected<?php }?>>day</option> <option value="week" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_transfer_period_date'] == "week") {?>selected<?php }?>>week</option> <option value="month" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_transfer_period_date'] == "month") {?>selected<?php }?>>month</option> <option value="year" <?php if ($_smarty_tpl->tpl_vars['settings']->value['limit_transfer_period_date'] == "year") {?>selected<?php }?>>year</option> </select> </td> </tr> </table> <table class="form settings"> <tr> <th class=title colspan=2>User Settings:</th> </tr> <tr> <th>Use user location fields:</th> <td><select name=use_user_location class=inpts> <option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_user_location'] == 0) {?>selected<?php }?>>No <option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_user_location'] == 1) {?>selected<?php }?>>Yes Mandatory <option value=2 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_user_location'] == 2) {?>selected<?php }?>>Yes Optional </select></td> </tr> <tr> <th>Minimal user password length:</th> <td><input type=text name=min_user_password_length value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['min_user_password_length'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=6></td> </tr> <tr> <th>Enable 2FA (Two Factor Authentification) for user:</th> <td><select name=use_tfa class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_tfa'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_tfa'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Users should use a transaction code to withdraw:</th> <td><select name=use_transaction_code class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Minimal transaction code length:</th> <td><input type=text name=min_transaction_code_length value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['min_transaction_code_length'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=6></td> </tr> <tr> <th>Users should use a transaction code to edit account:</th> <td><select name=use_transaction_code_edit_account class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code_edit_account'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code_edit_account'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Use confirmation code when account update:</th> <td><select name=account_update_confirmation class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['account_update_confirmation'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['account_update_confirmation'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Change payment accounts:</th> <td><select name=usercanchangeegoldacc class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['usercanchangeegoldacc'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['usercanchangeegoldacc'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Change e-mail:</th> <td><select name=usercanchangeemail class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['usercanchangeemail'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['usercanchangeemail'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Notify user of his profile change:</th> <td><select name=sendnotify_when_userinfo_changed class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['sendnotify_when_userinfo_changed'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['sendnotify_when_userinfo_changed'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <td colspan=2> <?php echo $_smarty_tpl->getSubTemplate ("my:start_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 Here you can specify whether user can change his own e-gold or e-mail account after registration.<br> Min user password length: Specifies the minimal user password and the transaction code length.<br> Also system can send e-mail to user when he changes his profile (for security reason).<br> Users should use transaction code to withdraw: Specifies an additional password which is needed to do the withdrawal. That password can be restored by the administrator only. It is stored in MySQL database in plain format. <?php echo $_smarty_tpl->getSubTemplate ("my:end_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 </td> </tr> </table>  <?php echo '<script'; ?>
 language=javascript>  function gen_test_validation_image() { var advanced_values = ""; if (document.mainform.advanced_graph_validation) { if (document.mainform.advanced_graph_validation_min_font_size.value < 14) { document.mainform.advanced_graph_validation_min_font_size.style.backgroundColor = "red"; } else { document.mainform.advanced_graph_validation_min_font_size.style.backgroundColor = "white"; } if (document.mainform.advanced_graph_validation_min_font_size.value > document.mainform.advanced_graph_validation_max_font_size.value) { document.mainform.advanced_graph_validation_max_font_size.style.backgroundColor = "red"; } else { document.mainform.advanced_graph_validation_max_font_size.style.backgroundColor = "white"; } advanced_values += "&advanced_graph_validation="+document.mainform.advanced_graph_validation.value; advanced_values += "&advanced_graph_validation_min_font_size="+document.mainform.advanced_graph_validation_min_font_size.value; advanced_values += "&advanced_graph_validation_max_font_size="+document.mainform.advanced_graph_validation_max_font_size.value; advanced_values += "&advanced_graph_validation_noice="+document.mainform.advanced_graph_validation_noice.value; advanced_values += "&advanced_graph_validation_wave="+document.mainform.advanced_graph_validation_wave.value; } if (document.mainform.graph_max_chars.value > 10) { document.mainform.graph_max_chars.value = 10; } if (document.mainform.graph_max_chars.value == 0) { document.mainform.graph_max_chars.value = 3; } img=document.getElementById("test_validation_image"); img.src = ""; img.src = "?a=test_validation_image&graph_max_chars="+document.mainform.graph_max_chars.value+"&graph_bg_color="+document.mainform.graph_bg_color.value+ "&graph_text_color="+document.mainform.graph_text_color.value+"&use_number_validation_number="+(document.mainform.use_number_validation_number.value)+advanced_values+"&rand="+Math.random(); } function show_hide_sample_image() { idx = document.mainform.graph_validation.selectedIndex; gv_opt = document.mainform.graph_validation.options[idx].value; z = document.getElementById("tr_sample_image_id0"); if (z) z.style.display = (gv_opt > 0 ? "table-row" : "none"); for (i = 1; i<13; i++) { z = document.getElementById("tr_sample_image_id"+i); if (z) z.style.display = (gv_opt == 1 ? "table-row" : "none"); } for (i = 0; i<5; i++) { z = document.getElementById("tr_sample_recaptcha_id"+i); if (z) z.style.display = (gv_opt == 2 ? "table-row" : "none"); }  <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_hcaptcha']) {?>  for (i = 0; i<3; i++) { z = document.getElementById("tr_sample_hcaptcha_id"+i); if (z) z.style.display = (gv_opt == 3 ? "table-row" : "none"); }  <?php }?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_coinhive_recaptcha']) {?>  for (i = 0; i<3; i++) { z = document.getElementById("tr_sample_coinhive_id"+i); if (z) z.style.display = (gv_opt == 4 ? "table-row" : "none"); }  <?php }?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_solvemedia_recaptcha']) {?>  for (i = 0; i<4; i++) { z = document.getElementById("tr_sample_solvemedia_id"+i); if (z) z.style.display = (gv_opt == 5 ? "table-row" : "none"); }  <?php }?>  if (gv_opt == 1) { show_hide_advanced_image(); } } function show_hide_advanced_image() { for (i = 8; i<13; i++) { z = document.getElementById("tr_sample_image_id"+i); if (z) z.style.display = (document.mainform.advanced_graph_validation.selectedIndex == 0 ? "none" : "table-row"); } }  <?php echo '</script'; ?>
> <br> <table class="form settings"> <tr> <th class=title colspan=2>Turing verification:</th> </tr> <tr> <th>Turing Verification:</th> <td> <select name=graph_validation class=inpts onchange="show_hide_sample_image()"> <option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['graph_validation'] == 0) {?>selected<?php }?>>No</option> <?php if ($_smarty_tpl->tpl_vars['settings']->value['turing_gd_image']) {?> <option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['graph_validation'] == 1) {?>selected<?php }?>>Image</option> <?php }?> <option value=2 <?php if ($_smarty_tpl->tpl_vars['settings']->value['graph_validation'] == 2) {?>selected<?php }?>>reCaptcha</option> <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_hcaptcha']) {?> <option value=3 <?php if ($_smarty_tpl->tpl_vars['settings']->value['graph_validation'] == 3) {?>selected<?php }?>>HCaptcha</option> <?php }?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_coinhive_recaptcha']) {?> <option value=4 <?php if ($_smarty_tpl->tpl_vars['settings']->value['graph_validation'] == 4) {?>selected<?php }?>>CoinHive</option> <?php }?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_solvemedia_recaptcha']) {?> <option value=5 <?php if ($_smarty_tpl->tpl_vars['settings']->value['graph_validation'] == 5) {?>selected<?php }?>>SolveMedia</option> <?php }?> </select> </td> </tr> <tr id=tr_sample_image_id0> <td colspan=2> <?php
$_from = $_smarty_tpl->tpl_vars['settings']->value['ti_opts'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['t'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['t']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['t']->value) {
$_smarty_tpl->tpl_vars['t']->_loop = true;
$foreach_t_Sav = $_smarty_tpl->tpl_vars['t'];
?> &nbsp; <input type=checkbox name="graph_validation_check[<?php echo $_smarty_tpl->tpl_vars['t']->value['id'];?>
]" value=1 id="ti_<?php echo $_smarty_tpl->tpl_vars['t']->value['id'];?>
" <?php if ($_smarty_tpl->tpl_vars['t']->value['checked']) {?>checked<?php }?>><label for="ti_<?php echo $_smarty_tpl->tpl_vars['t']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['t']->value['name'];?>
</label><br> <?php
$_smarty_tpl->tpl_vars['t'] = $foreach_t_Sav;
}
?> </td> </tr> <?php if ($_smarty_tpl->tpl_vars['settings']->value['turing_gd_image']) {?> <tr id=tr_sample_image_id1> <th>Sample:<div class="alert alert-danger"><small>Please be sure you can read sample before save settings</small></div></th> <td><img src=?a=test_validation_image id=test_validation_image style="min-width:20px;min-height:10px;border:solid 1px #FF8D00;" alt="Loading..." align=absmiddle onclick="gen_test_validation_image()"> <button type=button onclick="gen_test_validation_image()" class="sbmt">&#8635;</button></td> </tr> <!--tr id=tr_sample_image_id2>
 <td colspan=2><small>Please be sure you can read sample before save settings</small></td> </tr--> <tr id=tr_sample_image_id3> <th>Number of characters in the turing image:</th> <td> <select name=graph_max_chars class=inpts onchange="gen_test_validation_image()"> <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 10+1 - (3) : 3-(10)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0) {
for ($_smarty_tpl->tpl_vars['i']->value = 3, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) {
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?> <option value="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['settings']->value['graph_max_chars'] == $_smarty_tpl->tpl_vars['i']->value) {?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</option> <?php }} ?> </select> </td> </tr> <tr id=tr_sample_image_id4> <th>Use numbers only</th> <td> <select name=use_number_validation_number class=inpts onchange="gen_test_validation_image()"> <option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_number_validation_number'] == 0) {?>selected<?php }?>>No</option> <option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_number_validation_number'] == 1) {?>selected<?php }?>>Yes</option> </select> </td> </tr> <tr id=tr_sample_image_id5> <th>Turing image text color:</th> <td><input type=text name=graph_text_color value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['graph_text_color'], ENT_QUOTES, 'UTF-8', true);?>
" onchange="gen_test_validation_image()" class=color style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;border: 1px inset #FEE498;border-color: #FF8D00;border-style: solid;" size=10></td> </tr> <tr id=tr_sample_image_id6> <th>Turing image bg color:</th> <td><input type=text name=graph_bg_color value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['graph_bg_color'], ENT_QUOTES, 'UTF-8', true);?>
" onchange="gen_test_validation_image()" class=color style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;border: 1px inset #FEE498;border-color: #FF8D00;border-style: solid;" size=10></td> </tr> <?php if ($_smarty_tpl->tpl_vars['settings']->value['show_advanced_turing_image']) {?> <tr id=tr_sample_image_id7> <th>Use advanced turing verification:</th> <td> <select name=advanced_graph_validation class=inpts onchange="show_hide_advanced_image();gen_test_validation_image()"> <option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['advanced_graph_validation'] == 0) {?>selected<?php }?>>No</option> <option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['advanced_graph_validation'] == 1) {?>selected<?php }?>>Yes</option> </select> </td> </tr> <tr id=tr_sample_image_id8> <th>Use noise:</th> <td> <select name=advanced_graph_validation_noice class=inpts onchange="gen_test_validation_image()"> <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 5+1 - (0) : 0-(5)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0) {
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) {
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?> <option value="<?php echo $_smarty_tpl->tpl_vars['i']->value*10;?>
" <?php if (($_smarty_tpl->tpl_vars['i']->value*10) == $_smarty_tpl->tpl_vars['settings']->value['advanced_graph_validation_noice']) {?>selected<?php }?> value=1><?php echo $_smarty_tpl->tpl_vars['i']->value*10;?>
%</option> <?php }} ?> </select> </td> </tr> <tr id=tr_sample_image_id11> <th>Use distortion:</th> <td> <select name=advanced_graph_validation_wave class=inpts onchange="show_hide_advanced_image();gen_test_validation_image()"> <option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['advanced_graph_validation_wave'] == 0) {?>selected<?php }?>>No</option> <option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['advanced_graph_validation_wave'] == 1) {?>selected<?php }?>>Yes</option> </select> </td> </tr> <tr id=tr_sample_image_id9> <th>Font minimal size:</th> <td><input type=text name=advanced_graph_validation_min_font_size oninput="gen_test_validation_image()" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['advanced_graph_validation_min_font_size'];?>
" class=inpts size=10></td> </tr> <tr id=tr_sample_image_id10> <th>Font maximal size:</th> <td><input type=text name=advanced_graph_validation_max_font_size oninput="gen_test_validation_image()" value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['advanced_graph_validation_max_font_size'];?>
" class=inpts size=10></td> </tr> <tr id=tr_sample_image_id12> <td colspan=2> <?php echo $_smarty_tpl->getSubTemplate ("my:start_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 Use advanced turing verification:<br> Creates a turing image with the font &quot;fonts/font.ttf&quot; (you can upload any TTF font into this file).<br> The font size (in a range specified in &quot;Font min size&quot; and &quot;Font max size&quot;) and angle are random for each char.<br> You can add pixels noise the image for less readbility for robots.<br> You can apply distortion effect to screw chracters for less readbility for robots. <?php echo $_smarty_tpl->getSubTemplate ("my:end_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 </td> </tr> <?php }?>  <?php }?>  <tr id=tr_sample_recaptcha_id1> <th>ReCAPTCHA Version:</th> <td> <select name=recaptcha_version class=inpts> <option <?php if ($_smarty_tpl->tpl_vars['settings']->value['recaptcha_version'] == 2) {?>selected<?php }?> value=2>v2</option> <option <?php if ($_smarty_tpl->tpl_vars['settings']->value['recaptcha_version'] == 3) {?>selected<?php }?> value=3>v3</option> </select> </tr> <tr id=tr_sample_recaptcha_id2> <th>ReCAPTCHA Site Key:</th> <td><input type=text name=recaptcha_site_key value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['recaptcha_site_key'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=10></td> </tr> <tr id=tr_sample_recaptcha_id3> <th>ReCAPTCHA Secret Key:</th> <td><input type=text name=recaptcha_secret_key value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['recaptcha_secret_key'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=10></td> </tr> <tr id=tr_sample_recaptcha_id4> <td colspan=2> <?php echo $_smarty_tpl->getSubTemplate ("my:start_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 <?php if (!$_smarty_tpl->tpl_vars['settings']->value['check_tmpl_recaptcha']) {?> <div class="alert alert-danger">You should update your templates to use reCaptcha. Please find captcha.tpl in the latest script archive and upload it to your script "tmpl" folder.</div> <?php }?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['captcha_not_found_files']) {?> <div class="alert alert-danger">Next templates should be update to add &lcub;include file=&quote;captcha.tpl&quote;&rcub; to use with reCpatcha:<br> <?php
$_from = $_smarty_tpl->tpl_vars['settings']->value['captcha_files'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['v'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['v']->_loop = false;
$_smarty_tpl->tpl_vars['file'] = new Smarty_Variable;
foreach ($_from as $_smarty_tpl->tpl_vars['file']->value => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
$foreach_v_Sav = $_smarty_tpl->tpl_vars['v'];
?> <?php if ($_smarty_tpl->tpl_vars['v']->value == 0) {
echo $_smarty_tpl->tpl_vars['file']->value;?>
.tpl<br><?php }?> <?php
$_smarty_tpl->tpl_vars['v'] = $foreach_v_Sav;
}
?> </div> <?php }?> Please visit <a href="https://www.google.com/recaptcha/" target=_blank>Google reCapatcha</a> page to create Site Key and Secret Key.
<?php echo $_smarty_tpl->getSubTemplate ("my:end_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 </td> </tr> <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_hcaptcha']) {?> <tr id=tr_sample_hcaptcha_id1> <th>HCAPTCHA Site Key:</th> <td><input type=text name=hcaptcha_site_key value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['hcaptcha_site_key'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=10></td> </tr> <tr id=tr_sample_hcaptcha_id2> <th>HCAPTCHA Secret Key:</th> <td><input type=text name=hcaptcha_secret_key value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['hcaptcha_secret_key'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=10></td> </tr> <?php }?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_coinhive_recaptcha']) {?> <tr id=tr_sample_coinhive_id1> <th>Coinhive CAPTCHA Site Key:</th> <td><input type=text name=coinhive_recaptcha_site_key value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['coinhive_recaptcha_site_key'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=10></td> </tr> <tr id=tr_sample_coinhive_id2> <th>Coinhive CAPTCHA Secret Key:</th> <td><input type=text name=coinhive_recaptcha_secret_key value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['coinhive_recaptcha_secret_key'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=10></td> </tr> <?php }?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_solvemedia_recaptcha']) {?> <tr id=tr_sample_solvemedia_id1> <th>Solvemedia Challenge Key:</th> <td><input type=text name=solvemedia_recaptcha_c_key value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['solvemedia_recaptcha_c_key'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=10></td> </tr> <tr id=tr_sample_solvemedia_id2> <th>Solvemedia Verification Key:</th> <td><input type=text name=solvemedia_recaptcha_v_key value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['solvemedia_recaptcha_v_key'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=10></td> </tr> <tr id=tr_sample_solvemedia_id3> <th>Solvemedia Hash Key:</th> <td><input type=text name=solvemedia_recaptcha_h_key value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['solvemedia_recaptcha_h_key'], ENT_QUOTES, 'UTF-8', true);?>
" class=inpts size=10></td> </tr> <?php }?> <tr> <td colspan=2> <?php echo $_smarty_tpl->getSubTemplate ("my:start_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 You can use the turing image for verification when users login to the system. It will stop brute force scripts from hacking passwords.<br> <?php echo $_smarty_tpl->getSubTemplate ("my:end_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 </td> </tr> </table> <?php echo '<script'; ?>
>gen_test_validation_image();<?php echo '</script'; ?>
> <br> <table class="form settings"> <tr> <th class=title colspan=2>Brute Force Protection:</td> </tr> <tr> <th>Prevent Brute Force:</th> <td><select name=brute_force_handler class=inpts><option value=0 <?php if ($_smarty_tpl->tpl_vars['settings']->value['brute_force_handler'] == 0) {?>selected<?php }?>>No<option value=1 <?php if ($_smarty_tpl->tpl_vars['settings']->value['brute_force_handler'] == 1) {?>selected<?php }?>>Yes</select></td> </tr> <tr> <th>Max Invalid Attempts:</th> <td><input type=text name=brute_force_max_tries value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['brute_force_max_tries'];?>
" class=inpts size=10></td> </tr> <tr> <td colspan=2> <?php echo $_smarty_tpl->getSubTemplate ("my:start_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 Prevent Brute Force: Turns on the brute force prevention system.<br> Max Invalid Attempts: The number of invalid login tries. The login is being blocked if one tries to login more than specified here number of times with the invalid password. The e-mail message with an activation link is generated and being sent to a user. One cannot login even with a correct password before the account activation. <?php echo $_smarty_tpl->getSubTemplate ("my:end_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 </td> </tr> </table> <br> <table class="form settings"> <tr> <th class=title colspan=2>Time settings:</th> </tr> <tr> <th>Server time:</th> <td><?php echo $_smarty_tpl->tpl_vars['server_time']->value['sys_time'];?>
</td> </tr> <tr> <th>System time:</th> <td><?php echo $_smarty_tpl->tpl_vars['server_time']->value['cur_time'];?>
</td> </tr> <tr> <th>Difference:</th> <td><input type=text name=time_dif value="<?php echo $_smarty_tpl->tpl_vars['settings']->value['time_dif'];?>
" class="inpts nosize" size=5> hours</td> </tr> <tr> <td colspan=2> <?php echo $_smarty_tpl->getSubTemplate ("my:start_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 Change your system time. You can set the system to show all dates for your time zone. <?php echo $_smarty_tpl->getSubTemplate ("my:end_info_table", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 </td> </tr><tr> </tr> </table> <br>  <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_alternative_passphrase']) {?> <table class="form settings"> <tr> <th>Alternative Passphrase:</th> <td><input type=password name="alternative_passphrase" value="" class=inpts size=30></td> </tr> </table> <?php }?> <br> <center> <input type=submit value="Save Settings" class="btn btn-success sbmt"> </center> </form> <?php echo '<script'; ?>
 language="JavaScript"> show_hide_sample_image(); <?php if ($_smarty_tpl->tpl_vars['settings']->value['mail_method'] == 1) {?> open_trs("SMTP", 4); <?php }?> <?php echo '</script'; ?>
> <?php echo $_smarty_tpl->getSubTemplate ("my:admin_footer", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
 <?php }
}
?>