[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.116.86.134: ~ $
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing

namespace MailPoet\Referrals;

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


use MailPoet\Settings\SettingsController;
use MailPoet\WP\Functions as WPFunctions;

class UrlDecorator {

  /** @var WPFunctions */
  private $wp;

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

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

  public function decorate($url) {
    $referralId = $this->settings->get(ReferralDetector::REFERRAL_SETTING_NAME, null);
    if ($referralId === null) {
      return $url;
    }
    return $this->wp->addQueryArg('ref', $referralId, $url);
  }
}

Filemanager

Name Type Size Permission Actions
ReferralDetector.php File 1.11 KB 0644
UrlDecorator.php File 765 B 0644
index.php File 6 B 0644