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 goto E07a793e77; Ff9bccedcd: dee1160695: goto a65e214b10; eec8f35e23: tNUcvSZDvT(["..
Decoded Output download
<?php
goto E07a793e77; Ff9bccedcd: dee1160695: goto a65e214b10; eec8f35e23: tNUcvSZDvT(["status" => "error", "message" => "Instance ID Invalidated"]); goto B1ae87a638; C4b567acb9: $team_id = $team["id"]; goto B480039a36; A33529c1fa: $team = tNUcvSZDvO($db); goto C4b567acb9; f75bc75aa2: $webhook = $db->table("sp_whatsapp_webhook")->select("*")->where("instance_id", $instance_id)->where("team_id", $team_id)->get(); goto ca95f93b71; E8e71fb6bd: tNUcvSZDvT(["status" => "error", "message" => "Instance ID Invalidated"]); goto ccf2d39e46; B5e8bc1ce7: $webhook_url = isset($_GET["webhook_url"]) ? $_GET["webhook_url"] : false; goto A29613605b; ca95f93b71: if (empty($webhook)) { goto dee1160695; } goto cc261c620a; d3d530fb09: ffb513c4ff: goto Ceb841134b; cc261c620a: $db->table("sp_whatsapp_webhook")->update()->set("webhook_url", $webhook_url)->set("status", $status)->where("instance_id", $instance_id)->where("team_id", $team_id)->execute(); goto Dd21078349; Dd21078349: goto ffb513c4ff; goto Ff9bccedcd; a65e214b10: $db->table("sp_whatsapp_webhook")->insert([["ids" => ids(), "instance_id" => $instance_id, "team_id" => $team_id, "webhook_url" => $webhook_url, "status" => $status]])->execute(); goto d3d530fb09; B1ae87a638: a8211824e6: goto a5997a03d5; ccf2d39e46: edc5d3fba9: goto f75bc75aa2; D7d83c663f: tNUcvSZDvT(["status" => "error", "message" => "Webhook is not a valid URL"]); goto ff9f44e5c2; Ac912856c4: if (!empty($instance)) { goto edc5d3fba9; } goto E8e71fb6bd; C9c687a6ed: $status = isset($_GET["enable"]) && $_GET["enable"] == "true" ? 1 : 0; goto B5e8bc1ce7; ff9f44e5c2: Fb2c3131f6: goto B58d6558fa; E07a793e77: require_once "functions/helper.php"; goto c9a4384082; b36f187580: $instance_id = isset($_GET["instance_id"]) ? $_GET["instance_id"] : false; goto C9c687a6ed; c9a4384082: $db = tNUcvSZDvW(); goto A33529c1fa; B58d6558fa: $instance = $db->table("sp_whatsapp_sessions")->select("*")->where("instance_id", $instance_id)->where("team_id", $team_id)->get(); goto Ac912856c4; B480039a36: $team_ids = $team["ids"]; goto b36f187580; A29613605b: if ($instance_id) { goto a8211824e6; } goto eec8f35e23; a5997a03d5: if (filter_var($webhook_url, FILTER_VALIDATE_URL)) { goto Fb2c3131f6; } goto D7d83c663f; Ceb841134b: tNUcvSZDvT(["status" => "success", "message" => "Webhook URI Saved"]); ?>
Did this file decode correctly?
Original Code
<?php
goto E07a793e77; Ff9bccedcd: dee1160695: goto a65e214b10; eec8f35e23: tNUcvSZDvT(["\x73\164\141\x74\165\x73" => "\145\162\x72\x6f\162", "\x6d\145\x73\163\141\147\145" => "\x49\x6e\x73\x74\x61\x6e\143\145\x20\x49\x44\x20\x49\x6e\x76\141\x6c\151\x64\x61\164\x65\144"]); goto B1ae87a638; C4b567acb9: $team_id = $team["\151\x64"]; goto B480039a36; A33529c1fa: $team = tNUcvSZDvO($db); goto C4b567acb9; f75bc75aa2: $webhook = $db->table("\x73\x70\137\x77\150\x61\164\x73\x61\160\x70\137\x77\x65\142\150\x6f\x6f\x6b")->select("\52")->where("\151\156\163\x74\x61\156\143\145\x5f\x69\144", $instance_id)->where("\x74\145\141\x6d\x5f\151\144", $team_id)->get(); goto ca95f93b71; E8e71fb6bd: tNUcvSZDvT(["\x73\x74\x61\x74\165\x73" => "\145\x72\x72\x6f\x72", "\155\x65\163\163\141\147\145" => "\111\x6e\x73\164\x61\x6e\x63\145\40\111\104\x20\x49\x6e\166\141\x6c\151\x64\141\x74\x65\144"]); goto ccf2d39e46; B5e8bc1ce7: $webhook_url = isset($_GET["\167\x65\142\x68\157\x6f\x6b\137\x75\162\154"]) ? $_GET["\167\145\142\x68\157\157\153\137\165\x72\x6c"] : false; goto A29613605b; ca95f93b71: if (empty($webhook)) { goto dee1160695; } goto cc261c620a; d3d530fb09: ffb513c4ff: goto Ceb841134b; cc261c620a: $db->table("\163\160\137\167\150\141\x74\163\141\160\x70\x5f\167\145\142\150\157\x6f\x6b")->update()->set("\167\x65\142\x68\157\157\153\137\165\162\x6c", $webhook_url)->set("\x73\164\141\164\165\163", $status)->where("\151\156\x73\164\x61\156\x63\x65\137\151\x64", $instance_id)->where("\x74\x65\141\155\x5f\151\x64", $team_id)->execute(); goto Dd21078349; Dd21078349: goto ffb513c4ff; goto Ff9bccedcd; a65e214b10: $db->table("\x73\x70\137\x77\x68\141\164\x73\x61\x70\160\x5f\167\x65\142\150\157\x6f\153")->insert([["\151\x64\x73" => ids(), "\151\x6e\x73\x74\x61\156\143\145\x5f\151\x64" => $instance_id, "\164\145\x61\155\x5f\x69\x64" => $team_id, "\167\145\142\150\157\x6f\153\x5f\165\162\154" => $webhook_url, "\163\164\141\x74\165\x73" => $status]])->execute(); goto d3d530fb09; B1ae87a638: a8211824e6: goto a5997a03d5; ccf2d39e46: edc5d3fba9: goto f75bc75aa2; D7d83c663f: tNUcvSZDvT(["\x73\x74\x61\164\165\163" => "\x65\162\162\157\x72", "\155\145\163\x73\x61\147\145" => "\x57\x65\x62\x68\157\x6f\153\x20\x69\163\x20\156\157\x74\40\141\x20\x76\141\x6c\151\144\x20\x55\x52\x4c"]); goto ff9f44e5c2; Ac912856c4: if (!empty($instance)) { goto edc5d3fba9; } goto E8e71fb6bd; C9c687a6ed: $status = isset($_GET["\145\x6e\141\x62\x6c\145"]) && $_GET["\x65\x6e\x61\142\x6c\x65"] == "\x74\162\x75\145" ? 1 : 0; goto B5e8bc1ce7; ff9f44e5c2: Fb2c3131f6: goto B58d6558fa; E07a793e77: require_once "\146\165\156\x63\x74\x69\x6f\x6e\163\57\150\x65\154\160\145\162\56\x70\x68\160"; goto c9a4384082; b36f187580: $instance_id = isset($_GET["\x69\156\x73\x74\141\156\x63\x65\x5f\x69\x64"]) ? $_GET["\151\x6e\163\x74\x61\x6e\143\x65\137\151\144"] : false; goto C9c687a6ed; c9a4384082: $db = tNUcvSZDvW(); goto A33529c1fa; B58d6558fa: $instance = $db->table("\x73\x70\x5f\x77\x68\141\x74\x73\x61\160\160\x5f\x73\x65\x73\163\x69\157\x6e\163")->select("\52")->where("\x69\x6e\x73\x74\x61\x6e\x63\145\137\151\x64", $instance_id)->where("\x74\x65\141\x6d\x5f\151\x64", $team_id)->get(); goto Ac912856c4; B480039a36: $team_ids = $team["\x69\x64\163"]; goto b36f187580; A29613605b: if ($instance_id) { goto a8211824e6; } goto eec8f35e23; a5997a03d5: if (filter_var($webhook_url, FILTER_VALIDATE_URL)) { goto Fb2c3131f6; } goto D7d83c663f; Ceb841134b: tNUcvSZDvT(["\x73\x74\141\x74\x75\x73" => "\163\x75\x63\143\145\163\163", "\155\145\163\163\x61\x67\145" => "\127\145\142\x68\157\x6f\153\x20\125\x52\x49\x20\123\x61\166\x65\144"]);
Function Calls
None |
Stats
MD5 | 7301b164a8fac0032fa35ded6f0d29c3 |
Eval Count | 0 |
Decode Time | 52 ms |