403Webshell
Server IP : 172.67.159.97  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/themes/x/framework/functions/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/themes/x/framework/functions/plugins/estimation-form.php
<?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);

Youez - 2016 - github.com/yon3zu
LinuXploit