Advertisement
Guest User

Untitled

a guest
Mar 5th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class dmn_license
  15. {
  16. public $errors = array( );
  17. private $api_url = 'http://forum.dmncms.net/interface/licenses.php';
  18. private $api_urlv2 = 'http://dmncms.net/applications/nexus/interface/licenses/';
  19. private $host = 'forum.dmncms.net';
  20. private $request_value = '';
  21. public $response = '';
  22. private $license_key_file = 'license.txt';
  23. private $license_data = array( );
  24. private $new_license_data = null;
  25. private $iv_size = null;
  26. private $securekey = null;
  27. public $secret = '9884746Secret*&D^#HR#GB^*TDmNCMS^&&^63683t6';
  28. private $local_key_expires = 1;
  29. public $access_details = array( );
  30. private $xml_contents = '';
  31. public $activation_faults = array(
  32. 101 => 'The key provided does not exist.',
  33. 102 => 'The key provided is has been deactivated.',
  34. 103 => 'The purchase the key is associated with has been cancelled.',
  35. 104 => 'The purchase the key is associated with has expired.',
  36. 201 => 'The key has already been activated the maximum number of times and cannot be activated again. Please contact support <a href="http://forum.dmncms.net/index.php?app=nexus&module=support" target="_blank">here</a>.',
  37. 202 => 'setEmail was TRUE, but the key already has an email.',
  38. 203 => 'The email provided was incorrect.'
  39. );
  40. private $check_faults = array(
  41. 0 => 'Bad request.',
  42. 101 => 'The key provided does not exist.',
  43. 301 => 'The email provided was incorrect.',
  44. 302 => 'You did not provide a usage ID.',
  45. 303 => 'The usage ID provided was invalid.',
  46. 304 => 'The request was received by a different IP address to the IP address that sent the "activate" API call.'
  47. );
  48. private $user_agent = 'ApiQuery-Bot v1.0';
  49.  
  50. public function get_local_license_data()
  51. {
  52. if (!(extension_loaded( 'mcrypt' ))) {
  53. throw new Exception( 'Please enable mcrypt extension in your php settings.' );
  54. }
  55. else {
  56. $this->iv_size = mcrypt_get_iv_size( MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC );
  57. $this->securekey = hash( 'sha256', $this->secret, true );
  58.  
  59. if (is_readable( $_obfuscate_DRIYGhMCKzQdK1sONBkjKjElGCo9JDI = BASEDIR . $this->license_key_file )) {
  60. $this->license_data = file( $_obfuscate_DRIYGhMCKzQdK1sONBkjKjElGCo9JDI );
  61. $this->license_data[0] = json_decode( $this->clean_json( $this->license_data[0] ), true );
  62.  
  63. if ($this->license_data[0]['activated'] == 0) {
  64. $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[0] = 'undefined';
  65. $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[1] = 'undefined';
  66. $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[4] = 'undefined';
  67. $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[5] = 'undefined';
  68. $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[6] = 'undefined';
  69. $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[8] = 'License not activated';
  70. $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[9] = 'undefined';
  71. $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[10] = $this->get_cms_version( );
  72. }
  73. else {
  74. $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI = explode( '[DmN]', $this->decrypt( $this->license_data[0]['license'] ) );
  75. $this->generate_info_xml( $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[0], $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[1] );
  76.  
  77. if (function_exists( 'curl_init' )) {
  78. if (!($this->send_post_with_curl( ))) {
  79. if (!($this->send_post_with_fsock( ))) {
  80. $this->send_post_file_get_contents( );
  81. }
  82. }
  83. }
  84. else if (!($this->send_post_with_fsock( ))) {
  85. .......................................................................
  86. ....................................................
  87. ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement