Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.8.5
- * @ Author : DeZender
- * @ Release on : 25.03.2019
- * @ Official site : http://DeZender.Net
- *
- */
- class HetznerCloudLicense
- {
- public function __construct($UWSKey = NULL)
- {
- $LRemKey = \Illuminate\Database\Capsule\Manager::table('tbladdonmodules')->select('value')->where(['setting' => 'whmcsmodule_key', 'module' => 'HetznerCloud'])->get();
- $this->LicenseKey = $LRemKey[0]->value;
- }
- public function __destruct()
- {
- }
- public function HetznerCloud_LicenseCheck()
- {
- $status = self::Get_HetznerCloudLicenseCheck();
- return $status['results']['status'];
- }
- public function get_HetznerCloudLicenseInfo_config()
- {
- $HetznerCloudLicenseInfo_config = [];
- $llkey = \Illuminate\Database\Capsule\Manager::table('mod_hcloud_license')->select('localvalue')->where(['localkey' => 'whmcsmod_hetzner', 'id' => '1'])->get();
- $HetznerCloudLicenseInfo_config['RemoteKey'] = $this->LicenseKey;
- $HetznerCloudLicenseInfo_config['LocalKey'] = $llkey[0]->localvalue;
- return $HetznerCloudLicenseInfo_config;
- }
- public function get_HetznerCloud_prekey()
- {
- return ['HetznerCloud-Owned', 'HetznerCloud-Yearly'];
- }
- public function Get_HetznerCloudLicenseCheck()
- {
- $LicenseConfig = self::get_HetznerCloudLicenseInfo_config();
- $zlk = explode('-', $LicenseConfig['RemoteKey'], -1);
- $zlk = implode('-', $zlk);
- $HetznerCloudprekey = self::get_HetznerCloud_prekey();
- $RemoteKey = $LicenseConfig['RemoteKey'];
- $LocalKey = $LicenseConfig['LocalKey'];
- $name = 'HetznerCloud';
- if (!preg_match('/^' . $name . '\\-(Yearly|Owned)\\-[a-zA-Z0-9]{10}$/', $RemoteKey)) {
- $License['results']['status'] = 'Invalid';
- $License['results']['message'] = 'Invalid License Key';
- }
- else if (in_array($zlk, $HetznerCloudprekey)) {
- $results = self::HetznerCloud_Lcheck($RemoteKey, $LocalKey);
- switch ($results['status']) {
- ...................................................................
- .......................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement