[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.221.221.171: ~ $
<?php declare(strict_types = 1);

namespace MailPoet\WooCommerce;

if (!defined('ABSPATH')) exit;


use MailPoet\Cron\CronHelper;
use MailPoet\Router\Endpoints\CronDaemon;
use MailPoet\Settings\SettingsController;

class WooSystemInfo {


  private $cronHelper;

  /** @var SettingsController  */
  private $settings;

  public function __construct(
    CronHelper $cronHelper,
    SettingsController $settings
  ) {
    $this->cronHelper = $cronHelper;
    $this->settings = $settings;
  }

  public function sendingMethod(): string {
    return $this->settings->get('mta.method');
  }

  public function transactionalEmails(): string {
    return $this->settings->get('send_transactional_emails') ?
      __('Current sending method', 'mailpoet') :
      __('Default WordPress sending method', 'mailpoet');

  }

  public function taskSchedulerMethod(): string {
    return $this->settings->get('cron_trigger.method');
  }

  public function cronPingUrl(): string {
    return $this->cronHelper->getCronUrl(CronDaemon::ACTION_PING);
  }

  public function toArray(): array {
    return [
      'sending_method' => $this->sendingMethod(),
      'transactional_emails' => $this->transactionalEmails(),
      'task_scheduler_method' => $this->taskSchedulerMethod(),
      'cron_ping_url' => $this->cronPingUrl(),
    ];
  }
}

Filemanager

Name Type Size Permission Actions
Integrations Folder 0755
MultichannelMarketing Folder 0755
TransactionalEmails Folder 0755
WooCommerceSubscriptions Folder 0755
CouponPreProcessor.php File 5.56 KB 0644
Helper.php File 10.38 KB 0644
MailPoetTask.php File 1.99 KB 0644
Settings.php File 1.41 KB 0644
SubscriberEngagement.php File 1.43 KB 0644
Subscription.php File 8.23 KB 0644
Tracker.php File 2.52 KB 0644
TransactionalEmailHooks.php File 4.84 KB 0644
TransactionalEmails.php File 5.22 KB 0644
WooSystemInfo.php File 1.29 KB 0644
WooSystemInfoController.php File 2.09 KB 0644
index.php File 6 B 0644