admin/controller/extension/d_shopunity/d_validator.php
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class ControllerextensionDShopunityDValidator extends Controller
{
protected $pack;
protected $error;
protected $expire;
protected $module;
protected $validator;
protected $d_validator;
protected $module_name;
protected $validate_error;
protected $module_codename;
protected $d_opencart_patch;
protected $codename = 'd_validator';
protected $route = 'extension/d_shopunity/d_validator';
public function __construct($registry)
{
parent::__construct($registry);
$this->load->language($this->route);
$this->d_validator = (file_exists(DIR_SYSTEM . 'library/d_shopunity/extension/d_validator.json'));
$this->d_opencart_patch = (file_exists(DIR_SYSTEM . 'library/d_shopunity/extension/d_opencart_patch.json'));
}
public function index()
{
$this->installCompatibility();
}
public function installCompatibility()
{
$this->load->model('extension/d_shopunity/d_validator');
$this->model_extension_d_shopunity_d_validator->installModule();
}
public function form()
{
$json = array();
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
$this->load->language($this->route);
$market = $this->request->post['market'];
$email = $this->request->post['email'];
$order_id = $this->request->post['order_id'];
$codename = trim($this->request->post['codename']);
$result = json_decode($this->request($market, $email, $order_id, $codename));
if (isset($result->success) && isset($result->licence)) {
$key = $this->strToHex($codename);
$encrypted = base64_decode($result->licence);
$decrypted = SaferCrypto::decrypt($encrypted, $key);
if ($decrypted) {
$this->saveLicenceToFile($codename, $result->licence);
if($this->validateLicense($decrypted, $codename)){
后面还有 530 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
