| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) 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/uxhactp/www/wp-content/plugins/imagify/inc/3rd-party/hosting/ |
Upload File : |
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
if ( defined( 'FLYWHEEL_CONFIG_DIR' ) ) :
add_filter( 'imagify_site_root', 'imagify_flywheel_site_root', IMAGIFY_INT_MAX );
/**
* Filter the path to the site’s root.
*
* @since 1.9
* @author Grégory Viguier
*
* @param string|null $root_path Path to the site's root. Default is null.
* @return string|null
*/
function imagify_flywheel_site_root( $root_path ) {
if ( ! empty( $_SERVER['DOCUMENT_ROOT'] ) ) {
return trailingslashit( wp_unslash( $_SERVER['DOCUMENT_ROOT'] ) );
}
$upload_basedir = imagify_get_filesystem()->get_upload_basedir( true );
if ( strpos( $upload_basedir, '/wp-content/' ) === false ) {
// Uh oooooh...
return $root_path;
}
$upload_basedir = explode( '/wp-content/', $upload_basedir );
$upload_basedir = reset( $upload_basedir );
return $upload_basedir . '/';
}
endif;