PK
œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
| Dir : /home/telusvwg/techinnovo.co/wp-content/plugins/max-image-performance/ |
| Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 IP: 66.29.132.192 |
| Dir : /home/telusvwg/techinnovo.co/wp-content/plugins/max-image-performance/max-image-performance.php |
<?php
/*
Plugin Name: MAX Image Performance
Plugin URI: https://profiles.wordpress.org/ahsanfaraz/
Description: Generate WebP/AVIF on upload, optimize image sizes, run manual and bulk compression, and serve modern formats to supported browsers.
Version: 1.0.5
Author: Ahsan Faraz
Author URI: https://profiles.wordpress.org/ahsanfaraz/
Requires at least: 5.8
Requires PHP: 7.4
Tested up to: 6.5
Text Domain: max-image-optimizer
Domain Path: /languages
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('ABSPATH')) {
exit;
}
if (!defined('AIWO_VERSION')) {
define('AIWO_VERSION', '1.0.5');
}
if (!defined('AIWO_PLUGIN_FILE')) {
define('AIWO_PLUGIN_FILE', __FILE__);
}
if (!defined('AIWO_PLUGIN_DIR')) {
define('AIWO_PLUGIN_DIR', plugin_dir_path(__FILE__));
}
if (!function_exists('aiwo_missing_dependency_notice')) {
function aiwo_missing_dependency_notice($missing_file) {
if (!is_admin() || !current_user_can('activate_plugins')) {
return;
}
echo '<div class="notice notice-error"><p><strong>MAX Image Performance:</strong> Missing required file <code>' . esc_html($missing_file) . '</code>. Reinstall the plugin package.</p></div>';
}
}
if (!function_exists('aiwo_load_dependencies')) {
function aiwo_resolve_dependency_path($relative_path) {
$primary = AIWO_PLUGIN_DIR . $relative_path;
if (file_exists($primary)) {
return $primary;
}
$nested_dirs = glob(trailingslashit(AIWO_PLUGIN_DIR) . '*/', GLOB_ONLYDIR | GLOB_NOSORT);
if (is_array($nested_dirs)) {
foreach ($nested_dirs as $candidate_base) {
$candidate = trailingslashit($candidate_base) . $relative_path;
if (file_exists($candidate)) {
return $candidate;
}
}
}
return false;
}
function aiwo_load_dependencies() {
$required = array(
'includes/class-aiwo-settings.php',
'includes/class-aiwo-webp.php',
'includes/class-aiwo-admin-tools.php',
);
foreach ($required as $relative_path) {
$absolute_path = aiwo_resolve_dependency_path($relative_path);
if (!$absolute_path) {
add_action('admin_notices', function() use ($relative_path) {
aiwo_missing_dependency_notice($relative_path);
});
return false;
}
require_once $absolute_path;
}
return true;
}
}
if (!function_exists('aiwo_init')) {
function aiwo_init() {
if (!aiwo_load_dependencies()) {
return;
}
load_plugin_textdomain('max-image-optimizer', false, dirname(plugin_basename(__FILE__)) . '/languages');
if (class_exists('AIWO_Settings') && method_exists('AIWO_Settings', 'init')) {
AIWO_Settings::init();
}
if (class_exists('AIWO_WebP') && method_exists('AIWO_WebP', 'init')) {
AIWO_WebP::init();
}
if (class_exists('AIWO_Admin_Tools') && method_exists('AIWO_Admin_Tools', 'init')) {
AIWO_Admin_Tools::init();
}
}
}
add_action('plugins_loaded', 'aiwo_init');