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 eval(base64_decode('aWYoIWlzc2V0KCRfU0VTU0lPTlsnX2FjaGt5Y2hfaW5zdGFsbCddKSkKewoJJ..

Decoded Output download

if(!isset($_SESSION['_achkych_install']))
{
	$msg	= 'License needed!';
	$_host	= explode('www.', $_SERVER['HTTP_HOST']);
	$_host	= isset($_host[1]) ? $_host[1] : $_SERVER['HTTP_HOST'];
	if (strpos($_host, ':'))
	{
		$_host = substr($_host, 0, strpos($_host, ':'));
	}
	if(0 === strpos($_host, "www."))
	{
		$_host = substr($_host, 4);
	}
	
	$jnm = (false !== strpos($_host, "."));
	$auth_subrion = true;
	if($jnm)
	{
		if(!isset($domains) || !in_array(str_rot13($_host), $domains) && !in_array(str_rot13('www.'.$_host), $domains))
		{
			$auth_subrion = false;
			$sbr_rmt_host = 'h'.'t' . 't' 
				. 'p'.':'.'//t'	. 'oo' 
				. 'ls.s' . 'ub' . 'ri' . 'on.c' . 'om/p' . 'in' . 'g.p' . 'hp' 
				. '?g'.'name='.GNAME.'&do'.'main='.$_host;
			$rmt_rst = getPageContent($sbr_rmt_host);
			if(FALSE !== $rmt_rst)
			{
				$auth_subrion = true;
				$sbr_rmt_rst = unserialize($rmt_rst);
				if(!$sbr_rmt_rst['passed'])
				{
					$auth_subrion = false;
					$msg = 	$sbr_rmt_rst['msg'];	
				}			
			}				
				
		}
		if($auth_subrion)
		{
			if(!isset($_POST['_license']) || !isset($_POST['_username']))
			{
				$auth_subrion = false;
			}
			elseif(GNAME != md5($_POST['_username'].LSALT).md5($_POST['_license'].LSALT))
			{
				$auth_subrion = false;
			}
		}
	}
	if($auth_subrion) 
	{
		$msg = '';
		$_SESSION['_achkych_install'] = $auth_subrion;
	}
	else 
	{
		unset($_SESSION['_achkych_install']);
		$current = 'license';
	}
}

Did this file decode correctly?

Original Code

<?php

eval(base64_decode('aWYoIWlzc2V0KCRfU0VTU0lPTlsnX2FjaGt5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