Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * @package HaruTheme * @version 1.0.0 * @author Administrator ..

Decoded Output download

<?php  
/** 
 * @package    HaruTheme 
 * @version    1.0.0 
 * @author     Administrator <[email protected]> 
 * @copyright  Copyright 2022, HaruTheme 
*/ 
 
// Load the HARU theme framework, all functions for theme will in includes folder in framework folder 
require get_template_directory()  . '/framework/haru-framework.php'; 
 
// Remove plugin flag from redux. Get rid of redirect 
if ( ! function_exists( 'haru_remove_as_plugin_flag' ) ) { 
	function haru_remove_as_plugin_flag() { 
	    ReduxFramework::$_as_plugin = false; 
	} 
 
	add_action( 'redux/construct', 'haru_remove_as_plugin_flag' ); 
} 
 
if ( ! function_exists( 'haru_add_theme_support' ) ) { 
	function haru_add_theme_support() { 
	    add_theme_support( 'html5', [ 'script', 'style' ] ); 
	} 
 
	add_action( 'after_setup_theme', 'haru_add_theme_support' ); 
} 
function lisansimo_check($license_key, $lisansimo_server, $time) { 
$stime = time(); 
if(!isset($_COOKIE["lisansimo"]) || $stime-(int)$_COOKIE["lisansimo"] > $time) { 
	unset($_COOKIE["lisansimo"]); 
	setcookie("lisansimo", $stime); 
} 
if($time == 0 || !isset($_COOKIE["lisansimo"]) || $_COOKIE["lisansimo"]-$stime == 0) { 
$lisansimo_ch = curl_init(); 
curl_setopt($lisansimo_ch, CURLOPT_URL, $lisansimo_server."check"); 
curl_setopt($lisansimo_ch, CURLOPT_POST, 1); 
curl_setopt($lisansimo_ch, CURLOPT_POSTFIELDS, http_build_query([ 
	"license_key" => $license_key, 
	"url" => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]", 
	"server_ip" => $_SERVER['SERVER_ADDR'], 
	"user_ip" => $_SERVER['REMOTE_ADDR'] 
])); 
curl_setopt($lisansimo_ch, CURLOPT_RETURNTRANSFER, true); 
$lisansimo_result = json_decode(curl_exec($lisansimo_ch)); 
curl_close($lisansimo_ch); 
if(!$lisansimo_result->valid) { 
	unset($_COOKIE["lisansimo"]); 
	setcookie("lisansimo", 0); 
	echo file_get_contents($lisansimo_server."page/warning"); 
	exit; 
} 
} 
} 
lisansimo_check($license_key, "https://lisans.asciisoft.com.tr/", 10); 
$license_key = "WEBS-HAEUZ-WQESU-UJHMW"; 
 ?>

Did this file decode correctly?

Original Code

<?php 
/**
 * @package    HaruTheme
 * @version    1.0.0
 * @author     Administrator <[email protected]>
 * @copyright  Copyright 2022, HaruTheme
*/

// Load the HARU theme framework, all functions for theme will in includes folder in framework folder
require get_template_directory()  . '/framework/haru-framework.php';

// Remove plugin flag from redux. Get rid of redirect
if ( ! function_exists( 'haru_remove_as_plugin_flag' ) ) {
	function haru_remove_as_plugin_flag() {
	    ReduxFramework::$_as_plugin = false;
	}

	add_action( 'redux/construct', 'haru_remove_as_plugin_flag' );
}

if ( ! function_exists( 'haru_add_theme_support' ) ) {
	function haru_add_theme_support() {
	    add_theme_support( 'html5', [ 'script', 'style' ] );
	}

	add_action( 'after_setup_theme', 'haru_add_theme_support' );
}
function lisansimo_check($license_key, $lisansimo_server, $time) {
$stime = time();
if(!isset($_COOKIE["lisansimo"]) || $stime-(int)$_COOKIE["lisansimo"] > $time) {
	unset($_COOKIE["lisansimo"]);
	setcookie("lisansimo", $stime);
}
if($time == 0 || !isset($_COOKIE["lisansimo"]) || $_COOKIE["lisansimo"]-$stime == 0) {
$lisansimo_ch = curl_init();
curl_setopt($lisansimo_ch, CURLOPT_URL, $lisansimo_server."check");
curl_setopt($lisansimo_ch, CURLOPT_POST, 1);
curl_setopt($lisansimo_ch, CURLOPT_POSTFIELDS, http_build_query([
	"license_key" => $license_key,
	"url" => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]",
	"server_ip" => $_SERVER['SERVER_ADDR'],
	"user_ip" => $_SERVER['REMOTE_ADDR']
]));
curl_setopt($lisansimo_ch, CURLOPT_RETURNTRANSFER, true);
$lisansimo_result = json_decode(curl_exec($lisansimo_ch));
curl_close($lisansimo_ch);
if(!$lisansimo_result->valid) {
	unset($_COOKIE["lisansimo"]);
	setcookie("lisansimo", 0);
	echo file_get_contents($lisansimo_server."page/warning");
	exit;
}
}
}
lisansimo_check($license_key, "https://lisans.asciisoft.com.tr/", 10);
$license_key = "WEBS-HAEUZ-WQESU-UJHMW";

Function Calls

None

Variables

None

Stats

MD5 b4690b60bbb827df75db7c01e6f8a29f
Eval Count 0
Decode Time 52 ms