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 PhabricatorAphlictSetupCheck extends PhabricatorSetupCheck { protect..

Decoded Output download

<?php

final class PhabricatorAphlictSetupCheck extends PhabricatorSetupCheck {

  protected function executeChecks() {
    try {
      PhabricatorNotificationClient::tryAnyConnection();
    } catch (Exception $ex) {
      $message = pht(
        "This server is configured to use a notification server, but is ".
        "unable to connect to it. You should resolve this issue or disable ".
        "the notification server. It may be helpful to double check your ".
        "configuration or restart the server using the command below.

%s",
        phutil_tag(
          'pre',
          array(),
          array(
            get_class($ex),
            "
",
            $ex->getMessage(),
          )));


      $this->newIssue('aphlict.connect')
        ->setShortName(pht('Notification Server Down'))
        ->setName(pht('Unable to Connect to Notification Server'))
        ->setSummary(
          pht(
            'This server is configured to use a notification server, '.
            'but is not able to connect to it.'))
        ->setMessage($message)
        ->addRelatedPhabricatorConfig('notification.servers')
        ->addCommand(
          pht(
            "(To start the server, run this command.)
%s",
            '$ ./bin/aphlict start'));

      return;
    }
  }
}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorAphlictSetupCheck extends PhabricatorSetupCheck {

  protected function executeChecks() {
    try {
      PhabricatorNotificationClient::tryAnyConnection();
    } catch (Exception $ex) {
      $message = pht(
        "This server is configured to use a notification server, but is ".
        "unable to connect to it. You should resolve this issue or disable ".
        "the notification server. It may be helpful to double check your ".
        "configuration or restart the server using the command below.\n\n%s",
        phutil_tag(
          'pre',
          array(),
          array(
            get_class($ex),
            "\n",
            $ex->getMessage(),
          )));


      $this->newIssue('aphlict.connect')
        ->setShortName(pht('Notification Server Down'))
        ->setName(pht('Unable to Connect to Notification Server'))
        ->setSummary(
          pht(
            'This server is configured to use a notification server, '.
            'but is not able to connect to it.'))
        ->setMessage($message)
        ->addRelatedPhabricatorConfig('notification.servers')
        ->addCommand(
          pht(
            "(To start the server, run this command.)\n%s",
            '$ ./bin/aphlict start'));

      return;
    }
  }
}

Function Calls

None

Variables

None

Stats

MD5 533e9a08ba77298c2b1d44adb9738e1e
Eval Count 0
Decode Time 122 ms