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\BlueprintFramework\Controllers; use Pterodactyl\Http\Request..

Decoded Output download

<?php

namespace Pterodactyl\BlueprintFramework\Controllers;

use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
use Pterodactyl\Http\Controllers\Api\Client\ClientApiController;
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;

class ExtensionRouteController extends ClientApiController
{
    public function __construct(
        private SettingsRepositoryInterface $settings,
    ) {
        parent::__construct();
    }

    public function eggs(GetRouteEggsRequest $request): array
    {
        $id = $request->input('id', 'blueprint');
        $eggs = $this->settings->get('blueprint::extensionconfig_' . $id . '_eggs');
        return json_decode($eggs ?: '["-1"]');
    }
}

class GetRouteEggsRequest extends ClientApiRequest {
    public function authorize(): bool
    {
        return true;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Pterodactyl\BlueprintFramework\Controllers;

use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
use Pterodactyl\Http\Controllers\Api\Client\ClientApiController;
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;

class ExtensionRouteController extends ClientApiController
{
    public function __construct(
        private SettingsRepositoryInterface $settings,
    ) {
        parent::__construct();
    }

    public function eggs(GetRouteEggsRequest $request): array
    {
        $id = $request->input('id', 'blueprint');
        $eggs = $this->settings->get('blueprint::extensionconfig_' . $id . '_eggs');
        return json_decode($eggs ?: '["-1"]');
    }
}

class GetRouteEggsRequest extends ClientApiRequest {
    public function authorize(): bool
    {
        return true;
    }
}

Function Calls

None

Variables

None

Stats

MD5 24d9c1a93ddab67c7f5f6fb80a2b6c92
Eval Count 0
Decode Time 119 ms