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 PhabricatorNotificationClient extends Phobject { public static funct..

Decoded Output download

<?php

final class PhabricatorNotificationClient extends Phobject {

  public static function tryAnyConnection() {
    $servers = PhabricatorNotificationServerRef::getEnabledAdminServers();

    if (!$servers) {
      return;
    }

    foreach ($servers as $server) {
      $server->loadServerStatus();
      return;
    }

    return;
  }

  public static function tryToPostMessage(array $data) {
    $unique_id = Filesystem::readRandomCharacters(32);
    $data = $data + array(
      'uniqueID' => $unique_id,
    );

    $servers = PhabricatorNotificationServerRef::getEnabledAdminServers();

    shuffle($servers);

    foreach ($servers as $server) {
      try {
        $server->postMessage($data);
        return;
      } catch (Exception $ex) {
        // Just ignore any issues here.
      }
    }
  }

  public static function isEnabled() {
    return (bool)PhabricatorNotificationServerRef::getEnabledAdminServers();
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorNotificationClient extends Phobject {

  public static function tryAnyConnection() {
    $servers = PhabricatorNotificationServerRef::getEnabledAdminServers();

    if (!$servers) {
      return;
    }

    foreach ($servers as $server) {
      $server->loadServerStatus();
      return;
    }

    return;
  }

  public static function tryToPostMessage(array $data) {
    $unique_id = Filesystem::readRandomCharacters(32);
    $data = $data + array(
      'uniqueID' => $unique_id,
    );

    $servers = PhabricatorNotificationServerRef::getEnabledAdminServers();

    shuffle($servers);

    foreach ($servers as $server) {
      try {
        $server->postMessage($data);
        return;
      } catch (Exception $ex) {
        // Just ignore any issues here.
      }
    }
  }

  public static function isEnabled() {
    return (bool)PhabricatorNotificationServerRef::getEnabledAdminServers();
  }

}

Function Calls

None

Variables

None

Stats

MD5 c5a32f6f6bd4bef515d358aac8036321
Eval Count 0
Decode Time 94 ms