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 PhabricatorPhrictionApplication extends PhabricatorApplication { pub..

Decoded Output download

<?php

final class PhabricatorPhrictionApplication extends PhabricatorApplication {

  public function getName() {
    return pht('Phriction');
  }

  public function getShortDescription() {
    return pht('Wiki Documents');
  }

  public function getBaseURI() {
    return '/w/';
  }

  public function getIcon() {
    return 'fa-book';
  }

  public function isPinnedByDefault(PhabricatorUser $viewer) {
    return true;
  }

  public function getHelpDocumentationArticles(PhabricatorUser $viewer) {
    return array(
      array(
        'name' => pht('Phriction User Guide'),
        'href' => PhabricatorEnv::getDoclink('Phriction User Guide'),
      ),
    );
  }

  public function getTitleGlyph() {
    return "";
  }

  public function getRemarkupRules() {
    return array(
      new PhrictionRemarkupRule(),
    );
  }

  public function getRoutes() {
    return array(
      // Match "/w/" with slug "/".
      '/w(?P<slug>/)'    => 'PhrictionDocumentController',
      // Match "/w/x/y/z/" with slug "x/y/z/".
      '/w/(?P<slug>.+/)' => 'PhrictionDocumentController',

      '/phriction/' => array(
        '(?:query/(?P<queryKey>[^/]+)/)?' => 'PhrictionListController',

        'history(?P<slug>/)'     => 'PhrictionHistoryController',
        'history/(?P<slug>.+/)'  => 'PhrictionHistoryController',

        'edit/(?:(?P<id>[1-9]\d*)/)?' => 'PhrictionEditController',
        'delete/(?P<id>[1-9]\d*)/'    => 'PhrictionDeleteController',
        'publish/(?P<documentID>[1-9]\d*)/(?P<contentID>[1-9]\d*)/'
          => 'PhrictionPublishController',
        'new/'                        => 'PhrictionNewController',
        'move/(?P<id>[1-9]\d*)/' => 'PhrictionMoveController',

        'preview/' => 'PhrictionMarkupPreviewController',
        'diff/(?P<id>[1-9]\d*)/' => 'PhrictionDiffController',

        $this->getEditRoutePattern('document/edit/')
          => 'PhrictionEditEngineController',
      ),
    );
  }

  public function getApplicationOrder() {
    return 0.140;
  }

  public function getApplicationSearchDocumentTypes() {
    return array(
      PhrictionDocumentPHIDType::TYPECONST,
    );
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorPhrictionApplication extends PhabricatorApplication {

  public function getName() {
    return pht('Phriction');
  }

  public function getShortDescription() {
    return pht('Wiki Documents');
  }

  public function getBaseURI() {
    return '/w/';
  }

  public function getIcon() {
    return 'fa-book';
  }

  public function isPinnedByDefault(PhabricatorUser $viewer) {
    return true;
  }

  public function getHelpDocumentationArticles(PhabricatorUser $viewer) {
    return array(
      array(
        'name' => pht('Phriction User Guide'),
        'href' => PhabricatorEnv::getDoclink('Phriction User Guide'),
      ),
    );
  }

  public function getTitleGlyph() {
    return "\xE2\x9A\xA1";
  }

  public function getRemarkupRules() {
    return array(
      new PhrictionRemarkupRule(),
    );
  }

  public function getRoutes() {
    return array(
      // Match "/w/" with slug "/".
      '/w(?P<slug>/)'    => 'PhrictionDocumentController',
      // Match "/w/x/y/z/" with slug "x/y/z/".
      '/w/(?P<slug>.+/)' => 'PhrictionDocumentController',

      '/phriction/' => array(
        '(?:query/(?P<queryKey>[^/]+)/)?' => 'PhrictionListController',

        'history(?P<slug>/)'     => 'PhrictionHistoryController',
        'history/(?P<slug>.+/)'  => 'PhrictionHistoryController',

        'edit/(?:(?P<id>[1-9]\d*)/)?' => 'PhrictionEditController',
        'delete/(?P<id>[1-9]\d*)/'    => 'PhrictionDeleteController',
        'publish/(?P<documentID>[1-9]\d*)/(?P<contentID>[1-9]\d*)/'
          => 'PhrictionPublishController',
        'new/'                        => 'PhrictionNewController',
        'move/(?P<id>[1-9]\d*)/' => 'PhrictionMoveController',

        'preview/' => 'PhrictionMarkupPreviewController',
        'diff/(?P<id>[1-9]\d*)/' => 'PhrictionDiffController',

        $this->getEditRoutePattern('document/edit/')
          => 'PhrictionEditEngineController',
      ),
    );
  }

  public function getApplicationOrder() {
    return 0.140;
  }

  public function getApplicationSearchDocumentTypes() {
    return array(
      PhrictionDocumentPHIDType::TYPECONST,
    );
  }

}

Function Calls

None

Variables

None

Stats

MD5 09edb1f877987df3621ac7aab0184a0f
Eval Count 0
Decode Time 87 ms