[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.117.71.102: ~ $
<?php

namespace MailPoet\AdminPages\Pages;

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


use MailPoet\AdminPages\PageRenderer;
use MailPoet\Cron\CronHelper;
use MailPoet\Helpscout\Beacon;
use MailPoet\Mailer\MailerLog;
use MailPoet\Router\Endpoints\CronDaemon;
use MailPoet\Services\Bridge;
use MailPoet\Tasks\Sending;
use MailPoet\Tasks\State;

class Help {
  /** @var PageRenderer */
  private $pageRenderer;

  /** @var State */
  private $tasksState;

  /** @var CronHelper */
  private $cronHelper;

  /** @var Beacon */
  private $helpscoutBeacon;

  public function __construct(
    PageRenderer $pageRenderer,
    State $tasksState,
    CronHelper $cronHelper,
    Beacon $helpscoutBeacon
  ) {
    $this->pageRenderer = $pageRenderer;
    $this->tasksState = $tasksState;
    $this->cronHelper = $cronHelper;
    $this->helpscoutBeacon = $helpscoutBeacon;
  }

  public function render() {
    $systemInfoData = $this->helpscoutBeacon->getData();
    $cronPingResponse = $this->cronHelper->pingDaemon();
    $systemStatusData = [
      'cron' => [
        'url' => $this->cronHelper->getCronUrl(CronDaemon::ACTION_PING),
        'isReachable' => $this->cronHelper->validatePingResponse($cronPingResponse),
        'pingResponse' => $cronPingResponse,
      ],
      'mss' => [
        'enabled' => (Bridge::isMPSendingServiceEnabled()) ?
          ['isReachable' => Bridge::pingBridge()] :
          false,
      ],
      'cronStatus' => $this->cronHelper->getDaemon(),
      'queueStatus' => MailerLog::getMailerLog(),
    ];
    $systemStatusData['cronStatus']['accessible'] = $this->cronHelper->isDaemonAccessible();
    $systemStatusData['queueStatus']['tasksStatusCounts'] = $this->tasksState->getCountsPerStatus();
    $systemStatusData['queueStatus']['latestTasks'] = $this->tasksState->getLatestTasks(Sending::TASK_TYPE);
    $this->pageRenderer->displayPage(
      'help.html',
      [
        'systemInfoData' => $systemInfoData,
        'systemStatusData' => $systemStatusData,
      ]
    );
  }
}

Filemanager

Name Type Size Permission Actions
ExperimentalFeatures.php File 420 B 0644
FormEditor.php File 13.31 KB 0644
Forms.php File 2.2 KB 0644
Help.php File 1.96 KB 0644
Logs.php File 1.41 KB 0644
MP2Migration.php File 730 B 0644
NewsletterEditor.php File 5.93 KB 0644
Newsletters.php File 6.84 KB 0644
Premium.php File 923 B 0644
Segments.php File 5.42 KB 0644
Settings.php File 3.48 KB 0644
Subscribers.php File 3.88 KB 0644
SubscribersExport.php File 646 B 0644
SubscribersImport.php File 1.3 KB 0644
WelcomeWizard.php File 2.15 KB 0644
WooCommerceSetup.php File 741 B 0644
index.php File 0 B 0644