Guest User

Untitled

a guest
Apr 30th, 2018
1,633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.50 KB | None | 0 0
  1. <?php
  2. /**
  3. * Decode by romansote
  4. * Powered by zmuserver.com | Hosting | Vps | Servidores mu online.
  5. *********************************************************************************
  6. * Instrucciones de uso
  7. *********************************************************************************
  8. *1.- Crear un archivo license.class.php
  9. *2.- guardarlo en la carpeta system, debe reemplazar al antiguo license.class.php
  10. **********************************************************************************
  11. * Si requieres un hosting para este sistema web visita https://zmuserver.com
  12. *
  13. **/
  14.  
  15.  
  16. class license
  17. {
  18.     public $errors = array();
  19.     private $api_url = '';
  20.     private $endpoint = 'activate';
  21.     private $host = 'dmncms.net';
  22.     private $debug = 0;
  23.     private $request_value = array();
  24.     public $response = false;
  25.     public $validation_error;
  26.     private $license_key_file = 'license.txt';
  27.     private $license_data = array();
  28.     private $new_license_data;
  29.     private $iv_size;
  30.     private $validated = false;
  31.     private $securekey;
  32.     private $local_license_data = array();
  33.     public $secret;
  34.     public $access_details = array();
  35.     public $activation_faults = array(101 => 'The key or email provided does not exist.', 102 => 'The key provided is has been deactivated.', 103 => 'The purchase the key is associated with has been cancelled.', 104 => 'The purchase the key is associated with has expired.', 201 => 'The key has already been activated the maximum number of times and cannot be activated again. Please contact support <a href="http://dmncms.net/support/create/" target="_blank">here</a>.', 202 => 'setEmail was TRUE, but the key already has an email.', 203 => 'The email provided was incorrect.');
  36.     private $check_faults = array(0 => 'Bad request.', 101 => 'The key or email provided does not exist.', 301 => 'The email provided was incorrect.', 302 => 'You did not provide a usage ID.', 303 => 'The usage ID provided was invalid.', 304 => 'The request was received by a different IP address to the IP address that sent the "activate" API call.', 305 => 'The local license key is invalid for this domain.', 306 => 'The local license key is invalid for this directory');
  37.     private $user_agent = 'ApiQuery-Bot v1.0';
  38.     private $_response;
  39.     private $line;
  40.  
  41.     /**
  42.      * [__construct description]
  43.      */
  44.     public function __construct(){
  45.  
  46.  
  47.     }
  48.  
  49.  
  50.     /**
  51.      * [check_license description]
  52.      * @return [type] [description]
  53.      */
  54.      protected function check_license() {
  55.          return true;
  56.     }
  57.  
  58.     /**
  59.      * [validate description]
  60.      * @return [type] [description]
  61.      */
  62.     protected function validate(){
  63.         return true;
  64.     }
  65.  
  66.     /**
  67.      * [check_response description]
  68.      * @return [type] [description]
  69.      */
  70.     protected function check_response(){
  71.         return true;
  72.     }
  73.  
  74.     /**
  75.      * [activation_form description]
  76.      * @return [type] [description]
  77.      */
  78.     protected function activation_form() {
  79.         return true;
  80.     }
  81.  
  82.     /**
  83.      * [validate_form description]
  84.      * @return [type] [description]
  85.      */
  86.     public function validate_form() {
  87.         return true;
  88.     }
  89.  
  90.     protected function _check_license(){
  91.         return true;
  92.     }
  93.  
  94.     public function check_activation_response() {
  95.         return $this->_check_license();
  96.     }
  97.  
  98.     public function generate_license_data($version = '') {
  99.         return true;
  100.     }
  101.     public function check_license_file($version = false) {
  102.         return true;
  103.     }
  104.  
  105.     public function create_license_file($version = false, $return = false) {
  106.         return true;
  107.     }
  108.  
  109.     public function read_license($version = false) {
  110.         return true;
  111.     }
  112.  
  113.     public function write_license() {
  114.         return true;
  115.     }
  116.  
  117.     private function clear_license_cache() {
  118.     }
  119.  
  120.     protected function get_cms_version() {
  121.         return 'zmuserver.com';
  122.     }
  123.     public function activate_license() {
  124.         return true;
  125.  
  126.     }
  127.  
  128.     public function check_license_data($licensekey, $identifier, $usage_id) {
  129.         return true;
  130.     }
  131.  
  132.     private function update_license_extra($licensekey, $identifier, $usage_id) {
  133.         return true;
  134.     }
  135.  
  136.     protected function check_local_license($data = false) {
  137.         return false;
  138.     }
  139.  
  140.     protected function get_local_license_data($data = false) {
  141.         return $this->local_license_data;
  142.     }
  143.  
  144.     public function request_license_data($license_key, $identifier) {
  145.     }
  146.  
  147.     public function release_license() {
  148.         return false;
  149.     }
  150.  
  151.     private function generate_iv($secret = true) {
  152.  
  153.     }
  154.  
  155.     private function set_secret() {
  156.     }
  157.  
  158.     private function decrypt() {
  159.     }
  160.  
  161.     private function encrypt($input) {
  162.  
  163.     }
  164.  
  165.     public function send_request() {
  166.  
  167.     }
  168.  
  169.     public function send_curl() {
  170.  
  171.     }
  172.  
  173.     private function create_curl_request() {
  174.         return true;
  175.     }
  176.  
  177.     private function clean_json($data) {
  178.     }
  179.    
  180.     private function valid_md5_hash($md5 = '') {
  181.     }
  182.    
  183.     private function valid_email($email = '') {
  184.     }
  185.  
  186.     private function full_domain() {
  187.     }
  188.  
  189.     public function access_details() {
  190.  
  191.     }
  192.  
  193.     public function check_dmn_host() {
  194.     }
  195.  
  196.     private function scrape_phpinfo($all, $target) {
  197.         return true;
  198.     }
  199.  
  200.     private function add_cron_task($task, $time) {
  201.     }
  202.  
  203.     public function activation_form_html() {
  204.     }
  205. }
  206.  
  207. ?>
Advertisement
Add Comment
Please, Sign In to add comment