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("PD9waHAgaW5jbHVkZV9vbmNlICIuLi9tb2R1bGUvY2Vrc2Vzc2lvbi5waHA..

Decoded Output download

?>b'<?php include_once "../module/ceksession.php";include_once "../module/conset.php";include_once "../module/stringfunction.php"; ?><!doctypehtml><html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript">$(function(){$("#ischeck").change(function(){var c=$("#ischeck").is(":checked"),e=$("#tblmenu>tr").length;for(i=1;i<=e;i++)$("#chk"+i).prop("checked",c)})})</script></head><body><table cellpadding="3"cellspacing="0"style="color:#fff"><tr><td style="white-space:nowrap"colspan="2"width="10"><input id="ischeck"type="checkbox"><b style="color:#0f0">Select / Deselect All Menu Items</b></td></tr><?php $coid=$_SESSION[\'coid\'];$userid=$_POST[\'userid\'];$module=$_POST[\'module\'];$n=strpos($module,"0");$id=left($module,$n);$sql="
		SELECT * FROM
		(
			SELECT id, parent_id, title, groupmenu, ulvl, 0 AS mtype FROM menus WHERE id LIKE \'$id%\' AND ulvl > 2 AND
				id NOT IN (SELECT DISTINCT MenuId FROM usermenus WHERE CoId = \'$coid\' AND UserId = \'$userid\')
			UNION ALL
			SELECT id, parent_id, title, groupmenu, ulvl, 1 AS mtype FROM menus WHERE id LIKE \'$id%\' AND ulvl > 2 AND 
				id IN (SELECT DISTINCT MenuId FROM usermenus WHERE CoId = \'$coid\' AND UserId = \'$userid\')
			UNION ALL
			SELECT id, parent_id, title, groupmenu, ulvl, 2 AS mtype FROM menus WHERE id LIKE \'$id%\' AND ulvl = 2
		) AS q
		ORDER BY id
	";$rs=odbc_exec($conn1,$sql);echo "<tbody id=\'tblmenu\'>";$i=1;while($r=odbc_fetch_array($rs)){ ?><tr style="color:#fff;font-weight:700;background-color:#00f"style="color:#000;font-weight:700;background-color:#afa"style="color:#fff;font-weight:700"style="font-weight:700"id="tr<?php echo $i  ?>"<?php if($r[\'parent_id\']==0&&strlen($r[\'id\'])==2&&right($r[\'id\'],1)==0){ ?><?php }elseif($r[\'parent_id\']==0&&strlen($r[\'id\'])==2&&right($r[\'id\'],1)!=0){ ?><?php }elseif($r[\'parent_id\']!=0&&strlen($r[\'id\'])==2){ ?><?php }elseif($r[\'parent_id\']==0&&strlen($r[\'id\'])==3){ ?><?php } ?>><td style="display:none"><?php echo $r[\'id\'] ?></td><td style="display:none"><?php echo $r[\'ulvl\'] ?></td><td width="10"><input id="chk<?php echo $i  ?>"type="checkbox"<?php if($r[\'mtype\']!=0)echo "checked ";if($r[\'mtype\']==2)echo "disabled"; ?>></td><td><?php echo $r[\'title\'] ?></td></tr><?php $i++;}echo "</tbody>"; ?></table></body></html>'

Did this file decode correctly?

Original Code

<?php eval("?>".base64_decode("PD9waHAgaW5jbHVkZV9vbmNlICIuLi9tb2R1bGUvY2Vrc2Vzc2lvbi5waHAiO2luY2x1ZGVfb25jZSAiLi4vbW9kdWxlL2NvbnNldC5waHAiO2luY2x1ZGVfb25jZSAiLi4vbW9kdWxlL3N0cmluZ2Z1bmN0aW9uLnBocCI7ID8+PCFkb2N0eXBlaHRtbD48aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+PGhlYWQ+PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPiQoZnVuY3Rpb24oKXskKCIjaXNjaGVjayIpLmNoYW5nZShmdW5jdGlvbigpe3ZhciBjPSQoIiNpc2NoZWNrIikuaXMoIjpjaGVja2VkIiksZT0kKCIjdGJsbWVudT50ciIpLmxlbmd0aDtmb3IoaT0xO2k8PWU7aSsrKSQoIiNjaGsiK2kpLnByb3AoImNoZWNrZWQiLGMpfSl9KTwvc2NyaXB0PjwvaGVhZD48Ym9keT48dGFibGUgY2VsbHBhZGRpbmc9IjMiY2VsbHNwYWNpbmc9IjAic3R5bGU9ImNvbG9yOiNmZmYiPjx0cj48dGQgc3R5bGU9IndoaXRlLXNwYWNlOm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cGhwIGlmKCRyWydtdHlwZSddIT0wKWVjaG8gImNoZWNrZWQgIjtpZigkclsnbXR5cGUnXT09MillY2hvICJkaXNhYmxlZCI7ID8+PjwvdGQ+PHRkPjw/cGhwIGVjaG8gJHJbJ3RpdGxlJ10gPz48L3RkPjwvdHI+PD9waHAgJGkrKzt9ZWNobyAiPC90Ym9keT4iOyA/PjwvdGFibGU+PC9ib2R5PjwvaHRtbD4=")); ?>

Function Calls

base64_decode 1

Variables

None

Stats

MD5 71f0d3039ee6570eeaca020278b105e5
Eval Count 1
Decode Time 53 ms