*/ class ServerInfo_Htaccess_Details { public function __construct() { $this->init(); } public function init() { $server_info = new ServerInfo(); $help = ''; $enabled = ' ' . esc_html__('Enabled', WP_ADMINIFY_TD) . ''; $disabled = ' ' . esc_html__('Disabled', WP_ADMINIFY_TD) . ''; $yes = ' ' . esc_html__('Yes', WP_ADMINIFY_TD) . ''; $no = ' ' . esc_html__('No', WP_ADMINIFY_TD) . ''; $entered = ' ' . esc_html__('Defined', WP_ADMINIFY_TD) . ''; $not_entered = ' ' . esc_html__('Not defined', WP_ADMINIFY_TD) . ''; $sec_key = ' ' . esc_html__('Please enter this security key in the wp-confiq.php file', WP_ADMINIFY_TD) . '!'; ?>


jltwp_adminify_htaccess_file(); // Get the wp ".htaccess" file content $file_content = $this->jltwp_adminify_htaccess_file_content($file); if ($file) { ?>

' . esc_html($file) . ''; ?>

exists($file) ) { return $file; } // File not exist return false; } /** * .htaccess file contents */ public function jltwp_adminify_htaccess_file_content($file) { // Call wp file system global $wp_filesystem; WP_Filesystem(); // Show this notice, if no file exist $content = esc_html__('.htaccess file not found!', 'wphave-admin'); // Check if ".htaccess" file exist if ($wp_filesystem->exists($file)) { $content = $wp_filesystem->get_contents($file); // Check if the file content is empty if ($wp_filesystem->get_contents($file) == '') { $content = esc_html__('File content is empty.', 'wphave-admin'); } } return $content; } }