403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /laragon4/www/bpkd.test_/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /laragon4/www//bpkd.test_/lihat-pemohon.php
<?php
#require_once 'includes/init.php';
#require_once 'includes/header.php';
require_once 'includes/tokenkab.php';

//disini menggunakan link demo
$curl = curl_init();

curl_setopt_array($curl, array(
	CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/permohonan_informasi/tampil',
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_ENCODING => '',
	CURLOPT_MAXREDIRS => 10,
	CURLOPT_TIMEOUT => 0,
	CURLOPT_FOLLOWLOCATION => true,
	CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
	CURLOPT_POST => true,
	CURLOPT_POSTFIELDS => array('type' => 'detail','id_permohonan' => @$_POST['id_permohonan']),
	CURLOPT_HTTPHEADER => array(
		'Token-Api: '.$token_dip/* token kominfo*/
	),
));

$response = curl_exec($curl);

curl_close($curl);
$json = json_decode($response,true);
$out = [
	'nama_pemohon'=>$json['data']['nama_pemohon'],
	'alamat_pemohon'=>$json['data']['alamat'],
	'informasi_diminta'=>$json['data']['informasi_diminta'],
	'waktu_permohonan'=>$json['data']['waktu'],
	'waktu_menanggapi'=>$json['data']['waktu_jawab'],
	'tanggapan'=>$json['data']['jawaban'],
];
header('Content-Type:application/json');
echo json_encode($out);

Youez - 2016 - github.com/yon3zu
LinuXploit