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 abstract class PhabricatorConfigController extends PhabricatorController { publi..

Decoded Output download

<?php

abstract class PhabricatorConfigController extends PhabricatorController {

  public function shouldRequireAdmin() {
    return true;
  }

  public function buildHeaderView($text, $action = null) {
    $viewer = $this->getViewer();

    $file = PhabricatorFile::loadBuiltin($viewer, 'projects/v3/manage.png');
    $image = $file->getBestURI($file);
    $header = id(new PHUIHeaderView())
      ->setHeader($text)
      ->setProfileHeader(true)
      ->setImage($image);

    if ($action) {
      $header->addActionLink($action);
    }

    return $header;
  }

  public function buildConfigBoxView($title, $content, $action = null) {
    $header = id(new PHUIHeaderView())
      ->setHeader($title);

    if ($action) {
      $header->addActionItem($action);
    }

    $view = id(new PHUIObjectBoxView())
      ->setHeader($header)
      ->appendChild($content)
      ->setBackground(PHUIObjectBoxView::WHITE_CONFIG);

    return $view;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

abstract class PhabricatorConfigController extends PhabricatorController {

  public function shouldRequireAdmin() {
    return true;
  }

  public function buildHeaderView($text, $action = null) {
    $viewer = $this->getViewer();

    $file = PhabricatorFile::loadBuiltin($viewer, 'projects/v3/manage.png');
    $image = $file->getBestURI($file);
    $header = id(new PHUIHeaderView())
      ->setHeader($text)
      ->setProfileHeader(true)
      ->setImage($image);

    if ($action) {
      $header->addActionLink($action);
    }

    return $header;
  }

  public function buildConfigBoxView($title, $content, $action = null) {
    $header = id(new PHUIHeaderView())
      ->setHeader($title);

    if ($action) {
      $header->addActionItem($action);
    }

    $view = id(new PHUIObjectBoxView())
      ->setHeader($header)
      ->appendChild($content)
      ->setBackground(PHUIObjectBoxView::WHITE_CONFIG);

    return $view;
  }

}

Function Calls

None

Variables

None

Stats

MD5 bbc277786a403b3d996b525fe15ad1d5
Eval Count 0
Decode Time 91 ms