[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.221.248.140: ~ $
<?php

namespace MailPoet\Twig;

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


use MailPoet\DI\ContainerWrapper;
use MailPoet\Helpscout\Beacon;
use MailPoetVendor\Twig\TwigFunction;

class Helpscout extends \MailPoetVendor\Twig\Extension\AbstractExtension {
  public function getFunctions() {
    return [
      new TwigFunction(
        'get_helpscout_data',
        [$this, 'getHelpscoutData'],
        ['is_safe' => ['all']]
      ),
    ];
  }

  public function getHelpscoutData() {
    return ContainerWrapper::getInstance()->get(Beacon::class)->getData();
  }
}

Filemanager

Name Type Size Permission Actions
Analytics.php File 1.14 KB 0644
Assets.php File 2.81 KB 0644
Filters.php File 487 B 0644
Functions.php File 7.52 KB 0644
Handlebars.php File 1.34 KB 0644
Helpscout.php File 556 B 0644
I18n.php File 2.86 KB 0644
index.php File 0 B 0644