HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: 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,
Upload Files
File: //proc/self/cwd/wp-content/plugins/woocommerce-checkout-manager/includes/class-wooccm-install.php
<?php

class WOOCCM_Install {

  public static function install() {

    // Check if we are not already running this routine.
    if ('yes' === get_transient('wooccm_installing')) {
      return;
    }

    // If we made it till here nothing is running yet, lets set the transient now.
    set_transient('wooccm_installing', 'yes', MINUTE_IN_SECONDS * 10);
    set_transient('wooccm-first-rating', true, MONTH_IN_SECONDS);

    //wooccm_install();
  }

  public static function update() {

    if (!get_option('wooccm_billing', false)) {
      update_option(WOOCCM()->billing->get_fields());
    }

    if (!get_option('wooccm_shipping', false)) {
      update_option(WOOCCM()->shipping->get_fields());
    }

    if (!get_option('wooccm_additional', false)) {
      update_option(WOOCCM()->additional->get_fields());
    }
  }

  public static function old_panel_compatibility($field_id, $field = array()) {

    $field = $this->get_old_args($field);

    $field = wp_parse_args($field, array_fill_keys($this->old_args, null));

    if (!is_numeric($field['order'])) {
      $field['order'] = $field_id + 1;
    }

    $field['type'] = $this->get_old_type($field['type']);

    if (empty($field['position']) && isset($field['class'])) {
      if ($position = $this->array_to_string(array_intersect((array) $field['class'], array('form-row-wide', 'form-row-first', 'form-row-last')))) {
        $field['position'] = $position;
      }
    }

    $field['role_option'] = $this->array_to_string($field['role_option']);
    $field['role_option2'] = $this->array_to_string($field['role_option2']);
    //$field['option_array'] = $this->array_to_string($field['option_array']);
    $field['single_p'] = $this->array_to_string($field['single_p']);
    $field['single_px'] = $this->array_to_string($field['single_px']);
    $field['single_p_cat'] = $this->array_to_string($field['single_p_cat']);
    $field['single_px_cat'] = $this->array_to_string($field['single_px_cat']);
    $field['tax_remove'] = !$field['tax_remove'];

    // Days
    if (is_array($field['days_disabler'])) {
      foreach ($field['days_disabler'] as $day_index => $day) {
        $field['days_disabler' . strval($day_index)] = 1;
      }
      $field['days_disabler'] = 1;
      unset($field['date_limit_days']);
    }

    // Dates
    if (!empty($field['date_limit_fixed_min'])) {

      $min = explode('-', $field['date_limit_fixed_min']);

      $field['single_yy'] = $min[0];
      $field['single_mm'] = $min[1];
      $field['single_dd'] = $min[2];
    }

    if (!empty($field['date_limit_fixed_max'])) {

      $max = explode('-', $field['date_limit_fixed_max']);

      $field['single_max_yy'] = $max[0];
      $field['single_max_mm'] = $max[1];
      $field['single_max_dd'] = $max[2];
    }

    return array_intersect_key($field, array_flip($this->old_args));
  }

}