Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Loader)
- *
- * @ Version : 2.0.0.4
- * @ Author : DeZender
- * @ Release on : 21.10.2015
- * @ Official site : http://DeZender.Net
- *
- */
- function this_template_install_lcn() {
- if (isset($_SERVER["HTTP_CF_CONNECTING_IP"]))
- {
- $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
- }
- $ioncube_ver = function_exists("ioncube_loader_version") ? (ioncube_loader_version()) : "none";
- $url = API_LINK . "/validate";
- $post_data = array("product" => PRODUCT_SLUG, "license" => LICENSE_KEY, "hash" => HASH_CODE, "version" => THEME_VERSION, "domain" => $_SERVER["HTTP_HOST"], "wp_url" => get_option("siteurl"), "wpemail" => get_option("admin_email"), "userip" => $_SERVER["REMOTE_ADDR"], "setupdir" => $_SERVER["SCRIPT_FILENAME"], "software" => $_SERVER["SERVER_SOFTWARE"], "serverip" => $_SERVER["SERVER_ADDR"], "php_ver" => PHP_VERSION, "php_major_ver" => PHP_MAJOR_VERSION, "ioncube_ver" => $ioncube_ver);
- $lcn_details = wp_safe_remote_post($url, array("body" => $post_data));
- if (!is_wp_error($lcn_details))
- {
- if (isset($lcn_details["response"]["code"]) && $lcn_details["response"]["code"] == 200)
- {
- $lcn_data = json_decode($lcn_details["body"]);
- if (isset($lcn_data->response_code) && $lcn_data->response_code == 200)
- {
- update_option(DB_PREFIX . "_lcn_data", serialize($lcn_data));
- update_option(DB_PREFIX . "TimeChecker", time());
- update_option(DB_PREFIX . "_validation_request_message", "success");
- return null;
- }
- update_option(DB_PREFIX . "_validation_request_message", $lcn_data);
- return null;
- }
- update_option(DB_PREFIX . "_validation_request_message", $lcn_details["response"]);
- return null;
- }
- update_option(DB_PREFIX . "_validation_request_message", $lcn_details->get_error_message());
- return;
- }
- function this_template_uninstall() {
- delete_option(DB_PREFIX . "_lcn_data");
- delete_option(DB_PREFIX . "TimeChecker");
- update_option(DB_PREFIX . "_validation_request_message");
- return;
- }
- function validate_license_hourly() {
- $timeChecker = get_option(DB_PREFIX . "TimeChecker");
- if ($timeChecker && !empty($timeChecker))
- {
- if (3600 < time() - $timeChecker)
- {
- this_template_install_lcn();
- return null;
- }
- }
- this_template_install_lcn();
- return;
- }
- function force_validate_license() {
- if (isset($_GET["lcnAction"]) && $_GET["lcnAction"] == "forceValidate")
- {
- $obj = new stdClass();
- if (isset($_POST["forceCode"]) && $_POST["forceCode"] == hash("sha256", LICENSE_KEY . HASH_CODE))
- {
- this_template_uninstall();
- this_template_install_lcn();
- $obj->result = "success";
- $obj->message = "License Validated";
- echo json_encode($obj, JSON_PRETTY_PRINT);
- }
- else
- {
- $obj->result = "error";
- $obj->message = "Invalid Security Code";
- echo json_encode($obj, JSON_PRETTY_PRINT);
- }
- exit();
- }
- return;
- }
- function this_template_validate_js() {
- wp_register_script("my_ajax_script", get_bloginfo("template_directory") . "/js/validate.js", array("jquery"));
- wp_localize_script("my_ajax_script", "myAjax", array("ajaxurl" => admin_url("admin-ajax.php")));
- wp_enqueue_script("my_ajax_script");
- return;
- }
- function my_ajax() {
- this_template_install_lcn();
- return;
- }
- function deactivate_license() {
- echo "<style type=\"text/css\">
- html, body, div, span, applet, object, iframe, figure,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,b, u, i, center, dl, dt, dd, ol, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent;}
- html{padding-top: 32px;}
- .clearfix::after { clear: both; content: \"\"; display: block; }
- body { background-color: #EEEEEE; font: normal 13px/1.5 tahoma; }
- ...............................................................................
- .............................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement