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 HarbormasterBuildableListController extends HarbormasterController { ..

Decoded Output download

<?php

final class HarbormasterBuildableListController extends HarbormasterController {

  public function shouldAllowPublic() {
    return true;
  }

  public function handleRequest(AphrontRequest $request) {
    $items = array();

    $items[] = id(new PHUIListItemView())
      ->setType(PHUIListItemView::TYPE_LABEL)
      ->setName(pht('Builds'));

    $items[] = id(new PHUIListItemView())
      ->setType(PHUIListItemView::TYPE_LINK)
      ->setName(pht('Browse Builds'))
      ->setHref($this->getApplicationURI('build/'));

    $items[] = id(new PHUIListItemView())
      ->setType(PHUIListItemView::TYPE_LABEL)
      ->setName(pht('Build Plans'));

    $items[] = id(new PHUIListItemView())
      ->setType(PHUIListItemView::TYPE_LINK)
      ->setName(pht('Manage Build Plans'))
      ->setHref($this->getApplicationURI('plan/'));

    return id(new HarbormasterBuildableSearchEngine())
      ->setController($this)
      ->setNavigationItems($items)
      ->buildResponse();
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class HarbormasterBuildableListController extends HarbormasterController {

  public function shouldAllowPublic() {
    return true;
  }

  public function handleRequest(AphrontRequest $request) {
    $items = array();

    $items[] = id(new PHUIListItemView())
      ->setType(PHUIListItemView::TYPE_LABEL)
      ->setName(pht('Builds'));

    $items[] = id(new PHUIListItemView())
      ->setType(PHUIListItemView::TYPE_LINK)
      ->setName(pht('Browse Builds'))
      ->setHref($this->getApplicationURI('build/'));

    $items[] = id(new PHUIListItemView())
      ->setType(PHUIListItemView::TYPE_LABEL)
      ->setName(pht('Build Plans'));

    $items[] = id(new PHUIListItemView())
      ->setType(PHUIListItemView::TYPE_LINK)
      ->setName(pht('Manage Build Plans'))
      ->setHref($this->getApplicationURI('plan/'));

    return id(new HarbormasterBuildableSearchEngine())
      ->setController($this)
      ->setNavigationItems($items)
      ->buildResponse();
  }

}

Function Calls

None

Variables

None

Stats

MD5 83b6fd2eefb9c94f9d2baff727fb1679
Eval Count 0
Decode Time 86 ms