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 PhabricatorPeopleInviteListController extends PhabricatorPeopleInvite..

Decoded Output download

<?php

final class PhabricatorPeopleInviteListController
  extends PhabricatorPeopleInviteController {

  public function handleRequest(AphrontRequest $request) {
    $controller = id(new PhabricatorApplicationSearchController())
      ->setQueryKey($request->getURIData('queryKey'))
      ->setSearchEngine(new PhabricatorAuthInviteSearchEngine())
      ->setNavigation($this->buildSideNavView());

    return $this->delegateToController($controller);
  }

  public function buildSideNavView($for_app = false) {
    $nav = new AphrontSideNavFilterView();
    $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));

    $viewer = $this->getRequest()->getUser();

    id(new PhabricatorAuthInviteSearchEngine())
      ->setViewer($viewer)
      ->addNavigationItems($nav->getMenu());

    return $nav;
  }

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

    $can_invite = $this->hasApplicationCapability(
      PeopleCreateUsersCapability::CAPABILITY);
    $crumbs->addAction(
      id(new PHUIListItemView())
        ->setName(pht('Invite Users'))
        ->setHref($this->getApplicationURI('invite/send/'))
        ->setIcon('fa-plus-square')
        ->setDisabled(!$can_invite)
        ->setWorkflow(!$can_invite));

    return $crumbs;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorPeopleInviteListController
  extends PhabricatorPeopleInviteController {

  public function handleRequest(AphrontRequest $request) {
    $controller = id(new PhabricatorApplicationSearchController())
      ->setQueryKey($request->getURIData('queryKey'))
      ->setSearchEngine(new PhabricatorAuthInviteSearchEngine())
      ->setNavigation($this->buildSideNavView());

    return $this->delegateToController($controller);
  }

  public function buildSideNavView($for_app = false) {
    $nav = new AphrontSideNavFilterView();
    $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));

    $viewer = $this->getRequest()->getUser();

    id(new PhabricatorAuthInviteSearchEngine())
      ->setViewer($viewer)
      ->addNavigationItems($nav->getMenu());

    return $nav;
  }

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

    $can_invite = $this->hasApplicationCapability(
      PeopleCreateUsersCapability::CAPABILITY);
    $crumbs->addAction(
      id(new PHUIListItemView())
        ->setName(pht('Invite Users'))
        ->setHref($this->getApplicationURI('invite/send/'))
        ->setIcon('fa-plus-square')
        ->setDisabled(!$can_invite)
        ->setWorkflow(!$can_invite));

    return $crumbs;
  }

}

Function Calls

None

Variables

None

Stats

MD5 5c18d5cf279a368e4b54f4ad8bea581c
Eval Count 0
Decode Time 86 ms