| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mimradmin/www/wp-content/plugins/really-simple-ssl/security/wordpress/ |
Upload File : |
<?php
defined( 'ABSPATH' ) or die();
/**
* @return void
*
* Disable file editing
*/
function rsssl_disable_file_editing() {
if ( ! defined('DISALLOW_FILE_EDIT' ) ) {
define('DISALLOW_FILE_EDIT', true );
}
}
add_action("init", "rsssl_disable_file_editing");
/**
* Username 'admin' changed notice
* @return array
*/
function rsssl_disable_file_editing_notice( $notices ) {
$notices['disallow_file_edit_false'] = array(
'condition' => ['rsssl_file_editing_defined_but_disabled'],
'callback' => '_true_',
'score' => 5,
'output' => array(
'true' => array(
'msg' => __("The DISALLOW_FILE_EDIT constant is defined and set to false. You can remove it from your wp-config.php.", "really-simple-ssl"),
'icon' => 'open',
'dismissible' => true,
'url' => 'disallow_file_edit-defined-set-to-false'
),
),
);
return $notices;
}
add_filter('rsssl_notices', 'rsssl_disable_file_editing_notice');
/**
* Check if the constant is defined, AND set to false. In that case the plugin cannot override it anymore
* @return bool
*/
function rsssl_file_editing_defined_but_disabled(){
return defined( 'DISALLOW_FILE_EDIT' ) && ! DISALLOW_FILE_EDIT;
}