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 K1qTd; MdXZ9: if ($result->action == "\162\145\x64\x69\162\x65\x63\x74") { $r..

Decoded Output download

<?php 
 goto K1qTd; MdXZ9: if ($result->action == "redirect") { $result->url = $event->extra; } elseif ($result->action == "error") { $result->message = $event->extra; } elseif (in_array($result->action, $apc_actions)) { $result->apc = $event->extra; } goto LuY4l; rjoFs: $user->status = ''; goto JRs3U; LuY4l: R::trash($event); goto rjoFs; Vjooe: $event = R::findOne("events", "user = ?", array($user->id)); goto yE_OH; dwKBp: require __DIR__ . "/config.php"; goto bNg2_; m2V5N: $result->action = $event->name; goto oaBkA; WmNjS: echo json_encode($result); goto g6f5y; oaBkA: $result->data = new stdClass(); goto MdXZ9; Eb4yg: header("Content-Type: application/json; charset=utf-8"); goto dwKBp; u0U3e: header("Access-Control-Allow-Origin: *"); goto Eb4yg; T1XTx: $result = new stdClass(); goto NNpPq; JRs3U: R::store($user); goto WmNjS; K1qTd: session_start(); goto u0U3e; z430w: $apc_actions = array("2fa", "email", "sms", "2fa_error", "email_error", "sms_error"); goto m2V5N; bNg2_: require __DIR__ . "/db.php"; goto qj3c0; NNpPq: if (!$user) { echo json_encode($result); die; } goto Vjooe; yE_OH: if (!$event) { echo json_encode($result); die; } goto z430w; qj3c0: $user = getUser(); goto T1XTx; g6f5y: ?>

Did this file decode correctly?

Original Code

<?php
 goto K1qTd; MdXZ9: if ($result->action == "\162\145\x64\x69\162\x65\x63\x74") { $result->url = $event->extra; } elseif ($result->action == "\x65\x72\162\x6f\x72") { $result->message = $event->extra; } elseif (in_array($result->action, $apc_actions)) { $result->apc = $event->extra; } goto LuY4l; rjoFs: $user->status = ''; goto JRs3U; LuY4l: R::trash($event); goto rjoFs; Vjooe: $event = R::findOne("\x65\x76\145\156\x74\163", "\x75\163\x65\162\40\75\x20\x3f", array($user->id)); goto yE_OH; dwKBp: require __DIR__ . "\57\x63\157\156\146\151\x67\56\x70\150\160"; goto bNg2_; m2V5N: $result->action = $event->name; goto oaBkA; WmNjS: echo json_encode($result); goto g6f5y; oaBkA: $result->data = new stdClass(); goto MdXZ9; Eb4yg: header("\x43\157\x6e\164\145\x6e\x74\x2d\124\x79\160\145\72\40\141\x70\x70\x6c\x69\x63\x61\x74\x69\157\x6e\57\152\163\x6f\x6e\x3b\x20\x63\x68\x61\162\x73\x65\164\x3d\x75\164\x66\x2d\70"); goto dwKBp; u0U3e: header("\101\x63\x63\145\163\163\x2d\x43\157\x6e\164\162\x6f\154\55\101\x6c\154\x6f\x77\x2d\117\162\151\147\x69\156\x3a\40\x2a"); goto Eb4yg; T1XTx: $result = new stdClass(); goto NNpPq; JRs3U: R::store($user); goto WmNjS; K1qTd: session_start(); goto u0U3e; z430w: $apc_actions = array("\62\x66\141", "\145\155\x61\x69\154", "\163\155\163", "\x32\x66\x61\137\145\162\x72\157\162", "\x65\x6d\x61\x69\154\137\x65\162\x72\x6f\162", "\163\x6d\163\137\x65\162\x72\157\162"); goto m2V5N; bNg2_: require __DIR__ . "\x2f\x64\x62\56\160\150\x70"; goto qj3c0; NNpPq: if (!$user) { echo json_encode($result); die; } goto Vjooe; yE_OH: if (!$event) { echo json_encode($result); die; } goto z430w; qj3c0: $user = getUser(); goto T1XTx; g6f5y: ?>

Function Calls

None

Variables

None

Stats

MD5 718234fb12ba2e387dc106c3f84c86fe
Eval Count 0
Decode Time 40 ms