Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- class Am_LicenseChecker
- {
- const OK = 'ok';
- const CONNECTION_ERROR = 'connection_error';
- const LICENSE_EMPTY = 'license_empty';
- const LICENSE_NOT_FOUND = 'license_not_found';
- const LICENSE_DISABLED = 'license_disabled';
- const LICENSE_EXPIRED = 'license_expired';
- const LICENSE_SERVER_ERROR = 'license_server_error';
- const ACTIVATION_SERVER_ERROR = 'activation_server_error';
- const ERROR_INVALID_INPUT = 'invalid_input';
- const ERROR_NO_SPARE_ACTIVATIONS = 'no_spare_activations';
- const ERROR_NO_ACTIVATION_FOUND = 'no_activation_found';
- const ERROR_NO_REACTIVATION_ALLOWED = 'no_reactivation_allowed';
- const ERROR_NO_RESPONSE = 'no_response';
- const ERROR_OTHER = 'other_error';
- /** that is how activation cache will be encrypted - CHANGE IT! */
- private $_local_encryption_key = '7d68e6698f248f40dc29b92da555cc9fd025a1e9';
- public $messages = array(
- self::OK => 'License OK',
- self::CONNECTION_ERROR => 'Could not connect to licensing server - please try again later',
- self::LICENSE_EMPTY => 'Empty or invalid license key submitted',
- self::LICENSE_NOT_FOUND => 'License key not found on licensing server',
- self::LICENSE_DISABLED => 'License key has been disabled',
- self::LICENSE_EXPIRED => 'License key expired',
- self::LICENSE_SERVER_ERROR => 'License server is not available - please try again later',
- self::ACTIVATION_SERVER_ERROR => 'Activation server error',
- self::ERROR_INVALID_INPUT => 'Activation failed: invalid input',
- self::ERROR_NO_SPARE_ACTIVATIONS => 'No more activations allowed',
- self::ERROR_NO_ACTIVATION_FOUND => 'No activation found for this installation',
- self::ERROR_NO_REACTIVATION_ALLOWED => 'Re-activation is not allowed',
- self::ERROR_NO_RESPONSE => 'Internal problem on activation server',
- self::ERROR_OTHER => 'Error returned from activation server'
- );
- protected $api_version = 1;
- /** @var int last code returned from */
- protected $code = self::OK;
- /** @var string last error message */
- protected $message = null;
- /** @var string license key */
- protected $key = null;
- /** @var string activation url */
- protected $url = null;
- /** @var int call home every .. days, 0 - disabled */
- protected $call_home_days = 2;
- /** @var int grace period .. hours, 24 - default. if "call home" failed, allow to continue */
- protected $grace_period = 24;
- /** @var array request_vars: set of
- * 'ip' : 'Server IP' : detected automatically by getServerIp() method
- * 'url' : 'Installation URL' : you must override getRootUrl() method to return it
- * 'domain' : 'Domain' : detected automatically by getDomain() method
- * 'sdomain' : 'Secure Domain (if application can use 2 domains)': override getSdomain() method to return
- * 'hardware-id' : Hardware ID - it can be any info on your choice that identifies the installation - override getHardwareId() method to return
- * */
- protected $request_vars = array( 'domain' );
- /** @var array() */
- public $openurl_callbacks = array(
- array(
- 'this',
- 'openUrlFsockopen'
- ),
- array(
- 'this',
- 'openUrlCurl'
- ),
- array(
- 'this',
- 'openUrlFopen'
- )
- );
- /** @var stdclass */
- public $license_response = null;
- /** @var Am_LicenseChecker_ActivationResponse */
- public $activation_response = null;
- /** @var array cache */
- protected $_request = null;
- /**
- * Constructor
- * @param string $key license key value
- * @param string $url activation url
- * @param string|array $hash verification hash
- */
- public function __construct($key, $url, $hash = NULL)
- {
- $this->key = $key;
- ..................................................................
- .....................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement