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


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!', 'adminify' ); // 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.', 'adminify' ); } } return $content; } }