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 session_start();if(!isset($_SESSION[base64_decode('dXNlcl9sb2dnZWRpbg==')])||$_SESSI..
Decoded Output download
<?php session_start();if(!isset($_SESSION[base64_decode('dXNlcl9sb2dnZWRpbg==')])||$_SESSION[base64_decode('dXNlcl9sb2dnZWRpbg==')]!==true){header(base64_decode('TG9jYXRpb246IC91c2VyLWxvZ2luLnBocA=='));exit();}require base64_decode('ZGJfY29ubmVjdGlvbi5waHA=');if($_SERVER[base64_decode('UkVRVUVTVF9NRVRIT0Q=')]===base64_decode('R0VU')&&isset($_GET[base64_decode('YmlsbF9udW1iZXI=')])){$m0=$_GET[base64_decode('YmlsbF9udW1iZXI=')];$x1=$_SESSION[base64_decode('dXNlcl9pZA==')];if(empty($m0)){echo base64_decode('PHAgY2xhc3M9Im5vLXJlY29yZHMiPk5vIGJpbGwgbnVtYmVyIHByb3ZpZGVkLjwvcD4=');exit();}$d2=$l3->u4(base64_decode('U0VMRUNUIGlkLCBiaWxsX251bWJlciwgb3JkZXJfdHlwZSwgcGF5bWVudF9tZXRob2QsIHRvdGFsX2Ftb3VudCwgdG90YWxfdGF4LCB0b3RhbF9wYXlhYmxlLCBkYXRlX3RpbWUgRlJPTSBzZWxsaW5nX3JlcG9ydCBXSEVSRSBiaWxsX251bWJlciBMSUtFID8gQU5EIHVzZXJfaWQgPSA/'));if($d2===false){echo base64_decode('RXJyb3IgcHJlcGFyaW5nIHN0YXRlbWVudDog').htmlspecialchars($l3->$r5);exit();}$y6=base64_decode('JQ==').$m0.base64_decode('JQ==');$d2->w7(base64_decode('c2k='),$y6,$x1);if(!$d2->x8()){echo base64_decode('RXJyb3IgZXhlY3V0aW5nIHN0YXRlbWVudDog').htmlspecialchars($d2->$r5);exit();}$j9=$d2->aa();if($j9===false){echo base64_decode('RXJyb3IgZ2V0dGluZyByZXN1bHQ6IA==').htmlspecialchars($d2->$r5);exit();}if($j9->$wb>0){echo base64_decode('PHRhYmxlPg0KICAgICAgICAgICAgICAgIDx0aGVhZD4NCiAgICAgICAgICAgICAgICAgICAgPHRyPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRoPkJpbGwgTnVtYmVyPC90aD4NCiAgICAgICAgICAgICAgICAgICAgICAgIDx0aD5PcmRlciBUeXBlPC90aD4NCiAgICAgICAgICAgICAgICAgICAgICAgIDx0aD5QYXltZW50IE1ldGhvZDwvdGg+DQogICAgICAgICAgICAgICAgICAgICAgICA8dGg+VG90YWwgQW1vdW50PC90aD4NCiAgICAgICAgICAgICAgICAgICAgICAgIDx0aD5Ub3RhbCBUYXg8L3RoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRoPlRvdGFsIFBheWFibGU8L3RoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRoPkRhdGUgYW5kIFRpbWU8L3RoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRoPkFjdGlvbjwvdGg+DQogICAgICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgPC90aGVhZD4NCiAgICAgICAgICAgICAgICA8dGJvZHk+');while($sc=$j9->wd()){echo base64_decode('PHRyPg0KICAgICAgICAgICAgICAgICAgICA8dGQ+').htmlspecialchars($sc[base64_decode('YmlsbF9udW1iZXI=')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('b3JkZXJfdHlwZQ==')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('cGF5bWVudF9tZXRob2Q=')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('dG90YWxfYW1vdW50')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('dG90YWxfdGF4')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('dG90YWxfcGF5YWJsZQ==')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('ZGF0ZV90aW1l')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg0KICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiBjbGFzcz0iZGVsZXRlLWJ0biIgb25jbGljaz0iZGVsZXRlUmVjb3JkKA==').htmlspecialchars($sc[base64_decode('aWQ=')]).base64_decode('KSI+RGVsZXRlPC9idXR0b24+DQogICAgICAgICAgICAgICAgICAgICAgICA8YSBocmVmPSJyZXByaW50X2JpbGwucGhwP2JpbGxfbnVtYmVyPQ==').htmlspecialchars($sc[base64_decode('YmlsbF9udW1iZXI=')]).base64_decode('Ij5SZXByaW50PC9hPg0KICAgICAgICAgICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAgIDwvdHI+');}echo base64_decode('PC90Ym9keT48L3RhYmxlPg==');}else{echo base64_decode('PHAgY2xhc3M9Im5vLXJlY29yZHMiPk5vIHJlY29yZHMgZm91bmQ8L3A+');}$d2->ae();$l3->ae();}else{echo base64_decode('PHAgY2xhc3M9Im5vLXJlY29yZHMiPkludmFsaWQgcmVxdWVzdDwvcD4=');}?>
<script>
function deleteRecord(id) {
if (confirm('Are you sure you want to delete this record?')) {
const xhr = new XMLHttpRequest();
xhr.open('POST', 'delete_record.php', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function() {
if (this.status === 200) {
alert(this.responseText);
location.reload(); // Reload the page to refresh the table
} else {
alert('Error deleting record.');
}
};
xhr.send('id=' + encodeURIComponent(id));
}
}
</script>
Did this file decode correctly?
Original Code
<?php session_start();if(!isset($_SESSION[base64_decode('dXNlcl9sb2dnZWRpbg==')])||$_SESSION[base64_decode('dXNlcl9sb2dnZWRpbg==')]!==true){header(base64_decode('TG9jYXRpb246IC91c2VyLWxvZ2luLnBocA=='));exit();}require base64_decode('ZGJfY29ubmVjdGlvbi5waHA=');if($_SERVER[base64_decode('UkVRVUVTVF9NRVRIT0Q=')]===base64_decode('R0VU')&&isset($_GET[base64_decode('YmlsbF9udW1iZXI=')])){$m0=$_GET[base64_decode('YmlsbF9udW1iZXI=')];$x1=$_SESSION[base64_decode('dXNlcl9pZA==')];if(empty($m0)){echo base64_decode('PHAgY2xhc3M9Im5vLXJlY29yZHMiPk5vIGJpbGwgbnVtYmVyIHByb3ZpZGVkLjwvcD4=');exit();}$d2=$l3->u4(base64_decode('U0VMRUNUIGlkLCBiaWxsX251bWJlciwgb3JkZXJfdHlwZSwgcGF5bWVudF9tZXRob2QsIHRvdGFsX2Ftb3VudCwgdG90YWxfdGF4LCB0b3RhbF9wYXlhYmxlLCBkYXRlX3RpbWUgRlJPTSBzZWxsaW5nX3JlcG9ydCBXSEVSRSBiaWxsX251bWJlciBMSUtFID8gQU5EIHVzZXJfaWQgPSA/'));if($d2===false){echo base64_decode('RXJyb3IgcHJlcGFyaW5nIHN0YXRlbWVudDog').htmlspecialchars($l3->$r5);exit();}$y6=base64_decode('JQ==').$m0.base64_decode('JQ==');$d2->w7(base64_decode('c2k='),$y6,$x1);if(!$d2->x8()){echo base64_decode('RXJyb3IgZXhlY3V0aW5nIHN0YXRlbWVudDog').htmlspecialchars($d2->$r5);exit();}$j9=$d2->aa();if($j9===false){echo base64_decode('RXJyb3IgZ2V0dGluZyByZXN1bHQ6IA==').htmlspecialchars($d2->$r5);exit();}if($j9->$wb>0){echo base64_decode('PHRhYmxlPg0KICAgICAgICAgICAgICAgIDx0aGVhZD4NCiAgICAgICAgICAgICAgICAgICAgPHRyPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRoPkJpbGwgTnVtYmVyPC90aD4NCiAgICAgICAgICAgICAgICAgICAgICAgIDx0aD5PcmRlciBUeXBlPC90aD4NCiAgICAgICAgICAgICAgICAgICAgICAgIDx0aD5QYXltZW50IE1ldGhvZDwvdGg+DQogICAgICAgICAgICAgICAgICAgICAgICA8dGg+VG90YWwgQW1vdW50PC90aD4NCiAgICAgICAgICAgICAgICAgICAgICAgIDx0aD5Ub3RhbCBUYXg8L3RoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRoPlRvdGFsIFBheWFibGU8L3RoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRoPkRhdGUgYW5kIFRpbWU8L3RoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRoPkFjdGlvbjwvdGg+DQogICAgICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgPC90aGVhZD4NCiAgICAgICAgICAgICAgICA8dGJvZHk+');while($sc=$j9->wd()){echo base64_decode('PHRyPg0KICAgICAgICAgICAgICAgICAgICA8dGQ+').htmlspecialchars($sc[base64_decode('YmlsbF9udW1iZXI=')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('b3JkZXJfdHlwZQ==')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('cGF5bWVudF9tZXRob2Q=')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('dG90YWxfYW1vdW50')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('dG90YWxfdGF4')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('dG90YWxfcGF5YWJsZQ==')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg==').htmlspecialchars($sc[base64_decode('ZGF0ZV90aW1l')]).base64_decode('PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkPg0KICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiBjbGFzcz0iZGVsZXRlLWJ0biIgb25jbGljaz0iZGVsZXRlUmVjb3JkKA==').htmlspecialchars($sc[base64_decode('aWQ=')]).base64_decode('KSI+RGVsZXRlPC9idXR0b24+DQogICAgICAgICAgICAgICAgICAgICAgICA8YSBocmVmPSJyZXByaW50X2JpbGwucGhwP2JpbGxfbnVtYmVyPQ==').htmlspecialchars($sc[base64_decode('YmlsbF9udW1iZXI=')]).base64_decode('Ij5SZXByaW50PC9hPg0KICAgICAgICAgICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAgIDwvdHI+');}echo base64_decode('PC90Ym9keT48L3RhYmxlPg==');}else{echo base64_decode('PHAgY2xhc3M9Im5vLXJlY29yZHMiPk5vIHJlY29yZHMgZm91bmQ8L3A+');}$d2->ae();$l3->ae();}else{echo base64_decode('PHAgY2xhc3M9Im5vLXJlY29yZHMiPkludmFsaWQgcmVxdWVzdDwvcD4=');}?>
<script>
function deleteRecord(id) {
if (confirm('Are you sure you want to delete this record?')) {
const xhr = new XMLHttpRequest();
xhr.open('POST', 'delete_record.php', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function() {
if (this.status === 200) {
alert(this.responseText);
location.reload(); // Reload the page to refresh the table
} else {
alert('Error deleting record.');
}
};
xhr.send('id=' + encodeURIComponent(id));
}
}
</script>
Function Calls
header | 1 |
base64_decode | 3 |
session_start | 1 |
Stats
MD5 | 68957455ca8efad1c433c4a0f643b73b |
Eval Count | 0 |
Decode Time | 124 ms |