Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/mdfdztt/admin/views
File: protect-uploads-admin-settings-page.php
<div class="wrap <?php echo $this->plugin_name ?>">
[0] Fix | Delete
<?php
[1] Fix | Delete
$plugin = new Alti_ProtectUploads_Admin($this->plugin_name, $this->version);
[2] Fix | Delete
if (isset($_POST['submit']) && isset($_POST['protection']) && check_admin_referer('submit_form', 'protect-uploads' . '_nonce')) {
[3] Fix | Delete
$plugin->save_form($_POST);
[4] Fix | Delete
}
[5] Fix | Delete
echo $plugin->display_messages();
[6] Fix | Delete
?>
[7] Fix | Delete
<h1>Protect Uploads</h1>
[8] Fix | Delete
<div class="protect-uploads-main-container">
[9] Fix | Delete
<form method="POST" enctype="multipart/form-data">
[10] Fix | Delete
<?php wp_nonce_field('submit_form', 'protect-uploads' . '_nonce'); ?>
[11] Fix | Delete
[12] Fix | Delete
<table class="form-table">
[13] Fix | Delete
<tbody>
[14] Fix | Delete
<tr>
[15] Fix | Delete
<th scope="row">
[16] Fix | Delete
<label for=""><?php _e('Status', $this->plugin_name); ?></label>
[17] Fix | Delete
</th>
[18] Fix | Delete
<td>
[19] Fix | Delete
<fieldset>
[20] Fix | Delete
<p>
[21] Fix | Delete
<strong>
[22] Fix | Delete
<?php if ($this->check_uploads_is_protected() === true) { ?>
[23] Fix | Delete
<span class="dashicons dashicons-yes-alt" style="color:#46b450"></span> <?php _e('Uploads directory is protected.', $this->plugin_name); ?>
[24] Fix | Delete
<?php } else { ?>
[25] Fix | Delete
<span style="color:#dc3232" class="dashicons dashicons-dismiss"></span> <?php _e('Uploads directory is not protected!', $this->plugin_name); ?>
[26] Fix | Delete
<?php } ?>
[27] Fix | Delete
</strong>
[28] Fix | Delete
</p>
[29] Fix | Delete
<p>
[30] Fix | Delete
<?php
[31] Fix | Delete
$file_messages = $this->get_uploads_protection_message_array();
[32] Fix | Delete
foreach ($file_messages as $file_message) {
[33] Fix | Delete
?>
[34] Fix | Delete
<?php echo $file_message; ?> <br />
[35] Fix | Delete
<?php
[36] Fix | Delete
} ?>
[37] Fix | Delete
</p>
[38] Fix | Delete
</fieldset>
[39] Fix | Delete
</td>
[40] Fix | Delete
</tr>
[41] Fix | Delete
<tr>
[42] Fix | Delete
<th scope="row">
[43] Fix | Delete
<label for="size"><?php _e('Protection', $this->plugin_name); ?></label>
[44] Fix | Delete
</th>
[45] Fix | Delete
<td>
[46] Fix | Delete
<fieldset>
[47] Fix | Delete
<legend class="screen-reader-text">
[48] Fix | Delete
<span><?php _e('Protection', $this->plugin_name); ?></span>
[49] Fix | Delete
</legend>
[50] Fix | Delete
<?php if ($this->check_uploads_is_protected() === false) { ?>
[51] Fix | Delete
<!-- -->
[52] Fix | Delete
<label for="protection_1">
[53] Fix | Delete
<input type="radio" value="index_php" name="protection" id="protection_1">
[54] Fix | Delete
<strong><?php _e('Protect with index.php files', $this->plugin_name); ?></strong>
[55] Fix | Delete
<p class="description"><?php _e('Create an index.php file on the root of your uploads directory and subfolders (two levels max).', $this->plugin_name); ?></p>
[56] Fix | Delete
</label><br />
[57] Fix | Delete
<!-- -->
[58] Fix | Delete
<label for="protection_2">
[59] Fix | Delete
<input type="radio" value="htaccess" name="protection" id="protection_2">
[60] Fix | Delete
<strong><?php _e('Protect with .htaccess file', $this->plugin_name); ?></strong>
[61] Fix | Delete
<p class="description"><?php _e('Create .htaccess file at root level of uploads directory and returns 403 code (Forbidden Access).', $this->plugin_name); ?></p>
[62] Fix | Delete
</label><br />
[63] Fix | Delete
<?php } ?>
[64] Fix | Delete
<!-- -->
[65] Fix | Delete
<?php if ( $this->check_protective_file_removable() && $this->check_uploads_is_protected() ) { ?>
[66] Fix | Delete
<label for="protection_3">
[67] Fix | Delete
<input type="radio" value="remove" name="protection" id="protection_3">
[68] Fix | Delete
<strong><?php _e('Remove protection files', $this->plugin_name); ?></strong>
[69] Fix | Delete
<p>
[70] Fix | Delete
<?php if ($this->check_protective_file('index.php') === true) {
[71] Fix | Delete
echo '<span class="dashicons dashicons-flag"></span> index.php ';
[72] Fix | Delete
_e('will be removed', $this->plugin_name);
[73] Fix | Delete
} ?>
[74] Fix | Delete
<?php if ($this->check_protective_file('.htaccess') === true) {
[75] Fix | Delete
echo '<span class="dashicons dashicons-flag"></span> .htaccess ';
[76] Fix | Delete
_e('will be removed', $this->plugin_name);
[77] Fix | Delete
} ?>
[78] Fix | Delete
</p>
[79] Fix | Delete
</label><br />
[80] Fix | Delete
<?php } ?>
[81] Fix | Delete
<?php if ($this->check_protective_file('index.html') === true) { ?>
[82] Fix | Delete
<p class="description">
[83] Fix | Delete
<span class="dashicons dashicons-search"></span> <?php _e('A index.html file is already here and has not been created by this plugin. It will not be removed. If you want to use this plugin, you first have to remove manually the index.html file.', $this->plugin_name) ?>
[84] Fix | Delete
</p>
[85] Fix | Delete
<?php } ?>
[86] Fix | Delete
</fieldset>
[87] Fix | Delete
[88] Fix | Delete
</td>
[89] Fix | Delete
</tr>
[90] Fix | Delete
<tr>
[91] Fix | Delete
<th scope="row">
[92] Fix | Delete
<label for=""><?php _e('Check', $this->plugin_name); ?></label>
[93] Fix | Delete
</th>
[94] Fix | Delete
<td>
[95] Fix | Delete
<p><?php _e('Visit your', $this->plugin_name); ?> <a href="<?php echo $this->get_uploads_url(); ?>" target="_blank"><strong><?php _e('uploads directory', $this->plugin_name); ?></strong><span style="text-decoration:none;" class="dashicons dashicons-external"></span></a> <?php _e('to check the current protection', $this->plugin_name); ?>.</p>
[96] Fix | Delete
</td>
[97] Fix | Delete
</tr>
[98] Fix | Delete
<tr>
[99] Fix | Delete
<th scope="row">
[100] Fix | Delete
<label for=""><?php _e('Support', $this->plugin_name); ?></label>
[101] Fix | Delete
</th>
[102] Fix | Delete
<td>
[103] Fix | Delete
<p><?php _e('Protect Uploads Plugin <a href="https://www.alticreation.com/en/protect-uploads/" target="_blank">support page</a>.', $this->plugin_name); ?></p>
[104] Fix | Delete
<p><?php _e('This plugin is compatible with the <span class="dashicons dashicons-awards"></span> <a href="https://www.alticreation.com/en/alti-watermark/" target="_blank">Watermark Plugin</a>.', $this->plugin_name); ?></p>
[105] Fix | Delete
<p class="description"><?php _e('To do so, you have to: 1. Install the Watermark Plugin 2. Then choose your settings in this page and Update.', $this->plugin_name); ?></p>
[106] Fix | Delete
</td>
[107] Fix | Delete
</tr>
[108] Fix | Delete
<tr>
[109] Fix | Delete
<th scope="row">
[110] Fix | Delete
</th>
[111] Fix | Delete
<td>
[112] Fix | Delete
<input type="submit" id="submit" value="<?php _e('Update', $this->plugin_name); ?>" name="submit" class="button button-primary">
[113] Fix | Delete
</td>
[114] Fix | Delete
</tr>
[115] Fix | Delete
</tbody>
[116] Fix | Delete
</table>
[117] Fix | Delete
[118] Fix | Delete
</form>
[119] Fix | Delete
[120] Fix | Delete
</div>
[121] Fix | Delete
[122] Fix | Delete
<?php require_once dirname(__FILE__) . '/includes/protect-uploads-admin-sidebar.php'; ?>
[123] Fix | Delete
[124] Fix | Delete
</div>
[125] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function