Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class spbas {
  15. var $errors = null;
  16. var $license_key = null;
  17. var $api_server = null;
  18. var $remote_port = null;
  19. var $remote_timeout = null;
  20. var $local_key_storage = null;
  21. var $read_query = null;
  22. var $update_query = null;
  23. var $local_key_path = null;
  24. var $local_key_name = null;
  25. var $local_key_transport_order = null;
  26. var $local_key_grace_period = null;
  27. var $local_key_last = null;
  28. var $validate_download_access = null;
  29. var $release_date = null;
  30. var $key_data = null;
  31. var $status_messages = null;
  32. var $valid_for_product_tiers = null;
  33.  
  34. function spbas() {
  35. $this->errors = false;
  36. $this->remote_port = 80;
  37. $this->remote_timeout = 10;
  38. $this->valid_local_key_types = array( 'spbas' );
  39. $this->local_key_type = 'spbas';
  40. $this->local_key_storage = 'filesystem';
  41. $this->local_key_grace_period = 0;
  42. $this->local_key_last = 0;
  43. $this->read_query = false;
  44. $this->update_query = false;
  45. $this->local_key_path = './';
  46. $this->local_key_name = 'license.txt';
  47. $this->local_key_transport_order = 'scf';
  48. $this->validate_download_access = false;
  49. $this->release_date = false;
  50. $this->valid_for_product_tiers = false;
  51. $this->key_data = array( 'custom_fields' => array( ), 'download_access_expires' => 0, 'license_expires' => 0, 'local_key_expires' => 0, 'status' => 'Invalid' );
  52. $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 />
  53. <br />
  54. ', '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.' );
  55. $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.' );
  56. }
  57.  
  58. function validate() {
  59. if (!$this->license_key) {
  60. return $this->errors = $this->status_messages['missing_license_key'];
  61. }
  62.  
  63. if (!in_array( strtolower( $this->local_key_type ), $this->valid_local_key_types )) {
  64. return $this->errors = $this->status_messages['unknown_local_key_type'];
  65. }
  66.  
  67. $this->trigger_grace_period = $this->status_messages['could_not_obtain_local_key'];
  68. .................................
  69. ...................
  70. .....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement