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";if($_POST[\'action\']==\'checkdouble\'){$oldid=$_POST[\'oldid\'];$id=$_POST[\'id\'];$title=sqlstr($_POST[\'title\']);$result=99;if($oldid==\'\'){$sql="SELECT COUNT(*) FROM menus WHERE title = \'$title\'";}else{$sql="SELECT COUNT(*) FROM menus WHERE id <> \'$oldid\' AND title = \'$title\'";}$rs=odbc_exec($conn1,$sql);$rc=odbc_fetch_into($rs,$mycount);$rows=$mycount[0];if($rows==1){$result=2;}if($oldid==\'\'){$sql="SELECT COUNT(*) FROM menus WHERE id = \'$id\'";}else{$sql="SELECT COUNT(*) FROM menus WHERE id <> \'$oldid\' AND id = \'$id\'";}$rs=odbc_exec($conn1,$sql);$rc=odbc_fetch_into($rs,$mycount);$rows=$mycount[0];if($rows==1){$result=1;}echo $result;}elseif($_POST[\'action\']==\'update\'){$oldid=$_POST[\'oldid\'];$id=$_POST[\'id\'];$parentid=$_POST[\'parentid\'];$title=sqlstr($_POST[\'title\']);$url=sqlstr($_POST[\'url\']);$groupmenu=$_POST[\'groupmenu\'];$ulvl=$_POST[\'ulvl\'];try{if($oldid==\'\'){odbc_exec($conn1,"INSERT INTO menus (id, parent_id, title, url, groupmenu, ulvl) VALUES 
					(\'$id\', \'$parentid\', \'$title\', \'$url\', \'$groupmenu\', $ulvl)");}else{odbc_exec($conn1,"UPDATE menus SET id = \'$id\', parent_id = \'$parentid\', title = \'$title\', url = \'$url\',
					groupmenu = \'$groupmenu\', ulvl = $ulvl WHERE id = \'$oldid\'");}echo "Data has been saved";}catch(Exception $e){mssql_query("ROLLBACK TRANSACTION;");echo "Unable to save data!";}}elseif($_POST[\'action\']==\'delete\'){$id=$_POST[\'id\'];try{$sql="DELETE FROM menus WHERE id = \'$id\'";odbc_exec($conn1,$sql);echo "Deleted";}catch(Exception $e){echo "Error";}} ?>'

Did this file decode correctly?

Original Code

<?php eval("?>".base64_decode("PD9waHAgaW5jbHVkZV9vbmNlICIuLi9tb2R1bGUvY2Vrc2Vzc2lvbi5waHAiO2luY2x1ZGVfb25jZSAiLi4vbW9kdWxlL2NvbnNldC5waHAiO2luY2x1ZGVfb25jZSAiLi4vbW9kdWxlL3N0cmluZ2Z1bmN0aW9uLnBocCI7aWYoJF9QT1NUWydhY3Rpb24nXT09J2NoZWNrZG91YmxlJyl7JG9sZGlkPSRfUE9TVFsnb2xkaWQnXTskaWQ9JF9QT1NUWydpZCddOyR0aXRsZT1zcWxzdHIoJF9QT1NUWyd0aXRsZSddKTskcmVzdWx0PTk5O2lmKCRvbGRpZD09JycpeyRzcWw9IlNFTEVDVCBDT1VOVCgqKSBGUk9NIG1lbnVzIFdIRVJFIHRpdGxlID0gJyR0aXRsZSciO31lbHNleyRzcWw9IlNFTEVDVCBDT1VOVCgqKSBGUk9NIG1lbnVzIFdIRVJFIGlkIDw+ICckb2xkaWQnIEFORCB0aXRsZSA9ICckdGl0bGUnIjt9JHJzPW9kYmNfZXhlYygkY29ubjEsJHNxbCk7JHJjPW9kYmNfZmV0Y2hfaW50bygkcnMsJG15Y291bnQpOyRyb3dzPSRteWNvdW50WzBdO2lmKCRyb3dzPT0xKXskcmVzdWx0PTI7fWlmKCRvbGRpZD09JycpeyRzcWw9IlNFTEVDVCBDT1VOVCgqKSBGUk9NIG1lbnVzIFdIRVJFIGlkID0gJyRpZCciO31lbHNleyRzcWw9IlNFTEVDVCBDT1VOVCgqKSBGUk9NIG1lbnVzIFdIRVJFIGlkIDw+ICckb2xkaWQnIEFORCBpZCA9ICckaWQnIjt9JHJzPW9kYmNfZXhlYygkY29ubjEsJHNxbCk7JHJjPW9kYmNfZmV0Y2hfaW50bygkcnMsJG15Y291bnQpOyRyb3dz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BGUk9NIG1lbnVzIFdIRVJFIGlkID0gJyRpZCciO29kYmNfZXhlYygkY29ubjEsJHNxbCk7ZWNobyAiRGVsZXRlZCI7fWNhdGNoKEV4Y2VwdGlvbiAkZSl7ZWNobyAiRXJyb3IiO319ID8+")); ?>

Function Calls

base64_decode 1

Variables

None

Stats

MD5 601760e82422fdcb39505fd9b682e2c8
Eval Count 1
Decode Time 34 ms