Advertisement
Guest User

Untitled

a guest
Apr 30th, 2018
1,562
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. * Skype: Romansote8@outlook.es
  6. *********************************************************************************
  7. * Instrucciones de uso
  8. *********************************************************************************
  9. *1.- Crear un archivo license.class.php
  10. *2.- guardarlo en la carpeta system, debe reemplazar al antiguo license.class.php
  11. **********************************************************************************
  12. * Si requieres un hosting para este sistema web visita https://zmuserver.com
  13. *
  14. **/
  15.  
  16.  
  17. class license
  18. {
  19.     public $errors = array();
  20.     private $api_url = '';
  21.     private $endpoint = 'activate';
  22.     private $host = 'dmncms.net';
  23.     private $debug = 0;
  24.     private $request_value = array();
  25.     public $response = false;
  26.     public $validation_error;
  27.     private $license_key_file = 'license.txt';
  28.     private $license_data = array();
  29.     private $new_license_data;
  30.     private $iv_size;
  31.     private $validated = false;
  32.     private $securekey;
  33.     private $local_license_data = array();
  34.     public $secret;
  35.     public $access_details = array();
  36.     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.');
  37.     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');
  38.     private $user_agent = 'ApiQuery-Bot v1.0';
  39.     private $_response;
  40.     private $line;
  41.  
  42.     /**
  43.      * [__construct description]
  44.      */
  45.     public function __construct(){
  46.  
  47.  
  48.     }
  49.  
  50.  
  51.     /**
  52.      * [check_license description]
  53.      * @return [type] [description]
  54.      */
  55.      protected function check_license() {
  56.          return true;
  57.     }
  58.  
  59.     /**
  60.      * [validate description]
  61.      * @return [type] [description]
  62.      */
  63.     protected function validate(){
  64.         return true;
  65.     }
  66.  
  67.     /**
  68.      * [check_response description]
  69.      * @return [type] [description]
  70.      */
  71.     protected function check_response(){
  72.         return true;
  73.     }
  74.  
  75.     /**
  76.      * [activation_form description]
  77.      * @return [type] [description]
  78.      */
  79.     protected function activation_form() {
  80.         return true;
  81.     }
  82.  
  83.     /**
  84.      * [validate_form description]
  85.      * @return [type] [description]
  86.      */
  87.     public function validate_form() {
  88.         return true;
  89.     }
  90.  
  91.     protected function _check_license(){
  92.         return true;
  93.     }
  94.  
  95.     public function check_activation_response() {
  96.         return $this->_check_license();
  97.     }
  98.  
  99.     public function generate_license_data($version = '') {
  100.         return true;
  101.     }
  102.     public function check_license_file($version = false) {
  103.         return true;
  104.     }
  105.  
  106.     public function create_license_file($version = false, $return = false) {
  107.         return true;
  108.     }
  109.  
  110.     public function read_license($version = false) {
  111.         return true;
  112.     }
  113.  
  114.     public function write_license() {
  115.         return true;
  116.     }
  117.  
  118.     private function clear_license_cache() {
  119.     }
  120.  
  121.     protected function get_cms_version() {
  122.         return 'zmuserver.com';
  123.     }
  124.     public function activate_license() {
  125.         return true;
  126.  
  127.     }
  128.  
  129.     public function check_license_data($licensekey, $identifier, $usage_id) {
  130.         return true;
  131.     }
  132.  
  133.     private function update_license_extra($licensekey, $identifier, $usage_id) {
  134.         return true;
  135.     }
  136.  
  137.     protected function check_local_license($data = false) {
  138.         return false;
  139.     }
  140.  
  141.     protected function get_local_license_data($data = false) {
  142.         return $this->local_license_data;
  143.     }
  144.  
  145.     public function request_license_data($license_key, $identifier) {
  146.     }
  147.  
  148.     public function release_license() {
  149.         return false;
  150.     }
  151.  
  152.     private function generate_iv($secret = true) {
  153.  
  154.     }
  155.  
  156.     private function set_secret() {
  157.     }
  158.  
  159.     private function decrypt() {
  160.     }
  161.  
  162.     private function encrypt($input) {
  163.  
  164.     }
  165.  
  166.     public function send_request() {
  167.  
  168.     }
  169.  
  170.     public function send_curl() {
  171.  
  172.     }
  173.  
  174.     private function create_curl_request() {
  175.         return true;
  176.     }
  177.  
  178.     private function clean_json($data) {
  179.     }
  180.    
  181.     private function valid_md5_hash($md5 = '') {
  182.     }
  183.    
  184.     private function valid_email($email = '') {
  185.     }
  186.  
  187.     private function full_domain() {
  188.     }
  189.  
  190.     public function access_details() {
  191.  
  192.     }
  193.  
  194.     public function check_dmn_host() {
  195.     }
  196.  
  197.     private function scrape_phpinfo($all, $target) {
  198.         return true;
  199.     }
  200.  
  201.     private function add_cron_task($task, $time) {
  202.     }
  203.  
  204.     public function activation_form_html() {
  205.     }
  206. }
  207.  
  208. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement