# acymailing/11.0.3/back/Views/Configuration/tmpl/security.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 11.0.3. 686 lines.

- Page: https://pluginprobe.com/plugins/acymailing/11.0.3/code/back/Views/Configuration/tmpl/security.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.0.3/raw/back/Views/Configuration/tmpl/security.php
- Modified: 2026-08-03T10:18:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/11.0.3/code/back/Views/Configuration/tmpl/security.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
defined('ABSPATH') || die('Restricted Access');
?>
<div class="acym__content acym_area padding-vertical-1 padding-horizontal-2 margin-bottom-2">
    <?php if (acym_level(ACYM_ESSENTIAL)) { ?>
		<div class="margin-bottom-2 acym__configuration__rest_api cell grid-x">
			<div class="acym__title acym__title__secondary grid-x">
                <?php echo esc_html(acym_translation('ACYM_REST_API')); ?>
                <?php acym_externalLink(
                    'ACYM_DOCUMENTATION',
                    ACYM_DOCUMENTATION.'v/rest-api/',
                    true,
                    true,
                    ['margin-left-1 margin-right-1']
                ); ?>
			</div>
			<div class="cell grid-x acym_vcenter">
				<label class="cell large-3" for="php_overrides">
                    <?php echo esc_html(acym_translation('ACYM_ACTIVATE_REST_API'));
                    acym_info(['textShownInTooltip' => 'ACYM_ACTIVATE_REST_API_DESC']); ?>
				</label>
				<div class="cell grid-x large-9">
                    <?php
                    acym_switch([
                        'name' => 'config[rest_api]',
                        'value' => $this->config->get('rest_api', 0),
                    ]);
                    ?>
				</div>
			</div>
			<div class="cell grid-x acym_vcenter margin-top-1">
				<label class="cell large-3" for="api_key">
                    <?php echo esc_html(acym_translation('ACYM_API_KEY'));
                    acym_info(['textShownInTooltip' => 'ACYM_API_KEY_DESC']); ?>
				</label>
				<input class="cell large-9"
				       id="api_key"
				       type="text"
				       name="config[api_key]"
				       value="<?php echo esc_attr($this->config->get('api_key')); ?>" />
			</div>
		</div>
    <?php } ?>

    <?php if (isset($data['level']) && isset($data['captchaOptions'])) { ?>
		<div class="margin-bottom-2 cell margin-y acym__configuration__security__captcha">
			<div class="acym__title acym__title__secondary">
                <?php echo esc_html(acym_translation('ACYM_CONFIGURATION_CAPTCHA')); ?>
                <?php
                if (!acym_level(ACYM_ESSENTIAL)) {
                    echo esc_html(' '.acym_translation('ACYM_PRO_VERSION_ONLY'));
                }
                ?>
			</div>
			<div class="grid-x grid-margin-x margin-y">
				<div class="cell medium-6 grid-x">
					<label class="cell large-3" for="security_key">
                        <?php echo esc_html(acym_translation('ACYM_CONFIGURATION_CAPTCHA'));
                        acym_info(['textShownInTooltip' => 'ACYM_CAPTCHA_DESC']); ?>
					</label>
					<div class="cell large-9">
                        <?php
                        $attribs = [
                            'class' => 'acym__select',
                            'data-toggle-select' => '{"acym_ireCaptcha":".acym__config__captcha__recaptcha","acym_reCaptcha_v3":".acym__config__captcha__recaptcha, .acym__config__captcha__recaptcha_v3","acym_hcaptcha":".acym__config__captcha__hcaptcha" }',
                        ];
                        // To disable Captcha dropdown
                        if (!$data['level']) {
                            $attribs['disabled'] = '';
                        }

                        acym_select(
                            $data['captchaOptions'],
                            'config[captcha]',
                            $this->config->get('captcha', 'none'),
                            $attribs,
                            'value',
                            'text',
                            null,
                            false,
                            true
                        );
                        ?>
					</div>
				</div>
                <?php if ($data['level']) { ?>
					<div class="cell medium-6 grid-x">
						<label class="cell large-3" for="security_key">
                            <?php echo esc_html(acym_translation('ACYM_SECURITY_KEY'));
                            acym_info(['textShownInTooltip' => 'ACYM_SECURITY_KEY_DESC']); ?>
						</label>
						<input class="cell large-9"
						       id="security_key"
						       type="text"
						       name="config[security_key]"
						       value="<?php echo esc_attr($this->config->get('security_key')); ?>" />
					</div>
					<div class="cell medium-6 grid-x acym__config__captcha__hcaptcha">
						<label class="cell large-3" for="hcaptcha_sitekey">
                            <?php
                            echo esc_html(acym_translation('ACYM_GENERAL_SITE_KEY'));
                            acym_tooltip(
                                [
                                    'hoveredText' => '<span class="acym__tooltip__info__container"><i class="acym__tooltip__info__icon acymicon-info-circle"></i></span>',
                                    'textShownInTooltip' => acym_translation('ACYM_CLICK_HERE_TO_CREATE'),
                                    'classContainer' => 'acym__tooltip__info',
                                    'link' => 'https://dashboard.hcaptcha.com/sites/new',
                                ]
                            );
                            ?>
						</label>
						<input class="cell large-9"
						       id="hcaptcha_sitekey"
						       type="text"
						       name="config[hcaptcha_sitekey]"
						       value="<?php echo esc_attr($this->config->get('hcaptcha_sitekey')); ?>" />
					</div>
					<div class="cell medium-6 grid-x acym__config__captcha__hcaptcha">
						<label class="cell large-3" for="hcaptcha_secretkey">
                            <?php
                            echo esc_html(acym_translation('ACYM_GENERAL_SECRET_KEY'));
                            acym_tooltip(
                                [
                                    'hoveredText' => '<span class="acym__tooltip__info__container"><i class="acym__tooltip__info__icon acymicon-info-circle"></i></span>',
                                    'textShownInTooltip' => acym_translation('ACYM_CLICK_HERE_TO_CREATE'),
                                    'classContainer' => 'acym__tooltip__info',
                                    'link' => 'https://dashboard.hcaptcha.com/sites/new',
                                ]
                            );
                            ?>
						</label>
						<input class="cell large-9"
						       id="hcaptcha_secretkey"
						       type="text"
						       name="config[hcaptcha_secretkey]"
						       value="<?php echo esc_attr($this->config->get('hcaptcha_secretkey')); ?>" />
					</div>

					<div class="cell medium-6 grid-x acym__config__captcha__recaptcha">
						<label class="cell large-3" for="recaptcha_sitekey">
                            <?php
                            echo esc_html(acym_translation('ACYM_SITE_KEY'));
                            acym_tooltip(
                                [
                                    'hoveredText' => '<span class="acym__tooltip__info__container"><i class="acym__tooltip__info__icon acymicon-info-circle"></i></span>',
                                    'textShownInTooltip' => acym_translation('ACYM_CLICK_HERE_TO_CREATE'),
                                    'classContainer' => 'acym__tooltip__info',
                                    'link' => 'https://www.google.com/recaptcha/admin',
                                ]
                            );
                            ?>
						</label>
						<input class="cell large-9"
						       id="recaptcha_sitekey"
						       type="text"
						       name="config[recaptcha_sitekey]"
						       value="<?php echo esc_attr($this->config->get('recaptcha_sitekey')); ?>" />
					</div>
					<div class="cell medium-6 grid-x acym__config__captcha__recaptcha">
						<label class="cell large-3" for="recaptcha_secretkey">
                            <?php
                            echo esc_html(acym_translation('ACYM_SECRET_KEY'));
                            acym_tooltip(
                                [
                                    'hoveredText' => '<span class="acym__tooltip__info__container"><i class="acym__tooltip__info__icon acymicon-info-circle"></i></span>',
                                    'textShownInTooltip' => acym_translation('ACYM_CLICK_HERE_TO_CREATE'),
                                    'classContainer' => 'acym__tooltip__info',
                                    'link' => 'https://www.google.com/recaptcha/admin',
                                ]
                            );
                            ?>
						</label>
						<input class="cell large-9"
						       id="recaptcha_secretkey"
						       type="text"
						       name="config[recaptcha_secretkey]"
						       value="<?php echo esc_attr($this->config->get('recaptcha_secretkey')); ?>" />
					</div>
					<div class="cell medium-6 grid-x acym__config__captcha__recaptcha_v3">
						<label class="cell large-3" for="recaptcha_score">
                            <?php
                            echo esc_html(acym_translation('ACYM_CAPTCHA_SCORE'));
                            acym_tooltip(
                                [
                                    'hoveredText' => '<span class="acym__tooltip__info__container"><i class="acym__tooltip__info__icon acymicon-info-circle"></i></span>',
                                    'textShownInTooltip' => acym_translation('ACYM_CAPTCHA_SCORE_DESC'),
                                    'classContainer' => 'acym__tooltip__info',
                                    'link' => 'https://developers.google.com/recaptcha/docs/v3',
                                ]
                            );
                            ?>
						</label>
						<input class="cell large-9"
						       id="recaptcha_score"
						       type="number"
						       name="config[recaptcha_score]"
						       min="0"
						       max="1"
						       step="0.1"
						       onKeyDown="return false"
						       value="<?php echo esc_attr($this->config->get('recaptcha_score', 0.5)); ?>" />
					</div>
                <?php } ?>
			</div>
		</div>
    <?php } ?>

	<div class="acym__configuration__security__email cell grid-x">
		<div class="acym__title acym__title__secondary grid-x">
            <?php echo esc_html(acym_translation('ACYM_EMAIL_VERIFICATION')); ?>
			<div class="margin-left-1">
                <?php
                $score = 100;
                $tooltip = [];
                if ($this->config->get('email_checkdomain') == 0) {
                    $score -= 10;
                    $tooltip[] = acym_translation('ACYM_EMAIL_VERIFICATION_SCORE_DESC_DOMAIN_VERIFICATION');
                }
                if (empty($this->config->get('require_confirmation', 1))) {
                    $score -= 30;
                    $tooltip[] = acym_translation('ACYM_EMAIL_VERIFICATION_SCORE_DESC_DOUBLE_OPT_IN');
                }
                if ($this->config->get('email_spellcheck') == 0) {
                    $score -= 10;
                    $tooltip[] = acym_translation('ACYM_EMAIL_VERIFICATION_SCORE_DESC_TYPO');
                }

                if (!acym_isAcyCheckerInstalled()) {
                    $score -= 50;
                    $tooltip[] = acym_translation('ACYM_EMAIL_VERIFICATION_SCORE_DESC_CHECKER');
                } else {
                    if ($this->config->get('email_verification') == 0) {
                        $score -= 50;
                        $tooltip[] = acym_translation('ACYM_EMAIL_VERIFICATION_SCORE_DESC_CHECKER');
                    }

                    $oneEnabled = false;

                    if ($this->config->get('email_verification', 0) != 0) {
                        $verificationOptions = [
                            'email_verification_non_existing',
                            'email_verification_disposable',
                            'email_verification_free',
                            'email_verification_role',
                            'email_verification_acceptall',
                        ];

                        foreach ($verificationOptions as $verificationOption) {
                            if ($this->config->get($verificationOption, 0) == 0) continue;

                            $oneEnabled = true;
                            break;
                        }
                    }

                    if (!$oneEnabled) $tooltip[] = acym_translation('ACYM_YOU_SHOULD_ENABLE_CHECK');
                }

                echo '('.esc_html(acym_translationSprintf('ACYM_EMAIL_VERIFICATION_SCORE', $score)).')';
                if (!empty($tooltip)) {
                    acym_info(
                        [
                            'textShownInTooltip' => implode('<br />', $tooltip),
                        ]
                    );
                }
                ?>
			</div>
		</div>
		<div class="grid-x margin-y">
			<div class="cell medium-6 grid-x">
                <?php
                acym_switch([
                    'name' => 'config[email_checkdomain]',
                    'value' => $this->config->get('email_checkdomain'),
                    'label' => acym_translation('ACYM_CHECK_DOMAIN_EXISTS'),
                    'labelClass' => 'xlarge-9 large-6 small-9',
                ]);
                ?>
			</div>
			<div class="cell medium-6 grid-x">
                <?php
                acym_switch([
                    'name' => 'config[email_spellcheck]',
                    'value' => $this->config->get('email_spellcheck'),
                    'label' => acym_translation('ACYM_SPELLCHECK_SUGGESTIONS'),
                    'tip' => ['textShownInTooltip' => 'ACYM_SPELLCHECK_SUGGESTIONS_DESC'],
                    'labelClass' => 'xlarge-9 large-6 small-9',
                ]);
                ?>
			</div>
			<div class="cell medium-6 grid-x">
                <?php
                acym_switch([
                    'name' => 'config[email_confirmation]',
                    'value' => $this->config->get('email_confirmation'),
                    'label' => acym_translation('ACYM_ENABLE_EMAIL_CONFIRMATION_FOR_SUBSCRIPTION_FORM'),
                    'tip' => ['textShownInTooltip' => 'ACYM_ENABLE_EMAIL_CONFIRMATION_FOR_SUBSCRIPTION_FORM_DESC'],
                    'labelClass' => 'xlarge-9 large-6 small-9',
                ]);
                ?>
			</div>
			<div class="cell grid-x acychecker_ad">
				<div class="cell ">
					<h6>
                        <?php echo esc_html(acym_translation('ACYM_ACYCHECKER_CONFIG_AD_TITLE')); ?>
						<img class="acychecker_logo" alt="logo AcyChecker" src="<?php echo esc_url(ACYM_IMAGES.'icons/logo_acychecker.png'); ?>" />
					</h6>
				</div>
				<div class="cell xlarge-6 grid-x">
                    <?php
                    acym_switch([
                        'name' => 'config[email_verification]',
                        'value' => $this->config->get('email_verification'),
                        'label' => acym_translation('ACYM_ACYCHECKER_CHECK_SUBSCRIPTION'),
                        'labelClass' => 'xlarge-9 large-6 small-9',
                        'toggle' => $data['acychecker_installed'] ? 'email_verification' : null,
                        'disabled' => !$data['acychecker_installed'],
                    ]);
                    ?>
				</div>
				<div id="email_verification" class="cell grid-x">
					<label class="cell margin-top-1">
                        <?php echo esc_html(acym_translation('ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK')); ?>
					</label>
					<div class="cell large-6 grid-x">
                        <?php
                        $verificationOptions = [
                            'email_verification_non_existing' => ['ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK_NON_EXISTING', ''],
                            'email_verification_disposable' => [
                                'ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK_DISPOSABLE',
                                'ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK_DISPOSABLE_DESC',
                            ],
                            'email_verification_free' => ['ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK_FREE', 'ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK_FREE_DESC'],
                            'email_verification_role' => ['ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK_ROLE', 'ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK_ROLE_DESC'],
                            'email_verification_acceptall' => [
                                'ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK_ACCEPT_ALL',
                                'ACYM_ACYCHECKER_CHECK_SUBSCRIPTION_BLOCK_ACCEPT_ALL_DESC',
                            ],
                        ];

                        foreach ($verificationOptions as $option => $label) {
                            echo '<div class="cell grid-x margin-bottom-1">';
							$switchOptions = [
                                'name' => 'config['.$option.']',
                                'value' => $this->config->get($option),
                                'label' => acym_translation($label[0]),
                                'labelClass' => 'small-9',
                                'disabled' => !$data['acychecker_installed'],
                            ];
                            if (!empty($label[1])) {
								$switchOptions['tip'] = ['textShownInTooltip' => $label[1]];
                            }
                            acym_switch($switchOptions);
                            echo '</div>';
                        }
                        ?>
					</div>
                    <?php if (!$data['acychecker_installed']) { ?>
						<div class="cell large-6 grid-x align-center">
							<div class="cell large-6 grid-x align-center text-center">
                                <?php echo esc_html(acym_translation('ACYM_ACYCHECKER_CONFIG_AD')); ?>
								<a target="_blank" class="cell shrink button button-secondary" href="<?php echo esc_url($data['acychecker_get_link']); ?>">
                                    <?php echo esc_html(acym_translation('ACYM_ACYCHECKER_CONFIG_AD_BUTTON')); ?>
								</a>
							</div>
						</div>
                    <?php } ?>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="acym__content acym_area padding-horizontal-2 acym__configuration__advanced">
	<div class="cell grid-x acym__configuration__showmore-head">
		<div class="acym__title acym__title__secondary cell auto margin-bottom-0"><?php echo esc_html(acym_translation('ACYM_CONFIGURATION_ADVANCED')); ?></div>
		<div class="cell shrink">
            <?php acym_showMore('acym__configuration__security__advanced__content'); ?>
		</div>
	</div>
	<div id="acym__configuration__security__advanced__content" style="display:none;">
        <?php if ($data['adminPermissions']) { ?>
			<div class="margin-bottom-2">
				<div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_PERMISSIONS')); ?></div>
				<div class="grid-x grid-margin-x margin-y">
                    <?php acym_cmsPermission(); ?>
					<div class="cell grid-x">
						<label class="cell large-3 medium-5 small-9">
                            <?php echo esc_html(acym_translation('ACYM_ADVANCED_ACL'));
                            acym_info(['textShownInTooltip' => 'ACYM_ADVANCED_ACL_DESC']); ?>
						</label>
						<div class="cell auto">
							<button type="button" class="button button-secondary" id="acym__configuration__acl__toggle"><?php echo esc_html(
                                    acym_translation('ACYM_SHOW_HIDE')
                                ); ?></button>
						</div>
					</div>
				</div>
				<div class="grid-x grid-margin-x" id="acym__configuration__acl__zone">
					<input type="hidden" name="json_acl" id="json_acl" />
                    <?php foreach ($data['acl_advanced'] as $page => $title) { ?>
						<div class="cell grid-x acym__configuration__acl__row">
							<div class="cell large-3 margin-left-1">
                                <?php echo esc_html(acym_translation($title)); ?>
							</div>
							<div class="cell auto">
                                <?php $data['aclType']->display($page); ?>
							</div>
						</div>
                    <?php } ?>
				</div>
			</div>
        <?php } ?>
        <?php if ('joomla' === ACYM_CMS) {
            if (acym_level(ACYM_ENTERPRISE)) { ?>
				<div class="margin-bottom-2">
					<div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_FRONTEND_EDITION')); ?></div>
					<div class="grid-x grid-margin-x grid-margin-y">
						<div class="cell large-3 small-12"><?php echo esc_html(acym_translation('ACYM_FRONT_DELETE_BUTTON'));
                            acym_info(
                                ['textShownInTooltip' => 'ACYM_FRONT_DELETE_BUTTON_DESC']
                            ); ?></div>
						<div class="cell auto">
                            <?php
                            acym_radio(
                                [
                                    'delete' => acym_translation('ACYM_DELETE_THE_SUBSCRIBER'),
                                    'removesub' => acym_translation('ACYM_REMOVE_USER_SUBSCRIPTION'),
                                ],
                                'config[frontend_delete_button]',
                                $this->config->get('frontend_delete_button', 'delete')
                            );
                            ?>
						</div>
					</div>
					<div class="grid-x grid-margin-x grid-margin-y">
						<div class="cell large-3"><?php echo esc_html(acym_translation('ACYM_FRONT_FILTER_CAMPAIGNS')); ?></div>
						<div class="cell large-9">
                            <?php
                            acym_select(
                                [
                                    'own' => acym_translation('ACYM_FRONT_ONLY_CREATED_CAMPAIGNS'),
                                    'allowed' => acym_translation('ACYM_FRONT_SENT_TO_ALLOWED_LISTS'),
                                ],
                                'config[front_campaigns_filter]',
                                $this->config->get('front_campaigns_filter', 'own'),
                                [
                                    'class' => 'acym__select',
                                ],
                                'value',
                                'text',
                                null,
                                false,
                                true
                            );
                            ?>
						</div>
					</div>
				</div>
                <?php // __END__enterprise_
            }
        } ?>
		<div class="margin-bottom-2">
			<div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_FILES')); ?></div>
			<div class="grid-x grid-margin-y margin-y">

				<label class="cell large-3" for="allowed_files">
                    <?php echo esc_html(acym_translation('ACYM_ALLOWED_FILES'));
                    acym_info(['textShownInTooltip' => 'ACYM_ALLOWED_FILES_DESC']); ?>
				</label>
				<input class="cell auto"
				       id="allowed_files"
				       type="text"
				       name="config[allowed_files]"
				       value="<?php echo esc_attr($this->config->get('allowed_files')); ?>" />
			</div>
			<div class="grid-x grid-margin-y margin-y">
				<label class="cell large-3" for="uploadfolder">
                    <?php echo esc_html(acym_translation('ACYM_UPLOAD_FOLDER'));
                    acym_info(['textShownInTooltip' => 'ACYM_UPLOAD_FOLDER_DESC']); ?>
				</label>
				<input class="cell large-9" id="uploadfolder" type="text" name="config[uploadfolder]" value="<?php echo esc_attr($this->config->get('uploadfolder')); ?>" />
			</div>
            <?php
            ?>
			<div class="cell grid-x grid-margin-y margin-y acym_vcenter">
				<label class="cell large-3" for="php_overrides">
                    <?php echo esc_html(acym_translation('ACYM_ALLOW_PHP_OVERRIDES'));
                    acym_info(['textShownInTooltip' => 'ACYM_ALLOW_PHP_OVERRIDES_DESC']); ?>
				</label>
				<div class="cell grid-x large-9">
                    <?php
                    acym_switch([
                        'name' => 'config[php_overrides]',
                        'value' => $this->config->get('php_overrides', 0),
                    ]);
                    ?>
				</div>
			</div>
		</div>
		<div class="acym__configuration__check-database margin-bottom-2">
			<div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_REDIRECTIONS')); ?></div>
			<div class="grid-x grid-margin-x margin-y">
				<div class="cell grid-x acym_vcenter">
					<label class="cell large-3" for="allowed_files">
                        <?php echo esc_html(acym_translation('ACYM_ALLOWED_HOSTS'));
                        acym_info(['textShownInTooltip' => 'ACYM_ALLOWED_HOSTS_DESC']); ?>
					</label>
					<div class="cell grid-x large-9">
                        <?php
                        $allowedHosts = $this->config->get('allowed_hosts', '');
                        if (empty($allowedHosts)) {
                            $allowedHosts = [];
                        } else {
                            $allowedHosts = explode(',', $allowedHosts);
                        }
                        $allowedHostsFormatted = [];
                        if (!empty($allowedHosts)) {
                            foreach ($allowedHosts as $host) {
                                $allowedHostsFormatted[$host] = $host;
                            }
                        }
                        acym_selectMultiple(
                            $allowedHostsFormatted,
                            'config[allowed_hosts]',
                            $allowedHosts,
                            ['class' => 'acym__allowed__hosts__select', 'placeholder' => acym_translation('ACYM_ENTER_NEW_DOMAIN')],
                            'value',
                            'text',
                            true
                        );
                        ?>
					</div>
				</div>
				<div class="cell grid-x acym_vcenter">
					<label class="cell large-3" for="allowed_files">
                        <?php
                        echo esc_html(acym_translation('ACYM_ACTIVATE_AUTOLOGIN_URLS'));
                        acym_info(['textShownInTooltip' => 'ACYM_ACTIVATE_AUTOLOGIN_URLS_DESCRIPTION']);
                        ?>
					</label>
					<div class="cell grid-x large-9">
                        <?php
                        acym_switch([
                            'name' => 'config[autologin_urls]',
                            'value' => $this->config->get('autologin_urls', 0),
                            'toggle' => 'autologin_urls_duration',
                        ]);
                        ?>
					</div>
				</div>
				<div class="cell grid-x acym_vcenter" id="autologin_urls_duration">
					<label class="cell large-3">
                        <?php echo esc_html(acym_translation('ACYM_AUTOLOGIN_TOKEN_DURATION'));
                        acym_info(['textShownInTooltip' => 'ACYM_AUTOLOGIN_TOKEN_DURATION_DESC']); ?>
					</label>
					<div class="cell large-9">
						<input type="number"
						       name="config[autologin_token_duration]"
						       value="<?php echo intval($this->config->get('autologin_token_duration', 48)); ?>"
						       min="1"
						       class="intext_input" />
					</div>
				</div>
			</div>
		</div>
		<div class="margin-bottom-2">
			<div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_CRON')); ?></div>
			<div class="grid-x grid-margin-x margin-y">
				<div class="cell grid-x acym_vcenter">
					<label class="cell large-3" for="cron_security">
                        <?php echo esc_html(acym_translation('ACYM_ADD_SECURITY_KEY_CRON')); ?>
					</label>
					<div class="cell grid-x large-9">
                        <?php
                        acym_switch([
                            'name' => 'config[cron_security]',
                            'value' => $this->config->get('cron_security', 0),
                        ]);
                        ?>
					</div>
				</div>
			</div>
			<div class="grid-x grid-margin-y margin-y">
				<label class="cell large-3" for="cron_key">
                    <?php echo esc_html(acym_translation('ACYM_CRON_KEY'));
                    acym_info(['textShownInTooltip' => 'ACYM_CRON_KEY_DESC']); ?>
				</label>
				<input class="cell large-9"
				       id="cron_key"
				       type="text"
				       name="config[cron_key]"
				       value="<?php echo esc_attr($this->config->get('cron_key', $this->config->get('security_key', ''))); ?>" />
			</div>
		</div>

		<div class="margin-bottom-2">
			<div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_URL')); ?></div>
			<div class="grid-x grid-margin-x margin-y">
				<div class="cell grid-x acym_vcenter">
					<label class="cell large-3" for="different_admin_url_toggle">
                        <?php echo esc_html(acym_translation('ACYM_FRONT_BACK_URL')); ?>
					</label>
					<div class="cell grid-x large-9">
                        <?php
                        acym_switch([
                            'name' => 'config[different_admin_url_toggle]',
                            'value' => $this->config->get('different_admin_url_toggle', 0),
                            'toggle' => 'cron_security_config',
                        ]);
                        ?>
					</div>
				</div>
			</div>
			<div class="grid-x grid-margin-y margin-y" id="cron_security_config">
				<div class="cell grid-x acym_vcenter">
					<label class="cell large-3" for="different_admin_url_value">
                        <?php echo esc_html(acym_translation('ACYM_BACKEND_URL')); ?>
					</label>
                    <?php $differentUrl = $this->config->get('different_admin_url_value'); ?>
					<input class="cell large-9"
					       id="different_admin_url_value"
					       type="text"
					       name="config[different_admin_url_value]"
					       placeholder="<?php echo esc_attr(rtrim(ACYM_LIVE, '/')); ?>"
					       value="<?php echo esc_attr($differentUrl); ?>" />
				</div>
			</div>
		</div>

		<div class="acym__configuration__check-database margin-bottom-2">
			<div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_CONFIGURATION_DB_MAINTENANCE')); ?></div>
			<div class="grid-x grid-margin-x margin-y">
				<div class="cell grid-x">
                    <?php
                    acym_tooltip(
                        [
                            'hoveredText' => '<button type="button" class="cell medium-shrink button button-secondary" id="checkdb_button">'.acym_translation(
                                    'ACYM_CHECK_DB'
                                ).'</button>',
                            'textShownInTooltip' => acym_translation('ACYM_INTRO_CHECK_DATABASE'),
                            'classContainer' => 'cell medium-shrink',
                        ]
                    );
                    ?>
					<div class="cell auto padding-left-1" id="checkdb_report"></div>
				</div>
                <?php if (acym_existsAcyMailing59()) { ?>
					<div class="cell grid-x">
						<button type="submit" data-task="redomigration" class="cell medium-shrink button button-secondary acy_button_submit">
                            <?php echo esc_html(acym_translation('ACYM_REDO_MIGRATION')); ?>
						</button>
					</div>
                <?php } ?>
			</div>
		</div>

        <?php if (acym_isLogFileErrorExist()) { ?>
			<div class="acym__configuration__log">
				<div class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_LOG_FILE')); ?></div>
				<div class="grid-x grid-margin-x margin-y">
					<div class="cell grid-x">
						<div class="cell grid-x">
                            <?php
                            acym_modal(
                                acym_translation('ACYM_REPORT_SEE'),
                                '',
                                null,
                                [],
                                [
                                    'class' => 'button button-secondary',
                                    'data-ajax' => 'true',
                                    'data-iframe' => '&ctrl=configuration&task=seeLogs&filename='.acym_getErrorLogFilename(),
                                ]
                            );
                            ?>
						</div>
					</div>
				</div>
			</div>
        <?php } ?>
	</div>
</div>

```
