| Server IP : 145.239.37.162 / Your IP : 216.73.216.72 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www_old/wp-content/themes/betheme/functions/admin/ |
Upload File : |
<?php
if( ! defined( 'ABSPATH' ) ){
exit; // Exit if accessed directly
}
class Mfn_Helper {
/**
* Initialises and connects the WordPress Filesystem
*/
public static function filesystem(){
if( ! defined( 'FS_METHOD' ) ){
define( 'FS_METHOD', 'direct' );
WP_Filesystem();
}
if( ! defined( 'FS_CHMOD_DIR' ) ){
define( 'FS_CHMOD_DIR', ( 0755 & ~ umask() ) );
}
if( ! defined( 'FS_CHMOD_FILE' ) ){
define( 'FS_CHMOD_FILE', ( 0644 & ~ umask() ) );
}
global $wp_filesystem;
if( empty( $wp_filesystem ) ){
require_once wp_normalize_path( ABSPATH . '/wp-admin/includes/file.php' );
WP_Filesystem();
}
return $wp_filesystem;
}
}