Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Decode by Romansote
- **/
- class license
- {
- public $errors = array();
- private $api_url = '';
- private $endpoint = 'activate';
- private $host = 'dmncms.net';
- private $debug = 0;
- private $request_value = array();
- public $response = false;
- public $validation_error;
- private $license_key_file = 'license.txt';
- private $license_data = array();
- private $new_license_data;
- private $iv_size;
- private $validated = false;
- private $securekey;
- private $local_license_data = array();
- public $secret;
- public $access_details = array();
- 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.');
- 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');
- private $user_agent = 'ApiQuery-Bot v1.0';
- private $_response;
- private $line;
- /**
- * [__construct description]
- */
- public function __construct(){
- }
- public function curl_file_get_contents($url) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_URL, $url);
- $data = curl_exec($ch);
- curl_close($ch);
- return $data;
- }
- public function check_license() {
- return true;
- }
- public function validate(){
- return true;
- }
- private function check_response(){
- return true;
- }
- private function activation_form() {
- return true;
- }
- public function validate_form() {
- return true;
- }
- public function check_activation_response() {
- return true;
- }
- public function generate_license_data($version = '') {
- return true;
- }
- public function check_license_file($version = false) {
- return true;
- }
- public function create_license_file($version = false, $return = false) {
- return true;
- }
- public function read_license($version = false) {
- return true;
- }
- public function write_license() {
- return true;
- }
- private function clear_license_cache() {
- }
- private function get_cms_version() {
- return 'zgamelot.net';
- }
- public function activate_license() {
- return true;
- }
- public function check_license_data($licensekey, $identifier, $usage_id) {
- return true;
- }
- private function update_license_extra($licensekey, $identifier, $usage_id) {
- return true;
- }
- public function check_local_license($data = false) {
- $this->local_license_data[8] = 'LifeTime';
- $this->local_license_data[9] = '123456789';
- $this->local_license_data[11] = 'zmuserver.com';
- $this->local_license_data[10] = '1.1.8';
- return true;
- }
- public function get_local_license_data($data = false) {
- return $this->local_license_data;
- }
- public function request_license_data($license_key, $identifier) {
- }
- public function release_license() {
- return false;
- }
- private function generate_iv($secret = true) {
- }
- private function set_secret() {
- }
- private function decrypt() {
- }
- private function encrypt($input) {
- }
- public function send_request() {
- }
- public function send_curl() {
- }
- private function create_curl_request() {
- return true;
- }
- private function clean_json($data) {
- }
- private function valid_md5_hash($md5 = '') {
- }
- private function valid_email($email = '') {
- }
- private function full_domain() {
- }
- public function access_details() {
- }
- public function check_dmn_host() {
- }
- private function scrape_phpinfo($all, $target) {
- return true;
- }
- private function add_cron_task($task, $time) {
- }
- public function activation_form_html() {
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement