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 namespace Pterodactyl\Console\Commands\BlueprintFramework; use Illuminate\Console\..

Decoded Output download

<?php

namespace Pterodactyl\Console\Commands\BlueprintFramework;

use Illuminate\Console\Command;
use Pterodactyl\BlueprintFramework\Services\ConfigService\BlueprintConfigService;
use Pterodactyl\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService;
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary;
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;

class SyncCommand extends Command
{
  protected $description = 'Sync Blueprint database values.';
  protected $signature = 'bp:sync';

  /**
   * SyncCommand constructor.
   */
  public function __construct(
    private BlueprintExtensionLibrary $blueprint,
    private BlueprintConfigService $ConfigService,
    private BlueprintPlaceholderService $PlaceholderService,
    private SettingsRepositoryInterface $settings,
  ) { parent::__construct(); }

  /**
   * Handle execution of command.
   */
  public function handle()
  {
    // TELEMETRY ID
    if ($this->settings->get('blueprint::panel:id') == "" || $this->PlaceholderService->version() != $this->settings->get('blueprint::version:cache')) {
      $this->settings->set('blueprint::panel:id', uniqid(rand())."@".$this->PlaceholderService->version());
      $this->settings->set('blueprint::version:cache', $this->PlaceholderService->version());
    }
    
    // TELEMETRY STATUS
    if ($this->settings->get('blueprint::telemetry') == "") { $this->settings->set('blueprint::telemetry', "true"); }
    if ($this->settings->get('blueprint::telemetry') == "false") { $this->ConfigService->config('TELEMETRY_ID','KEY_NOT_UPDATED');
    } else { $this->ConfigService->config('TELEMETRY_ID',$this->settings->get("blueprint::panel:id")); }

    // DEVELOPER MODE
    $this->ConfigService->config('DEVELOPER', $this->settings->get('blueprint::developer'));
  }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Pterodactyl\Console\Commands\BlueprintFramework;

use Illuminate\Console\Command;
use Pterodactyl\BlueprintFramework\Services\ConfigService\BlueprintConfigService;
use Pterodactyl\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService;
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary;
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;

class SyncCommand extends Command
{
  protected $description = 'Sync Blueprint database values.';
  protected $signature = 'bp:sync';

  /**
   * SyncCommand constructor.
   */
  public function __construct(
    private BlueprintExtensionLibrary $blueprint,
    private BlueprintConfigService $ConfigService,
    private BlueprintPlaceholderService $PlaceholderService,
    private SettingsRepositoryInterface $settings,
  ) { parent::__construct(); }

  /**
   * Handle execution of command.
   */
  public function handle()
  {
    // TELEMETRY ID
    if ($this->settings->get('blueprint::panel:id') == "" || $this->PlaceholderService->version() != $this->settings->get('blueprint::version:cache')) {
      $this->settings->set('blueprint::panel:id', uniqid(rand())."@".$this->PlaceholderService->version());
      $this->settings->set('blueprint::version:cache', $this->PlaceholderService->version());
    }
    
    // TELEMETRY STATUS
    if ($this->settings->get('blueprint::telemetry') == "") { $this->settings->set('blueprint::telemetry', "true"); }
    if ($this->settings->get('blueprint::telemetry') == "false") { $this->ConfigService->config('TELEMETRY_ID','KEY_NOT_UPDATED');
    } else { $this->ConfigService->config('TELEMETRY_ID',$this->settings->get("blueprint::panel:id")); }

    // DEVELOPER MODE
    $this->ConfigService->config('DEVELOPER', $this->settings->get('blueprint::developer'));
  }
}

Function Calls

None

Variables

None

Stats

MD5 d22c1a403f9a35cd4e8adcebd908feee
Eval Count 0
Decode Time 72 ms