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 NuanceSourceActionController extends NuanceController { public funct..

Decoded Output download

<?php

final class NuanceSourceActionController extends NuanceController {

  public function handleRequest(AphrontRequest $request) {
    $viewer = $this->getViewer();

    $source = id(new NuanceSourceQuery())
      ->setViewer($viewer)
      ->withIDs(array($request->getURIData('id')))
      ->executeOne();
    if (!$source) {
      return new Aphront404Response();
    }

    $def = $source->getDefinition();

    $def
      ->setViewer($viewer)
      ->setSource($source);

    $response = $def->handleActionRequest($request);
    if ($response instanceof AphrontResponse) {
      return $response;
    }

    $title = $source->getName();
    $crumbs = $this->buildApplicationCrumbs();
    $crumbs->addTextCrumb($title);

    return $this->newPage()
      ->setTitle($title)
      ->setCrumbs($crumbs)
      ->appendChild($response);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class NuanceSourceActionController extends NuanceController {

  public function handleRequest(AphrontRequest $request) {
    $viewer = $this->getViewer();

    $source = id(new NuanceSourceQuery())
      ->setViewer($viewer)
      ->withIDs(array($request->getURIData('id')))
      ->executeOne();
    if (!$source) {
      return new Aphront404Response();
    }

    $def = $source->getDefinition();

    $def
      ->setViewer($viewer)
      ->setSource($source);

    $response = $def->handleActionRequest($request);
    if ($response instanceof AphrontResponse) {
      return $response;
    }

    $title = $source->getName();
    $crumbs = $this->buildApplicationCrumbs();
    $crumbs->addTextCrumb($title);

    return $this->newPage()
      ->setTitle($title)
      ->setCrumbs($crumbs)
      ->appendChild($response);
  }

}

Function Calls

None

Variables

None

Stats

MD5 0238fd6c6f77343b0e4364b9b937656b
Eval Count 0
Decode Time 90 ms