C:\xampp\htdocs\landing\wp-content\plugins\imagify\inc\3rd-party\hosting\flywheel.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?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 
trailingslashitwp_unslash$_SERVER['DOCUMENT_ROOT'] ) );
        }

        
$upload_basedir imagify_get_filesystem()->get_upload_basedirtrue );

        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;
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586