| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/cwd/wp-content/themes/x/framework/functions/plugins/ |
Upload File : |
<?php
// =============================================================================
// FUNCTIONS/GLOBAL/PLUGINS/estimation-form.php
// -----------------------------------------------------------------------------
// Plugin setup for theme compatibility.
// =============================================================================
// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
// 01. Disable Licensing and Auto Updates
// =============================================================================
// Disable Licensing and Auto Updates
// =============================================================================
add_action('init', 'lfb_setThemeMode');
// Hack to hide validation message
add_action('admin_init', function() {
// A bypass incase
if (apply_filters('x_disable_estimation_form_hack', false)) {
return;
}
try {
// Run lfb code
$instance = lfb_Core::instance(__FILE__, 'hack');
$admin = lfb_Admin::instance($instance);
$settings = $admin->getSettings();
// Remove the auto update checker
if (method_exists($admin, 'checkAutomaticUpdates')) {
remove_action('admin_init', [$admin, 'checkAutomaticUpdates']);
}
// Fine or LFB is not ready yet
if (empty($settings) || ( !empty($settings->purchaseCode) && strlen($settings->purchaseCode) > 8 ) ) {
return;
}
// Update DB purchase code
global $wpdb;
$table_name = $wpdb->prefix . "lfb_settings";
$wpdb->update($table_name, [
'purchaseCode' => 'X-THEME-VALIDATED-CODE',
], [
'id' => $settings->id,
]);
} catch(\Exception $e) {
if (WP_DEBUG) {
trigger_error($e->getMessage(), E_USER_NOTICE);
}
}
}, -100);