WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
class-license.php
1211
x
-
class-serializer.php
3448
x
-
class-submenu.php
1081
x
-
license-page.php
1094
x
D
views/
Upload
Simpan
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class ecs_license { /** * The plugin remote update path * @var string */ public $check_path; /** * Product ID (which product should we check license to) * @var string */ public $pid; /** * Initialize a new instance of the WordPress Auto-Update class * @param string $current_version * @param string $check_path * @param string $plugin_slug */ function __construct($check_path, $pid) { // Set the class public variables $this->check_path = $check_path; $this->pid = $pid; } /** * Return the status of the plugin licensing * @return boolean $remote_license */ public function getRemote_license($key=null) { $key = null !== $key ? $key : get_option( 'elecs-license-key', ''); $request = wp_remote_post($this->check_path, array('body' => array('action' => 'license', 'key' => $key, 'pid'=>$this->pid))); if (!is_wp_error($request) && wp_remote_retrieve_response_code($request) === 200) { return $request['body']; } return false; } }
Exec