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 PhortuneMerchantListController extends PhortuneController { public..

Decoded Output download

<?php

final class PhortuneMerchantListController
  extends PhortuneController {

  public function handleRequest(AphrontRequest $request) {
    return id(new PhortuneMerchantSearchEngine())
      ->setController($this)
      ->buildResponse();
  }

  protected function buildApplicationCrumbs() {
    $crumbs = parent::buildApplicationCrumbs();

    $can_create = $this->hasApplicationCapability(
      PhortuneMerchantCapability::CAPABILITY);

    $crumbs->addAction(
      id(new PHUIListItemView())
        ->setName(pht('Create Merchant'))
        ->setHref($this->getApplicationURI('merchant/edit/'))
        ->setIcon('fa-plus-square')
        ->setWorkflow(!$can_create)
        ->setDisabled(!$can_create));

    return $crumbs;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhortuneMerchantListController
  extends PhortuneController {

  public function handleRequest(AphrontRequest $request) {
    return id(new PhortuneMerchantSearchEngine())
      ->setController($this)
      ->buildResponse();
  }

  protected function buildApplicationCrumbs() {
    $crumbs = parent::buildApplicationCrumbs();

    $can_create = $this->hasApplicationCapability(
      PhortuneMerchantCapability::CAPABILITY);

    $crumbs->addAction(
      id(new PHUIListItemView())
        ->setName(pht('Create Merchant'))
        ->setHref($this->getApplicationURI('merchant/edit/'))
        ->setIcon('fa-plus-square')
        ->setWorkflow(!$can_create)
        ->setDisabled(!$can_create));

    return $crumbs;
  }

}

Function Calls

None

Variables

None

Stats

MD5 4f7509817ceb9ac770ba31c3a27e6bd6
Eval Count 0
Decode Time 79 ms