Advertisement
Guest User

Untitled

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