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 final class PhabricatorAuthMessageEditController extends PhabricatorAuthMessageCo..

Decoded Output download

<?php

final class PhabricatorAuthMessageEditController
  extends PhabricatorAuthMessageController {

  public function handleRequest(AphrontRequest $request) {
    $this->requireApplicationCapability(
      AuthManageProvidersCapability::CAPABILITY);

    $engine = id(new PhabricatorAuthMessageEditEngine())
      ->setController($this);

    $id = $request->getURIData('id');
    if (!$id) {
      $message_key = $request->getStr('messageKey');

      $message_types = PhabricatorAuthMessageType::getAllMessageTypes();
      $message_type = idx($message_types, $message_key);
      if (!$message_type) {
        return new Aphront404Response();
      }

      $engine
        ->addContextParameter('messageKey', $message_key)
        ->setMessageType($message_type);
    }

    return $engine->buildResponse();
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorAuthMessageEditController
  extends PhabricatorAuthMessageController {

  public function handleRequest(AphrontRequest $request) {
    $this->requireApplicationCapability(
      AuthManageProvidersCapability::CAPABILITY);

    $engine = id(new PhabricatorAuthMessageEditEngine())
      ->setController($this);

    $id = $request->getURIData('id');
    if (!$id) {
      $message_key = $request->getStr('messageKey');

      $message_types = PhabricatorAuthMessageType::getAllMessageTypes();
      $message_type = idx($message_types, $message_key);
      if (!$message_type) {
        return new Aphront404Response();
      }

      $engine
        ->addContextParameter('messageKey', $message_key)
        ->setMessageType($message_type);
    }

    return $engine->buildResponse();
  }

}

Function Calls

None

Variables

None

Stats

MD5 245d1e63b77cf0535e70723728fe1ac8
Eval Count 0
Decode Time 117 ms