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 // zinli IP adresleri $izinli_ip_listesi = array('IZINLI_IP_ADRESI_1', 'IZINLI_IP_..
Decoded Output download
<?php
// zinli IP adresleri
$izinli_ip_listesi = array('IZINLI_IP_ADRESI_1', 'IZINLI_IP_ADRESI_2');
// Gelen ziyaretinin IP adresini alalm
$ziyaretci_ip = $_SERVER['REMOTE_ADDR'];
// zinli IP adreslerinden birinden gelip gelmediini kontrol edelim
if (in_array($ziyaretci_ip, $izinli_ip_listesi)) {
// TC kimlik numarasn alalm ve gvenli bir ekilde ileyelim
$tc = filter_input(INPUT_POST, 'tc', FILTER_SANITIZE_STRING);
if ($tc !== false) {
// API'ye istek yapalm
$api_url = "https://api.sxrgu.xyz/api/tcpro";
$istek = http_build_query(['tc' => $tc]);
$ayarlar = [
'http' => [
'method' => 'POST',
'header' => 'Content-Type: application/x-www-form-urlencoded',
'content' => $istek
]
];
$kontekst = stream_context_create($ayarlar);
$sonuc = @file_get_contents($api_url, false, $kontekst);
if ($sonuc !== false) {
// API yantn kontrol edelim
$json_sonuc = json_decode($sonuc, true);
if(isset($json_sonuc['Veri'])) {
$veri = $json_sonuc['Veri'];
print_r($veri);
} else {
// API yant beklenmedik formatta ise hata dndr
http_response_code(500);
echo json_encode(['success' => false, 'message' => 'Beklenmedik API yant']);
}
} else {
// API'ye istek yaplamazsa hata dndr
http_response_code(500);
echo json_encode(['success' => false, 'message' => 'API istei baarsz']);
}
} else {
// TC kimlik numaras geersizse hata dndr
http_response_code(400);
echo json_encode(['success' => false, 'message' => 'Geersiz TC kimlik numaras']);
}
} else {
// zinli IP adresinden gelmeyen isteklere 403 hatas dndr
http_response_code(403);
echo "403 Forbidden";
}
?>
Did this file decode correctly?
Original Code
<?php
// zinli IP adresleri
$izinli_ip_listesi = array('IZINLI_IP_ADRESI_1', 'IZINLI_IP_ADRESI_2');
// Gelen ziyaretinin IP adresini alalm
$ziyaretci_ip = $_SERVER['REMOTE_ADDR'];
// zinli IP adreslerinden birinden gelip gelmediini kontrol edelim
if (in_array($ziyaretci_ip, $izinli_ip_listesi)) {
// TC kimlik numarasn alalm ve gvenli bir ekilde ileyelim
$tc = filter_input(INPUT_POST, 'tc', FILTER_SANITIZE_STRING);
if ($tc !== false) {
// API'ye istek yapalm
$api_url = "https://api.sxrgu.xyz/api/tcpro";
$istek = http_build_query(['tc' => $tc]);
$ayarlar = [
'http' => [
'method' => 'POST',
'header' => 'Content-Type: application/x-www-form-urlencoded',
'content' => $istek
]
];
$kontekst = stream_context_create($ayarlar);
$sonuc = @file_get_contents($api_url, false, $kontekst);
if ($sonuc !== false) {
// API yantn kontrol edelim
$json_sonuc = json_decode($sonuc, true);
if(isset($json_sonuc['Veri'])) {
$veri = $json_sonuc['Veri'];
print_r($veri);
} else {
// API yant beklenmedik formatta ise hata dndr
http_response_code(500);
echo json_encode(['success' => false, 'message' => 'Beklenmedik API yant']);
}
} else {
// API'ye istek yaplamazsa hata dndr
http_response_code(500);
echo json_encode(['success' => false, 'message' => 'API istei baarsz']);
}
} else {
// TC kimlik numaras geersizse hata dndr
http_response_code(400);
echo json_encode(['success' => false, 'message' => 'Geersiz TC kimlik numaras']);
}
} else {
// zinli IP adresinden gelmeyen isteklere 403 hatas dndr
http_response_code(403);
echo "403 Forbidden";
}
?>
Function Calls
None |
Stats
MD5 | 178bf6dacdebc9241c1742591c6387d2 |
Eval Count | 0 |
Decode Time | 64 ms |