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\Providers\Blueprint; use Illuminate\Support\Facades\Route; u..

Decoded Output download

<?php

namespace Pterodactyl\Providers\Blueprint;

use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Middleware\AdminAuthenticate;
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;

class RouteServiceProvider extends ServiceProvider
{
    protected const FILE_PATH_REGEX = '/^\/api\/client\/servers\/([a-z0-9-]{36})\/files(\/?$|\/(.)*$)/i';

    /**
     * Define your route model bindings, pattern filters, etc.
     */
    public function boot(): void
    {
        $this->routes(function () {
            /* Blueprint web routes */
            Route::middleware('blueprint')
                ->prefix('/extensions')
                ->group(base_path('routes/blueprint/web.php'));

            /* Blueprint API routes */
            Route::middleware(['blueprint/api', RequireTwoFactorAuthentication::class])->group(function () {
                /* Application API */
                Route::middleware(['blueprint/application-api', 'throttle:api.application'])
                    ->prefix('/api/application/extensions')
                    ->scopeBindings()
                    ->group(base_path('routes/blueprint/application.php'));
                /* Client API */
                Route::middleware(['blueprint/client-api', 'throttle:api.client'])
                    ->prefix('/api/client/extensions')
                    ->scopeBindings()
                    ->group(base_path('routes/blueprint/client.php'));
            });

            /* Blueprint admin routes */
            Route::middleware(['web', 'auth.session', RequireTwoFactorAuthentication::class, AdminAuthenticate::class])
                ->prefix('/admin')
                ->group(base_path('routes/blueprint.php'));
        });
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Pterodactyl\Providers\Blueprint;

use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Middleware\AdminAuthenticate;
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;

class RouteServiceProvider extends ServiceProvider
{
    protected const FILE_PATH_REGEX = '/^\/api\/client\/servers\/([a-z0-9-]{36})\/files(\/?$|\/(.)*$)/i';

    /**
     * Define your route model bindings, pattern filters, etc.
     */
    public function boot(): void
    {
        $this->routes(function () {
            /* Blueprint web routes */
            Route::middleware('blueprint')
                ->prefix('/extensions')
                ->group(base_path('routes/blueprint/web.php'));

            /* Blueprint API routes */
            Route::middleware(['blueprint/api', RequireTwoFactorAuthentication::class])->group(function () {
                /* Application API */
                Route::middleware(['blueprint/application-api', 'throttle:api.application'])
                    ->prefix('/api/application/extensions')
                    ->scopeBindings()
                    ->group(base_path('routes/blueprint/application.php'));
                /* Client API */
                Route::middleware(['blueprint/client-api', 'throttle:api.client'])
                    ->prefix('/api/client/extensions')
                    ->scopeBindings()
                    ->group(base_path('routes/blueprint/client.php'));
            });

            /* Blueprint admin routes */
            Route::middleware(['web', 'auth.session', RequireTwoFactorAuthentication::class, AdminAuthenticate::class])
                ->prefix('/admin')
                ->group(base_path('routes/blueprint.php'));
        });
    }
}

Function Calls

None

Variables

None

Stats

MD5 8639d4eaef7cac9dec7322dde2e5c5e1
Eval Count 0
Decode Time 98 ms