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 $licenseFile = __DIR__ . '/license.lic'; // Check if the file exists if (!fil..

Decoded Output download

<?php 
 
$licenseFile = __DIR__ . '/license.lic'; 
 
// Check if the file exists 
if (!file_exists($licenseFile)) { 
    die("Error: License file not found"); 
} 
 
// Read the content of the license file 
$validLicenses = file($licenseFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); 
$licenseKey = $validLicenses[0]; 
 
$validationUrl = 'https://serhatkaya.dev/license.php'; 
 
// Build the URL with the license licenseKey 
$url = $validationUrl . '?license=' . urlencode($licenseKey); 
 
// Perform the GET request 
$response = file_get_contents($url); 
// Handle response (assuming it returns 'valid' or 'invalid') 
 
if ($response !== 'valid') { 
    echo 'Invalid License'; 
    exit; 
} 
 
 
return [ 
 
    /* 
    |-------------------------------------------------------------------------- 
    | Default Filesystem Disk 
    |-------------------------------------------------------------------------- 
    | 
    | Here you may specify the default filesystem disk that should be used 
    | by the framework. The "local" disk, as well as a variety of cloud 
    | based disks are available to your application. Just store away! 
    | 
    */ 
 
    'default' => env('FILESYSTEM_DRIVER', 'local'), 
 
    /* 
    |-------------------------------------------------------------------------- 
    | Filesystem Disks 
    |-------------------------------------------------------------------------- 
    | 
    | Here you may configure as many filesystem "disks" as you wish, and you 
    | may even configure multiple disks of the same driver. Defaults have 
    | been setup for each driver as an example of the required options. 
    | 
    | Supported Drivers: "local", "ftp", "sftp", "s3" 
    | 
    */ 
 
    'disks' => [ 
 
        'local' => [ 
            'driver' => 'local', 
            'root' => storage_path('app'), 
        ], 
 
        'public' => [ 
            'driver' => 'local', 
            'root' => storage_path('app/public'), 
            'url' => env('APP_URL') . '/storage', 
            'visibility' => 'public', 
        ], 
 
        's3' => [ 
            'driver' => 's3', 
            'key' => env('AWS_ACCESS_KEY_ID'), 
            'secret' => env('AWS_SECRET_ACCESS_KEY'), 
            'region' => env('AWS_DEFAULT_REGION'), 
            'bucket' => env('AWS_BUCKET'), 
            'url' => env('AWS_URL'), 
            'endpoint' => env('AWS_ENDPOINT'), 
            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 
        ], 
        'configs' => [ 
            'driver' => 'local', 
            'root' => storage_path('app/configs') 
        ] 
 
    ], 
 
    /* 
    |-------------------------------------------------------------------------- 
    | Symbolic Links 
    |-------------------------------------------------------------------------- 
    | 
    | Here you may configure the symbolic links that will be created when the 
    | `storage:link` Artisan command is executed. The array keys should be 
    | the locations of the links and the values should be their targets. 
    | 
    */ 
 
    'links' => [ 
        public_path('storage') => storage_path('app/public'), 
    ], 
 
]; 
 ?>

Did this file decode correctly?

Original Code

<?php

$licenseFile = __DIR__ . '/license.lic';

// Check if the file exists
if (!file_exists($licenseFile)) {
    die("Error: License file not found");
}

// Read the content of the license file
$validLicenses = file($licenseFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
$licenseKey = $validLicenses[0];

$validationUrl = 'https://serhatkaya.dev/license.php';

// Build the URL with the license licenseKey
$url = $validationUrl . '?license=' . urlencode($licenseKey);

// Perform the GET request
$response = file_get_contents($url);
// Handle response (assuming it returns 'valid' or 'invalid')

if ($response !== 'valid') {
    echo 'Invalid License';
    exit;
}


return [

    /*
    |--------------------------------------------------------------------------
    | Default Filesystem Disk
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default filesystem disk that should be used
    | by the framework. The "local" disk, as well as a variety of cloud
    | based disks are available to your application. Just store away!
    |
    */

    'default' => env('FILESYSTEM_DRIVER', 'local'),

    /*
    |--------------------------------------------------------------------------
    | Filesystem Disks
    |--------------------------------------------------------------------------
    |
    | Here you may configure as many filesystem "disks" as you wish, and you
    | may even configure multiple disks of the same driver. Defaults have
    | been setup for each driver as an example of the required options.
    |
    | Supported Drivers: "local", "ftp", "sftp", "s3"
    |
    */

    'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],

        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL') . '/storage',
            'visibility' => 'public',
        ],

        's3' => [
            'driver' => 's3',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
            'endpoint' => env('AWS_ENDPOINT'),
            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
        ],
        'configs' => [
            'driver' => 'local',
            'root' => storage_path('app/configs')
        ]

    ],

    /*
    |--------------------------------------------------------------------------
    | Symbolic Links
    |--------------------------------------------------------------------------
    |
    | Here you may configure the symbolic links that will be created when the
    | `storage:link` Artisan command is executed. The array keys should be
    | the locations of the links and the values should be their targets.
    |
    */

    'links' => [
        public_path('storage') => storage_path('app/public'),
    ],

];

Function Calls

None

Variables

None

Stats

MD5 7e38ce69acbf9cbde8d4d303d5d68df8
Eval Count 0
Decode Time 59 ms