| Server IP : 216.106.184.20 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64 User : sekoaid1 ( 1891) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sekoaid1/www/wp-content/plugins/ai-engine/classes/ |
Upload File : |
<?php
if ( class_exists( 'MeowPro_MWAI_Core' ) && class_exists( 'Meow_MWAI_Core' ) ) {
function mwai_thanks_admin_notices() {
echo '<div class="error"><p>' . __( 'Thanks for installing the Pro version of AI Engine :) However, the free version is still enabled. Please disable or uninstall it.', 'ai-engine' ) . '</p></div>';
}
add_action( 'admin_notices', 'mwai_thanks_admin_notices' );
return;
}
spl_autoload_register(function ( $class ) {
$necessary = true;
$file = null;
if ( strpos( $class, 'Meow_MWAI' ) !== false ) {
$file = MWAI_PATH . '/classes/' . str_replace( 'meow_mwai_', '', strtolower( $class ) ) . '.php';
}
if ( strpos( $class, 'Meow_MWAI_Modules' ) !== false ) {
$file = MWAI_PATH . '/classes/modules/' . str_replace( 'meow_mwai_modules_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'Meow_MWAI_Query' ) !== false ) {
$file = MWAI_PATH . '/classes/queries/' . str_replace( 'meow_mwai_query_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'Meow_MWAI_Engines' ) !== false ) {
$file = MWAI_PATH . '/classes/engines/' . str_replace( 'meow_mwai_engines_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowCommon_' ) !== false ) {
$file = MWAI_PATH . '/common/' . str_replace( 'meowcommon_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowCommonPro_' ) !== false ) {
$file = MWAI_PATH . '/common/premium/' . str_replace( 'meowcommonpro_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowPro_MWAI_Addons' ) !== false ) {
$necessary = false;
$file = MWAI_PATH . '/premium/addons/' . str_replace( 'meowpro_mwai_addons_', '', strtolower( $class ) ) . '.php';
}
else if ( strpos( $class, 'MeowPro_MWAI' ) !== false ) {
$necessary = false;
$file = MWAI_PATH . '/premium/' . str_replace( 'meowpro_mwai_', '', strtolower( $class ) ) . '.php';
}
if ( $file ) {
if ( !$necessary && !file_exists( $file ) ) {
return;
}
if ( !file_exists( $file ) ) {
return;
}
require( $file );
}
});
//require_once( MWAI_PATH . '/classes/api.php');
require_once( MWAI_PATH . '/common/helpers.php');
global $mwai_core;
$mwai_core = new Meow_MWAI_Core();
?>