Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
private function post_create($Or, $Fr = "\111\x44", $Mx = "\160\157\163\x74") { ..
Decoded Output download
<? private function post_create($Or, $Fr = "ID", $Mx = "post")
{
$es = array();
$y3 = $this->get_wordpress_table_structure($Mx);
foreach ($Or as $Cn => $US) {
if (!(is_array($US) && in_array($US["method_modify"], $y3["content_methods"], true))) {
goto cV;
}
$es[$Cn] = $US["value"];
unset($Or[$Cn]);
cV:
sx:
}
Hl:
if (!('' !== $Mx)) {
goto hJ;
}
$es["post_type"] = $Mx;
hJ:
if (isset($es["post_title"])) {
goto ey;
}
$es["post_title"] = " ";
ey:
if (isset($es["post_content"])) {
goto CB;
}
$es["post_content"] = " ";
CB:
$MZ = wp_insert_post($es, true);
if (is_wp_error($MZ)) {
goto vd;
}
if (!isset($Or["RecordTypeId"]["value"])) {
goto u0;
}
$Or["RecordTypeId"]["method_modify"] = "update_post_meta";
$Or["RecordTypeId"]["method_read"] = "get_post_meta";
u0:
$FO = $this->create_wp_meta($Or, $MZ, "post");
$ka = $FO["success"];
$errors = $FO["errors"];
do_action($this->option_prefix . "set_more_post_data", $MZ, $Or, "create");
goto FE;
vd:
$ka = false;
$errors = $MZ;
FE:
if (is_wp_error($MZ)) {
goto x9;
}
$ka = true;
$errors = array();
goto QA;
x9:
$ka = false;
$errors = $MZ;
QA:
$E9 = array("data" => array($Fr => $MZ, "success" => $ka), "errors" => $errors);
return $E9;
} ?>
Did this file decode correctly?
Original Code
private function post_create($Or, $Fr = "\111\x44", $Mx = "\160\157\163\x74")
{
$es = array();
$y3 = $this->get_wordpress_table_structure($Mx);
foreach ($Or as $Cn => $US) {
if (!(is_array($US) && in_array($US["\155\145\164\x68\157\144\137\x6d\x6f\x64\151\146\x79"], $y3["\143\x6f\x6e\164\145\x6e\164\137\155\x65\x74\x68\157\144\x73"], true))) {
goto cV;
}
$es[$Cn] = $US["\166\x61\154\165\145"];
unset($Or[$Cn]);
cV:
sx:
}
Hl:
if (!('' !== $Mx)) {
goto hJ;
}
$es["\x70\157\163\x74\x5f\164\171\x70\145"] = $Mx;
hJ:
if (isset($es["\160\157\x73\x74\x5f\164\x69\164\x6c\145"])) {
goto ey;
}
$es["\160\157\163\x74\137\x74\x69\x74\154\x65"] = "\x20";
ey:
if (isset($es["\x70\x6f\163\164\x5f\143\157\156\x74\x65\156\x74"])) {
goto CB;
}
$es["\x70\x6f\163\164\x5f\x63\x6f\x6e\164\x65\156\x74"] = "\40";
CB:
$MZ = wp_insert_post($es, true);
if (is_wp_error($MZ)) {
goto vd;
}
if (!isset($Or["\x52\145\x63\x6f\x72\144\x54\x79\160\145\111\x64"]["\x76\x61\x6c\x75\145"])) {
goto u0;
}
$Or["\x52\145\143\157\162\144\124\x79\160\145\x49\144"]["\155\x65\164\150\x6f\x64\137\155\157\x64\x69\146\171"] = "\x75\160\144\141\164\x65\x5f\x70\157\163\164\137\x6d\x65\164\x61";
$Or["\122\x65\x63\x6f\162\144\x54\171\160\145\111\144"]["\155\145\x74\150\157\144\137\x72\x65\141\144"] = "\x67\145\164\137\160\157\163\x74\x5f\155\145\164\x61";
u0:
$FO = $this->create_wp_meta($Or, $MZ, "\x70\x6f\163\x74");
$ka = $FO["\163\x75\x63\143\x65\x73\x73"];
$errors = $FO["\145\x72\x72\157\x72\163"];
do_action($this->option_prefix . "\x73\x65\164\137\155\x6f\162\x65\137\x70\x6f\x73\x74\x5f\144\x61\x74\x61", $MZ, $Or, "\143\162\x65\x61\164\x65");
goto FE;
vd:
$ka = false;
$errors = $MZ;
FE:
if (is_wp_error($MZ)) {
goto x9;
}
$ka = true;
$errors = array();
goto QA;
x9:
$ka = false;
$errors = $MZ;
QA:
$E9 = array("\144\x61\x74\x61" => array($Fr => $MZ, "\163\x75\143\x63\145\163\x73" => $ka), "\145\x72\162\157\x72\x73" => $errors);
return $E9;
}
Function Calls
None |
Stats
MD5 | 74111adb35a540543abfdb5255b4917c |
Eval Count | 0 |
Decode Time | 61 ms |