37 lines
2.5 KiB
PHP
Executable File
37 lines
2.5 KiB
PHP
Executable File
<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
|
|
<h2><?php esc_html_e('File permissions scan', 'all-in-one-wp-security-and-firewall'); ?></h2>
|
|
<div class="aio_blue_box">
|
|
<?php
|
|
echo '<p>'.esc_html__('Your WordPress file and folder permission settings govern the accessibility and read/write privileges of the files and folders which make up your WP installation.', 'all-in-one-wp-security-and-firewall').'<br />'.esc_html__('Your WP installation already comes with reasonably secure file permission settings for the filesystem.', 'all-in-one-wp-security-and-firewall').'<br />'.esc_html__('However, sometimes people or other plugins modify the various permission settings of certain core WP folders or files such that they end up making their site less secure because they chose the wrong permission values.', 'all-in-one-wp-security-and-firewall').'<br />'.esc_html__('This feature will scan the critical WP core folders and files and will highlight any permission settings which are insecure.', 'all-in-one-wp-security-and-firewall').'</p>';
|
|
?>
|
|
</div>
|
|
<?php
|
|
$detected_os = strtoupper(PHP_OS);
|
|
if (false !== strpos($detected_os, "WIN") && "DARWIN" != $detected_os) {
|
|
echo '<div class="aio_yellow_box">';
|
|
echo '<p>'.esc_html__('This plugin has detected that your site is running on a Windows server.', 'all-in-one-wp-security-and-firewall').'
|
|
<br />'.esc_html__('This feature is not applicable for Windows server installations.', 'all-in-one-wp-security-and-firewall').'
|
|
</p>';
|
|
echo '</div>';
|
|
} else {
|
|
?>
|
|
<div class="postbox">
|
|
<h3 class="hndle"><label for="title"><?php esc_html_e('WP directory and file permissions scan results', 'all-in-one-wp-security-and-firewall'); ?></label></h3>
|
|
<div class="inside" id="aios-file-permissions-container" >
|
|
<div id="filesystem-file-permissions-badge">
|
|
<?php
|
|
// Display security info badge
|
|
$aiowps_feature_mgr->output_feature_details_badge("filesystem-file-permissions");
|
|
?>
|
|
</div>
|
|
<form action="" method="POST" id="aios-file-permissions-form" >
|
|
<input type="hidden" name="aiowps_permission_chg_file" id="aiowps_permission_chg_file" value="">
|
|
<input type="hidden" name="aiowps_recommended_permissions" id="aiowps_recommended_permissions" value="">
|
|
<div id="aios_file_permissions_table">
|
|
<?php $aio_wp_security->include_template('wp-admin/filesystem-security/partials/file-permissions-table.php', false, array('files_dirs_to_check' => $files_dirs_to_check, 'file_utility' => $file_utility)); ?>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|