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 PhabricatorChatLogChannelListController extends PhabricatorChatLogCon..

Decoded Output download

<?php

final class PhabricatorChatLogChannelListController
  extends PhabricatorChatLogController {

  public function shouldAllowPublic() {
    return true;
  }

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

    $channels = id(new PhabricatorChatLogChannelQuery())
      ->setViewer($viewer)
      ->execute();

    $list = new PHUIObjectItemListView();
    foreach ($channels as $channel) {
        $item = id(new PHUIObjectItemView())
          ->setHeader($channel->getChannelName())
          ->setHref('/chatlog/channel/'.$channel->getID().'/')
          ->addAttribute($channel->getServiceName())
          ->addAttribute($channel->getServiceType());
        $list->addItem($item);
    }

    $crumbs = $this
      ->buildApplicationCrumbs()
      ->addTextCrumb(pht('Channel List'), $this->getApplicationURI());

    $box = id(new PHUIObjectBoxView())
      ->setHeaderText('Channel List')
      ->setObjectList($list);

    return $this->newPage()
      ->setTitle(pht('Channel List'))
      ->setCrumbs($crumbs)
      ->appendChild($box);

  }
}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorChatLogChannelListController
  extends PhabricatorChatLogController {

  public function shouldAllowPublic() {
    return true;
  }

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

    $channels = id(new PhabricatorChatLogChannelQuery())
      ->setViewer($viewer)
      ->execute();

    $list = new PHUIObjectItemListView();
    foreach ($channels as $channel) {
        $item = id(new PHUIObjectItemView())
          ->setHeader($channel->getChannelName())
          ->setHref('/chatlog/channel/'.$channel->getID().'/')
          ->addAttribute($channel->getServiceName())
          ->addAttribute($channel->getServiceType());
        $list->addItem($item);
    }

    $crumbs = $this
      ->buildApplicationCrumbs()
      ->addTextCrumb(pht('Channel List'), $this->getApplicationURI());

    $box = id(new PHUIObjectBoxView())
      ->setHeaderText('Channel List')
      ->setObjectList($list);

    return $this->newPage()
      ->setTitle(pht('Channel List'))
      ->setCrumbs($crumbs)
      ->appendChild($box);

  }
}

Function Calls

None

Variables

None

Stats

MD5 6a640153e1b0ed9560075e35f2590d32
Eval Count 0
Decode Time 77 ms