...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 65.108.66.160 / Your IP : 216.73.217.50 Web Server : Apache System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64 User : alasaweborg ( 1047) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/alasaweborg/public_html/wp-content/plugins/wp-all-export/src/Scheduling/ |
Upload File : |
<?php
namespace Wpae\Scheduling;
class LicensingManager
{
private $options = false;
public function checkLicense($licenseKey, $productName)
{
if ($productName !== false) {
// data to send in our API request
$api_params = array(
'edd_action' => 'activate_license',
'license' => \PMXE_Plugin::decode($licenseKey),
'item_name' => urlencode($productName) // the name of our product in EDD
);
// Call the custom API.
$response = wp_remote_get(
esc_url_raw(add_query_arg(
$api_params,
$this->getInfoApiUrl()
)),
array(
'timeout' => 15,
'sslverify' => false
)
);
// make sure the response came back okay
if (is_wp_error($response)){
return ['success' => false];
}
$responseData = \json_decode($response['body'], true);
if(is_null($responseData) || empty($responseData['success'])) {
return $responseData ?? ['success' => false];
} else {
return $responseData;
}
} else {
return ['success' => false];
}
}
public function getLicense()
{
$options = $this->getOptions();
return $options['license'];
}
public function getInfoApiUrl()
{
$options = $this->getOptions();
return $options['info_api_url'];
}
private function getOptions()
{
// Cache the options
if(!$this->options) {
$this->options = \PMXE_Plugin::getInstance()->getOption();
}
return $this->options;
}
}