Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- class spbas {
- var $errors = null;
- var $license_key = null;
- var $api_server = null;
- var $remote_port = null;
- var $remote_timeout = null;
- var $local_key_storage = null;
- var $read_query = null;
- var $update_query = null;
- var $local_key_path = null;
- var $local_key_name = null;
- var $local_key_transport_order = null;
- var $local_key_grace_period = null;
- var $local_key_last = null;
- var $validate_download_access = null;
- var $release_date = null;
- var $key_data = null;
- var $status_messages = null;
- var $valid_for_product_tiers = null;
- function spbas() {
- $this->errors = false;
- $this->remote_port = 80;
- $this->remote_timeout = 10;
- $this->valid_local_key_types = array( 'spbas' );
- $this->local_key_type = 'spbas';
- $this->local_key_storage = 'filesystem';
- $this->local_key_grace_period = 0;
- $this->local_key_last = 0;
- $this->read_query = false;
- $this->update_query = false;
- $this->local_key_path = './';
- $this->local_key_name = 'license.txt';
- $this->local_key_transport_order = 'scf';
- $this->validate_download_access = false;
- $this->release_date = false;
- $this->valid_for_product_tiers = false;
- $this->key_data = array( 'custom_fields' => array( ), 'download_access_expires' => 0, 'license_expires' => 0, 'local_key_expires' => 0, 'status' => 'Invalid' );
- $this->status_messages = array( 'active' => 'This license is active.', 'suspended' => 'Error: This license has been suspended.', 'expired' => 'Error: This license has expired.', 'pending' => 'Error: This license is pending review.', 'download_access_expired' => 'Error: This version of the software was released ' . 'after your download access expired. Please ' . 'downgrade or contact support for more information.', 'missing_license_key' => 'Error: The license key variable is empty.', 'unknown_local_key_type' => 'Error: An unknown type of local key validation was requested.', 'could_not_obtain_local_key' => 'Error: I could not obtain a new local license key.', 'maximum_grace_period_expired' => 'Error: The maximum local license key grace period has expired.', 'local_key_tampering' => 'Error: The local license key has been tampered with or is invalid.', 'local_key_invalid_for_location' => 'Error: The local license key is invalid for this location.', 'missing_license_file' => 'Error: Please create the following file (and directories if they don\'t exist already):<br />
- <br />
- ', 'license_file_not_writable' => 'Error: Please make the following path writable:<br />', 'invalid_local_key_storage' => 'Error: I could not determine the local key storage on clear.', 'could_not_save_local_key' => 'Error: I could not save the local license key.', 'license_key_string_mismatch' => 'Error: The local key is invalid for this license.' );
- $this->localization = array( 'active' => 'This license is active.', 'suspended' => 'Error: This license has been suspended.', 'expired' => 'Error: This license has expired.', 'pending' => 'Error: This license is pending review.', 'download_access_expired' => 'Error: This version of the software was released ' . 'after your download access expired. Please ' . 'downgrade or contact support for more information.' );
- }
- function validate() {
- if (!$this->license_key) {
- return $this->errors = $this->status_messages['missing_license_key'];
- }
- if (!in_array( strtolower( $this->local_key_type ), $this->valid_local_key_types )) {
- return $this->errors = $this->status_messages['unknown_local_key_type'];
- }
- $this->trigger_grace_period = $this->status_messages['could_not_obtain_local_key'];
- .................................
- ...................
- .....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement