Submit
Path:
~
/
home
/
getwphos
/
public_html
/
deerguard
/
wp-content
/
plugins
/
wordfence
/
views
/
scanner
/
File Content:
option-scan-signatures.php
<?php if (!defined('WORDFENCE_VERSION')) { exit; } /** * Presents the scan option scansEnabled_fileContents with a boolean on/off toggle checkbox and text area (hidden by default) for custom scan signatures. * * Expects $toggleOptionName, $enabledToggleValue, $disabledToggleValue, $toggleValue, $textAreaOptionName, $textAreaValue, and $title to be defined. $helpLink may also be defined. * * @var string $toggleOptionName The option name for the toggle portion. * @var string $enabledToggleValue The value to save in $toggleOption if the toggle is enabled. * @var string $disabledToggleValue The value to save in $toggleOption if the toggle is disabled. * @var string $toggleValue The current value of $toggleOptionName. * @var string $textAreaOptionName The option name for the text area portion. * @var string $textAreaValue The current value of $textAreaOptionName. * @var string $title The title shown for the option. * @var string $helpLink If defined, the link to the corresponding external help page. */ ?> <ul class="wf-flex-vertical wf-flex-full-width"> <li> <ul id="wf-option-scansEnabled-fileContents" class="wf-option wf-option-scan-signatures" data-toggle-option="scansEnabled_fileContents" data-enabled-toggle-value="1" data-disabled-toggle-value="0" data-original-toggle-value="<?php echo wfConfig::get('scansEnabled_fileContents') ? 1 : 0; ?>" data-text-area-option="scan_include_extra" data-original-text-area-value="<?php echo esc_attr(wfConfig::get('scan_include_extra')); ?>"> <li class="wf-option-checkbox<?php echo (wfConfig::get('scansEnabled_fileContents') ? ' wf-checked' : ''); ?>" role="checkbox" aria-checked="<?php echo ($value == $enabledValue ? 'true' : 'false'); ?>" tabindex="0" aria-labelledby="wf-option-scansEnabled-fileContents-label"><i class="wf-ion-ios-checkmark-empty" aria-hidden="true"></i></li> <li class="wf-option-title"><span id="wf-option-scansEnabled-fileContents-label"><?php echo esc_html($title); ?></span> <a href="<?php echo wfSupportController::esc_supportURL(wfSupportController::ITEM_SCAN_OPTION_MALWARE_SIGNATURES); ?>" target="_blank" rel="noopener noreferrer" class="wf-inline-help"><i class="wf-fa wf-fa-question-circle-o" aria-hidden="true"></i><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a></li> <li class="wf-option-disclosure"><svg width="12px" height="12px" viewBox="0 0 12 12"><path id="disclosure-closed" d="M 6 0 l 6 6 -6 6 0 -12" fill="#777"/></svg></li> </ul> </li> <li id="wf-scan-additional-signatures"> <h4 id="wf-scan-additional-signatures-label"><?php esc_html_e('Add Additional Signatures', 'wordfence') ?></h4> <textarea id="wf-option-scan-include-extra" spellcheck="false" autocapitalize="none" autocomplete="off" aria-labelledby="wf-scan-additional-signatures-label"><?php echo esc_html(wfConfig::get('scan_include_extra')); ?></textarea> </li> </ul> <script type="application/javascript"> (function($) { $(function() { $('.wf-option.wf-option-scan-signatures .wf-option-checkbox').each(function() { $(this).on('click', function(e) { e.preventDefault(); e.stopPropagation(); var optionElement = $(this).closest('.wf-option'); var option = optionElement.data('toggleOption'); var value = false; var isActive = $(this).hasClass('wf-checked'); if (isActive) { $(this).removeClass('wf-checked').attr('aria-checked', 'false'); value = optionElement.data('disabledToggleValue'); } else { $(this).addClass('wf-checked').attr('aria-checked', 'true'); value = optionElement.data('enabledToggleValue'); } var originalValue = optionElement.data('originalToggleValue'); if (originalValue == value) { delete WFAD.pendingChanges[option]; } else { WFAD.pendingChanges[option] = value; } WFAD.updatePendingChanges(); }); }); $('#wf-scan-additional-signatures textarea').on('change paste keyup', function() { var e = this; setTimeout(function() { var optionElement = $(e).closest('ul').find('.wf-option.wf-option-scan-signatures'); var option = optionElement.data('textAreaOption'); var value = $(e).val(); var originalValue = optionElement.data('originalTextAreaValue'); if (originalValue == value) { delete WFAD.pendingChanges[option]; } else { WFAD.pendingChanges[option] = value; } WFAD.updatePendingChanges(); }, 4); }); $(window).on('wfOptionsReset', function() { $('.wf-option.wf-option-scan-signatures .wf-option-checkbox').each(function() { var optionElement = $(this).closest('.wf-option'); $(this).toggleClass('wf-checked', !!parseInt(optionElement.data('originalToggleValue'))); }); $('#wf-scan-additional-signatures textarea').each(function() { var optionElement = $(this).closest('ul').find('.wf-option.wf-option-scan-signatures'); var originalValue = optionElement.data('originalTextAreaValue'); $(this).val(originalValue); }); }); $('.wf-option.wf-option-scan-signatures .wf-option-disclosure').each(function() { var disclosure = $(this).find('svg'); $(this).closest('.wf-option').css('cursor', 'pointer'); $(this).closest('.wf-option').on('click', function(e) { e.preventDefault(); e.stopPropagation(); var isActive = $('#wf-scan-additional-signatures').hasClass('wf-active'); if (isActive) { disclosure.css('transform', 'rotate(0deg)'); $('#wf-scan-additional-signatures').slideUp({ always: function() { $('#wf-scan-additional-signatures').removeClass('wf-active'); } }); } else { disclosure.css('transform', 'rotate(90deg)'); $('#wf-scan-additional-signatures').slideDown({ always: function() { $('#wf-scan-additional-signatures').addClass('wf-active'); } }); } }); }); }); })(jQuery); </script>
Submit
FILE
FOLDER
Name
Size
Permission
Action
issue-base.php
8695 bytes
0644
issue-checkGSB.php
2467 bytes
0644
issue-checkHowGetIPs.php
1553 bytes
0644
issue-checkSpamIP.php
1341 bytes
0644
issue-commentBadURL.php
3168 bytes
0644
issue-configReadable.php
2082 bytes
0644
issue-control-edit-comment.php
444 bytes
0644
issue-control-edit-post.php
622 bytes
0644
issue-control-edit-user.php
1120 bytes
0644
issue-control-hide-file.php
2780 bytes
0644
issue-control-ignore.php
2185 bytes
0644
issue-control-repair.php
916 bytes
0644
issue-control-show-details.php
1989 bytes
0644
issue-coreUnknown.php
2048 bytes
0644
issue-database.php
2167 bytes
0644
issue-diskSpace.php
1988 bytes
0644
issue-easyPassword.php
2222 bytes
0644
issue-file.php
3366 bytes
0644
issue-geoipSupport.php
1858 bytes
0644
issue-knownfile.php
3041 bytes
0644
issue-optionBadURL.php
2115 bytes
0644
issue-postBadTitle.php
2117 bytes
0644
issue-postBadURL.php
3263 bytes
0644
issue-publiclyAccessible.php
2065 bytes
0644
issue-skippedPaths.php
1737 bytes
0644
issue-spamvertizeCheck.php
1346 bytes
0644
issue-suspiciousAdminUsers.php
2294 bytes
0644
issue-timelimit.php
1852 bytes
0644
issue-wafStatus.php
1984 bytes
0644
issue-wfPluginAbandoned.php
3926 bytes
0644
issue-wfPluginRemoved.php
3148 bytes
0644
issue-wfPluginUpgrade.php
4089 bytes
0644
issue-wfPluginVulnerable.php
3091 bytes
0644
issue-wfThemeUpgrade.php
3666 bytes
0644
issue-wfUpgrade.php
3607 bytes
0644
issue-wfUpgradeError.php
1438 bytes
0644
issue-wpscan_directoryList.php
2274 bytes
0644
issue-wpscan_fullPathDiscl.php
2269 bytes
0644
no-issues.php
1134 bytes
0644
option-scan-signatures.php
5990 bytes
0644
options-group-advanced.php
3713 bytes
0644
options-group-basic.php
1413 bytes
0644
options-group-general.php
8055 bytes
0644
options-group-performance.php
4221 bytes
0644
options-group-scan-schedule.php
1453 bytes
0644
scan-failed.php
1802 bytes
0644
scan-progress-detailed.php
2974 bytes
0644
scan-progress-element.php
2066 bytes
0644
scan-progress.php
2912 bytes
0644
scan-results.php
8479 bytes
0644
scan-scheduling.php
18100 bytes
0644
scan-starter.php
1878 bytes
0644
scan-type.php
9334 bytes
0644
scanner-status.php
4079 bytes
0644
site-cleaning-beta-sigs.php
8793 bytes
0644
site-cleaning-bottom.php
2083 bytes
0644
site-cleaning-high-sense.php
8795 bytes
0644
site-cleaning.php
9336 bytes
0644
N4ST4R_ID | Naxtarrr