| Server IP : 118.139.160.155 / Your IP : 216.73.217.153 Web Server : Apache System : Linux sg2plmcpnl504228.prod.sin2.secureserver.net 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64 User : twll3xqyaqrh ( 9725459) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/twll3xqyaqrh/public_html/Site WP/wp-content/plugins/media-cleaner/classes/ |
Upload File : |
<?php
if ( class_exists( 'MeowPro_WPMC_Core' ) && class_exists( 'Meow_WPMC_Core' ) ) {
function wpmc_thanks_admin_notices() {
echo '<div class="error"><p>' . __( 'Thanks for installing the Pro version of Media Cleaner :) However, the free version is still enabled. Please disable or uninstall it.', 'media-cleaner' ) . '</p></div>';
}
add_action( 'admin_notices', 'wpmc_thanks_admin_notices' );
return;
}
spl_autoload_register(function ( $class ) {
$necessary = true;
$file = null;
if ( strpos( $class, 'Meow_WPMC' ) !== false ) {
$file = WPMC_PATH . '/classes/' . str_replace( 'meow_wpmc_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowCommon_' ) !== false ) {
$file = WPMC_PATH . '/common/' . str_replace( 'meowcommon_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowCommonPro_' ) !== false ) {
$necessary = false;
$file = WPMC_PATH . '/common/premium/' . str_replace( 'meowcommonpro_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowPro_WPMC' ) !== false ) {
$necessary = false;
$file = WPMC_PATH . '/premium/' . str_replace( 'meowpro_wpmc_', '', strtolower( $class ) ) . '.php';
}
if ( $file ) {
if ( !$necessary && !file_exists( $file ) ) {
return;
}
require( $file );
}
});
// In admin or Rest API request (REQUEST URI begins with '/wp-json/')
if ( is_admin() || MeowCommon_Helpers::is_rest() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
global $mfrh_core;
$mfrh_core = new Meow_WPMC_Core();
}
?>