| Server IP : 188.114.96.2 / Your IP : 104.23.197.231 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/nicolasj/www/propulseasbl.be/wp-content/plugins/meow-gallery/classes/ |
Upload File : |
<?php
if ( class_exists( 'MeowPro_MGL_Core' ) && class_exists( 'Meow_MGL_Core' ) ) {
function mgl_admin_notices() {
echo '<div class="error"><p>Thanks for installing the Pro version of Meow Gallery :) However, the free version is still enabled. Please disable or uninstall it.</p></div>';
}
add_action( 'admin_notices', 'mgl_admin_notices' );
return;
}
spl_autoload_register(function ( $class ) {
$necessary = true;
$file = null;
if ( strpos( $class, 'Meow_MGL_Builders_' ) !== false ) {
$necessary = false;
$file = MGL_PATH . '/classes/builders/' . str_replace( 'meow_mgl_builders_', '', strtolower( $class ) ) . '.php';
if ( !file_exists( $file ) ) {
$file = MGL_PATH . '/premium/builders/' . str_replace( 'meow_mgl_builders_', '', strtolower( $class ) ) . '.php';
}
}
else if ( strpos( $class, 'Meow_MGL' ) !== false ) {
$file = MGL_PATH . '/classes/' . str_replace( 'meow_mgl_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowKit_MGL_' ) !== false ) {
$file = MGL_PATH . '/common/' . str_replace( 'meowkit_mgl_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowKitPro_MGL_' ) !== false ) {
$necessary = false;
$file = MGL_PATH . '/common/premium/' . str_replace( 'meowkitpro_mgl_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowPro_MGL' ) !== false ) {
$necessary = false;
$file = MGL_PATH . '/premium/' . str_replace( 'meowpro_mgl_', '', strtolower( $class ) ) . '.php';
}
if ( $file ) {
if ( !$necessary && !file_exists( $file ) ) {
return;
}
require( $file );
}
});
$core = new Meow_MGL_Core();
?>