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 echo "<s\x63r\x69\x70\x74>\n\tf\x75\x6e\x63tion\x20\x49\x73E\x6dai\x6c(\x65m\x61i\x6..

Decoded Output download

<script>
	function IsEmail(email) {
		var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+\$/;
		return regex.test(email);
	}

	jQuery(function (\$) {
		\$('#sxhLicense').on('submit', function() {
			var name = \$("#name").val();			
			if (name=="" || name==null) { 
				alert("Please enter name");
				return false;
			}
			
			var email = \$("#email").val();
			if (!IsEmail(email) || email=="" || email==null) {
				alert("Please enter a valid email");
				return false;
			}
			
			var tran = \$("#tran").val();
			if (tran=="" || tran==null) {
				alert("Please enter transaction id");
				return false;	
			}
			return true;
		});
	});
</script>
<div class="wrap">
	<div id="icon-options-general" class="icon32"><br></div>
	<h2>

Did this file decode correctly?

Original Code

<?php echo "<s\x63r\x69\x70\x74>\n\tf\x75\x6e\x63tion\x20\x49\x73E\x6dai\x6c(\x65m\x61i\x6c)\x20{\n\t\tv\x61\x72\x20r\x65g\x65x\x20=\x20/^([a-z\x41-Z\x30-\x39_\x2e+-])+\x5c\x40(([a-zA-\x5a\x30-9-])+\x5c\x2e)+([\x61-z\x41-Z\x30-9]{\x32,4})+\$/;\n\t\tret\x75\x72n\x20reg\x65x.\x74\x65\x73t(\x65\x6d\x61i\x6c)\x3b\n\t}\n\n\t\x6aQuery(\x66u\x6ecti\x6f\x6e (\$) {\n\t\t\$(\x27\x23\x73\x78h\x4c\x69c\x65n\x73\x65\x27)\x2e\x6fn(\x27sub\x6di\x74',\x20f\x75\x6e\x63t\x69\x6fn()\x20{\n\t\t\tv\x61r n\x61me =\x20\$(\"#n\x61\x6d\x65\").\x76\x61l();\t\t\t\n\t\t\ti\x66\x20(\x6ea\x6de\x3d=\"\"\x20|| n\x61\x6de\x3d=\x6e\x75ll)\x20{\x20\n\t\t\t\t\x61l\x65rt(\x22Pl\x65ase\x20enter name\x22)\x3b\n\t\t\t\t\x72\x65\x74\x75rn f\x61l\x73\x65;\n\t\t\t}\n\t\t\t\n\t\t\t\x76\x61r\x20em\x61\x69\x6c \x3d \$(\"#\x65\x6d\x61\x69\x6c\")\x2ev\x61l();\n\t\t\t\x69f\x20(\x21\x49s\x45\x6d\x61i\x6c(\x65\x6d\x61\x69\x6c)\x20||\x20email\x3d=\x22\x22 || em\x61i\x6c\x3d\x3dnu\x6c\x6c) {\n\t\t\t\ta\x6c\x65\x72\x74(\"P\x6c\x65a\x73e \x65\x6e\x74\x65\x72 a \x76\x61\x6ci\x64 \x65m\x61i\x6c\x22);\n\t\t\t\t\x72\x65\x74\x75\x72\x6e\x20\x66a\x6c\x73\x65\x3b\n\t\t\t}\n\t\t\t\n\t\t\t\x76\x61r t\x72\x61\x6e\x20= \$(\x22#t\x72\x61n\").v\x61\x6c();\n\t\t\ti\x66\x20(tra\x6e==\x22\"\x20||\x20tr\x61n\x3d=n\x75l\x6c)\x20{\n\t\t\t\tal\x65r\x74(\"P\x6cease \x65n\x74\x65\x72 tr\x61\x6e\x73acti\x6f\x6e\x20i\x64\");\n\t\t\t\tr\x65tur\x6e \x66a\x6cs\x65\x3b\t\n\t\t\t}\n\t\t\t\x72\x65\x74urn\x20\x74rue;\n\t\t});\n\t});\n\x3c/\x73c\x72ip\x74>\n\x3cd\x69\x76 cla\x73s=\x22\x77ra\x70\">\n\t\x3c\x64\x69\x76\x20id=\"i\x63\x6fn-\x6fp\x74\x69on\x73-ge\x6eer\x61\x6c\x22 cla\x73\x73=\x22\x69\x63\x6f\x6e\x33\x32\x22>\x3c\x62\x72>\x3c/\x64i\x76\x3e\n\t\x3ch2>";echo$this->plugin_name;echo " L\x69\x63\x65\x6e\x73e</h\x32>\n\t";if($_POST){${"\x47\x4cO\x42A\x4c\x53"}["i\x61\x63m\x62\x68"]="\x6des\x73\x61\x67\x65";echo "\t\t<d\x69\x76 \x63la\x73s=\x22\x75pdated f\x61d\x65 ";$dzkvrsvjjj="su\x63\x63\x65\x73s";echo(!${$dzkvrsvjjj}?"error":"");echo "\"\x3e<\x70>";echo${${"\x47\x4cO\x42\x41\x4c\x53"}["i\x61\x63\x6db\x68"]};echo "</\x70></d\x69\x76>\n\t";}echo "\t\n\t<form\x20\x6d\x65\x74\x68\x6f\x64\x3d\x22\x70\x6f\x73\x74\"\x20\x69d\x3d\x22s\x78hLic\x65nse\"> \n\t\t\x3ct\x61b\x6ce\x20c\x6ca\x73\x73\x3d\x22f\x6fr\x6d-tab\x6c\x65\"\x3e\n\t\t\x3ct\x62ody>\n\t\t\t\x3c\x74\x72\x20\x76\x61li\x67n\x3d\x22to\x70\"\x3e\n\t\t\t\t\x3c\x74\x68\x20s\x63\x6fpe\x3d\"\x72ow\">\x3c\x6c\x61\x62el\x20\x66\x6fr=\x22blo\x67\x6e\x61m\x65\"\x3e\x4e\x61m\x65\x3c/\x6ca\x62el\x3e</th\x3e\n\t\t\t\t\x3ct\x64>\x3c\x69\x6e\x70\x75\x74 n\x61\x6d\x65\x3d\x22\x6e\x61\x6de\x22 \x74yp\x65\x3d\"text\" \x69d\x3d\x22\x6ea\x6d\x65\x22 c\x6c\x61ss\x3d\"regu\x6car-\x74ext\" value\x3d\"";echo$this->sxh_license->name;echo "\x22></\x74d>\n\t\t\t</t\x72>\n\t\t\t<tr \x76ali\x67n=\"t\x6f\x70\">\n\t\t\t\t<th\x20sco\x70e\x3d\x22r\x6f\x77\"\x3e<\x6c\x61b\x65\x6c\x20fo\x72\x3d\"\x62\x6co\x67desc\x72\x69\x70\x74io\x6e\x22\x3e\x45\x6dail</\x6c\x61\x62e\x6c></t\x68\x3e\n\t\t\t\t<\x74d\x3e<in\x70\x75t\x20n\x61me\x3d\x22\x65\x6da\x69\x6c\" type\x3d\"te\x78\x74\x22 \x69d=\"\x65\x6dail\"\x20\x63\x6c\x61\x73s\x3d\x22r\x65gu\x6ca\x72-\x74ex\x74\x22\x20\x76\x61lu\x65=\"";echo$this->sxh_license->email;echo "\">\x3c/t\x64>\n\t\t\t\x3c/t\x72>\n\t\t\t\x3ctr\x20\x76a\x6cig\x6e\x3d\x22t\x6f\x70\">\n\t\t\t\t\x3c\x74\x68\x20\x73\x63\x6fpe\x3d\x22row\">\x3cl\x61be\x6c\x20\x66o\x72=\x22\x62l\x6fg\x64e\x73\x63riptio\x6e\x22>T\x72\x61ns\x61c\x74\x69\x6f\x6e ID\x3c/\x6ca\x62\x65l\x3e</\x74h\x3e\n\t\t\t\t\x3c\x74\x64><\x69n\x70\x75t \x6e\x61me\x3d\"\x74r\x61n\x22 \x74ype=\"\x70\x61\x73\x73w\x6f\x72d\x22\x20\x69\x64\x3d\"\x74ran\x22\x20c\x6c\x61s\x73=\x22r\x65\x67u\x6car-\x74\x65\x78\x74\" \x76\x61\x6c\x75e\x3d\x22";echo$this->sxh_license->tran;echo "\"\x3e\x3c/\x74d>\n\t\t\t</tr\x3e\n\t\t\x3c/t\x62\x6fdy\x3e\n\t\t\x3c/\x74\x61\x62l\x65\x3e\n\t\t\x3cp\x20c\x6c\x61ss\x3d\"submi\x74\"><\x69npu\x74\x20\x74ype\x3d\x22su\x62\x6d\x69t\x22\x20\x6eam\x65=\x22s\x75bmit\" \x69\x64\x3d\"su\x62\x6d\x69t\x22\x20c\x6c\x61\x73\x73\x3d\"bu\x74ton\x20\x62\x75\x74\x74\x6fn-\x70\x72imar\x79\"\x20v\x61l\x75\x65\x3d\x22\x41c\x74\x69va\x74\x65\x22></p>\n\t\x3c/fo\x72\x6d>\x20\n\t";echo "</d\x69v>\n";
?>

Function Calls

None

Variables

None

Stats

MD5 b4ebe2fc0da39e08a2e04535063650e9
Eval Count 0
Decode Time 91 ms