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 App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\S..
Decoded Output download
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Http;
use Illuminate\Http\Client\Response;
use Illuminate\Http\Client\Pool;
use Carbon\Carbon;
class HomeController extends Controller
{
private $clientKey;
private $apiKey;
public function __construct()
{
$this->clientKey = \Str::lower(config('app.clientKey'));
$this->apiKey = 'JRoAL6tWVTqZ5yr7O0mIjV2ZB7b1lC8N';
}
public function index()
{
$resultsAPI = [];
$paramAddDomain = [
'clientKey' => $this->clientKey,
];
$getRTP = Http::pool(fn (Pool $pool) => [
$pool->as("getRTP")->withHeaders([
'X-Cepet-Key' => $this->apiKey,
'Content-Type' => 'application/json'
])->post('https://x-rtp-api.1pg.in/api/v1/provider', $paramAddDomain),
]);
if($getRTP['getRTP']->successful()){
$resRTP = $getRTP['getRTP']->json();
if($resRTP['error']['id'] == 0){
$resultsAPI = $resRTP['results'];
} else {
abort(404);
}
} else {
abort(404);
}
return view('pages.beranda',[
'rtpLists' => $resultsAPI
]);
}
public function games($codex)
{
$resultsAPI = [];
$paramAddDomain = [
'clientKey' => $this->clientKey,
'provider' => $codex,
];
$getRTP = Http::pool(fn (Pool $pool) => [
$pool->as("getRTP")->withHeaders([
'X-Cepet-Key' => $this->apiKey,
'Content-Type' => 'application/json'
])->post('https://x-rtp-api.1pg.in/api/v1/provider', $paramAddDomain),
]);
if($getRTP['getRTP']->successful()){
$resRTP = $getRTP['getRTP']->json();
if($resRTP['error']['id'] == 0){
$resultsAPI = $resRTP['results'];
} else {
abort(404);
}
} else {
abort(404);
}
return view('pages.games',[
'rtpLists' => $resultsAPI
]);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Http;
use Illuminate\Http\Client\Response;
use Illuminate\Http\Client\Pool;
use Carbon\Carbon;
class HomeController extends Controller
{
private $clientKey;
private $apiKey;
public function __construct()
{
$this->clientKey = \Str::lower(config('app.clientKey'));
$this->apiKey = 'JRoAL6tWVTqZ5yr7O0mIjV2ZB7b1lC8N';
}
public function index()
{
$resultsAPI = [];
$paramAddDomain = [
'clientKey' => $this->clientKey,
];
$getRTP = Http::pool(fn (Pool $pool) => [
$pool->as("getRTP")->withHeaders([
'X-Cepet-Key' => $this->apiKey,
'Content-Type' => 'application/json'
])->post('https://x-rtp-api.1pg.in/api/v1/provider', $paramAddDomain),
]);
if($getRTP['getRTP']->successful()){
$resRTP = $getRTP['getRTP']->json();
if($resRTP['error']['id'] == 0){
$resultsAPI = $resRTP['results'];
} else {
abort(404);
}
} else {
abort(404);
}
return view('pages.beranda',[
'rtpLists' => $resultsAPI
]);
}
public function games($codex)
{
$resultsAPI = [];
$paramAddDomain = [
'clientKey' => $this->clientKey,
'provider' => $codex,
];
$getRTP = Http::pool(fn (Pool $pool) => [
$pool->as("getRTP")->withHeaders([
'X-Cepet-Key' => $this->apiKey,
'Content-Type' => 'application/json'
])->post('https://x-rtp-api.1pg.in/api/v1/provider', $paramAddDomain),
]);
if($getRTP['getRTP']->successful()){
$resRTP = $getRTP['getRTP']->json();
if($resRTP['error']['id'] == 0){
$resultsAPI = $resRTP['results'];
} else {
abort(404);
}
} else {
abort(404);
}
return view('pages.games',[
'rtpLists' => $resultsAPI
]);
}
}
Function Calls
| None |
Stats
| MD5 | cdee588811633c4790a1905f84f2bb87 |
| Eval Count | 0 |
| Decode Time | 46 ms |