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 :  /bpkd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bpkd/dokumen-ppid.php
<?php
require_once 'includes/init.php';
require_once 'includes/header.php';
require_once 'includes/tokenkab.php';

$curl1 = curl_init();
$curl2 = curl_init();
$curl3 = curl_init();
$curl4 = curl_init();
$curl5 = curl_init();
$alert = '';
if(isset($_POST['upload_kelembagaan'])){
    $curl6 = curl_init();
    curl_setopt_array($curl6, array(
        CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/upload/kelembagaan',
        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('id'=>@$_POST['id'],'file'=>new CURLFILE($_FILES['file_kelembagaan']['tmp_name'],$_FILES['file_kelembagaan']['type'],$_FILES['file_kelembagaan']['name'])),
        CURLOPT_HTTPHEADER => array(
            'Token-Api: '.$token_dip/* token kominfo*/
        ),
    ));
    $response6 = curl_exec($curl6);

    curl_close($curl6);

    $json6 = json_decode($response6,true);

    if($json6['error'] === false){
        $alert = '<div class="alert alert-success">'.$json6['message'].'</div>';
    }else{
        $alert = '<div class="alert alert-danger">'.$json6['message'].'</div>';
    }

}
if(isset($_POST['upload_tupoksi'])){
    $curl7 = curl_init();
    curl_setopt_array($curl7, array(
        CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/upload/tupoksi',
        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('id'=>@$_POST['id'],'file'=>new CURLFILE($_FILES['file_tupoksi']['tmp_name'],$_FILES['file_tupoksi']['type'],$_FILES['file_tupoksi']['name'])),
        CURLOPT_HTTPHEADER => array(
            'Token-Api: '.$token_dip/* token kominfo*/
        ),
    ));
    $response7 = curl_exec($curl7);

    curl_close($curl7);

    $json7 = json_decode($response7,true);

    if($json7['error'] === false){
        $alert = '<div class="alert alert-success">'.$json7['message'].'</div>';
    }else{
        $alert = '<div class="alert alert-danger">'.$json7['message'].'</div>';
    }

}
if(isset($_POST['upload_sop'])){
    $curl8 = curl_init();
    curl_setopt_array($curl8, array(
        CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/upload/sop_ppid',
        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('id'=>@$_POST['id'],'file'=>new CURLFILE($_FILES['file_sop']['tmp_name'],$_FILES['file_sop']['type'],$_FILES['file_sop']['name'])),
        CURLOPT_HTTPHEADER => array(
            'Token-Api: '.$token_dip/* token kominfo*/
        ),
    ));
    $response8 = curl_exec($curl8);

    curl_close($curl8);

    $json8 = json_decode($response8,true);

    if($json8['error'] === false){
        $alert = '<div class="alert alert-success">'.$json8['message'].'</div>';
    }else{
        $alert = '<div class="alert alert-danger">'.$json8['message'].'</div>';
    }

}
if(isset($_POST['upload_sk'])){
    $curl9 = curl_init();
    curl_setopt_array($curl9, array(
        CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/upload/sk_ppid',
        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('id'=>@$_POST['id'],'file'=>new CURLFILE($_FILES['file_sk']['tmp_name'],$_FILES['file_sk']['type'],$_FILES['file_sk']['name'])),
        CURLOPT_HTTPHEADER => array(
            'Token-Api: '.$token_dip/* token kominfo*/
        ),
    ));
    $response9 = curl_exec($curl9);

    curl_close($curl9);

    $json9 = json_decode($response9,true);

    if($json9['error'] === false){
        $alert = '<div class="alert alert-success">'.$json9['message'].'</div>';
    }else{
        $alert = '<div class="alert alert-danger">'.$json9['message'].'</div>';
    }

}
if(isset($_POST['upload_struktur'])){
    $curl10 = curl_init();
    curl_setopt_array($curl10, array(
        CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/upload/struktur_organisasi_ppid',
        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('id'=>@$_POST['id'],'file'=>new CURLFILE($_FILES['file_struktur']['tmp_name'],$_FILES['file_struktur']['type'],$_FILES['file_struktur']['name'])),
        CURLOPT_HTTPHEADER => array(
            'Token-Api: '.$token_dip/* token kominfo*/
        ),
    ));
    $response10 = curl_exec($curl10);

    curl_close($curl10);

    $json10 = json_decode($response10,true);

    if($json10['error'] === false){
        $alert = '<div class="alert alert-success">'.$json10['message'].'</div>';
    }else{
        $alert = '<div class="alert alert-danger">'.$json10['message'].'</div>';
    }

}

curl_setopt_array($curl1, array(
    CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/read/kelembagaan',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_HTTPHEADER => array(
        'Token-Api: '.$token_dip/* token kominfo*/
    ),
));

curl_setopt_array($curl2, array(
    CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/read/tupoksi',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_HTTPHEADER => array(
        'Token-Api: '.$token_dip/* token kominfo*/
    ),
));

curl_setopt_array($curl3, array(
    CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/read/sop_ppid',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_HTTPHEADER => array(
        'Token-Api: '.$token_dip/* token kominfo*/
    ),
));

curl_setopt_array($curl4, array(
    CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/read/sk_ppid',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_HTTPHEADER => array(
        'Token-Api: '.$token_dip/* token kominfo*/
    ),
));

curl_setopt_array($curl5, array(
    CURLOPT_URL => 'https://ppid.lumajangkab.go.id/api/v2/dokumen/read/struktur_organisasi_ppid',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_HTTPHEADER => array(
        'Token-Api: '.$token_dip/* token kominfo*/
    ),
));

$response1 = curl_exec($curl1);
$response2 = curl_exec($curl2);
$response3 = curl_exec($curl3);
$response4 = curl_exec($curl4);
$response5 = curl_exec($curl5);

curl_close($curl1);
curl_close($curl2);
curl_close($curl3);
curl_close($curl4);
curl_close($curl5);

$json1 = json_decode($response1,true);
$json2 = json_decode($response2,true);
$json3 = json_decode($response3,true);
$json4 = json_decode($response4,true);
$json5 = json_decode($response5,true);

?>
<div class="container">
  <div class="row">
    <div class="sidebar col-lg-10 mx-auto">
        <div class="card mb-3 py-3 mt-5">
            <div class="card-body p-4">

                <h4>DAFTAR DOKUMEN PPID</h4>
                
                <br/>
                <div class="row" style="overflow: auto">

                    <div class="card-body">
                        <div>

                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <button class="nav-link active" id="kelembagaan-tab" data-bs-toggle="tab" data-bs-target="#kelembagaan" type="button" role="tab" aria-controls="kelembagaan" aria-selected="true">Kelembagaan</button>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <button class="nav-link" id="tupoksi-tab" data-bs-toggle="tab" data-bs-target="#tupoksi" type="button" role="tab" aria-controls="tupoksi" aria-selected="false">Tupoksi</button>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <button class="nav-link" id="sop-tab" data-bs-toggle="tab" data-bs-target="#sop" type="button" role="tab" aria-controls="sop" aria-selected="false">SOP PPID</button>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <button class="nav-link" id="sk-tab" data-bs-toggle="tab" data-bs-target="#sk" type="button" role="tab" aria-controls="sk" aria-selected="false">SK PPID</button>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <button class="nav-link" id="struktur-tab" data-bs-toggle="tab" data-bs-target="#struktur" type="button" role="tab" aria-controls="struktur" aria-selected="false">Struktur Organisasi PPID</button>
                                </li>
                            </ul>

                            <!-- Tab panes -->
                            <div class="tab-content">
                                <div class="tab-pane active" id="kelembagaan" role="tabpanel" aria-labelledby="kelembagaan-tab">
                                    <br>

                                    <iframe src="<?= $json1['kelembagaan'] == '' ? 'about:blank' : $json1['kelembagaan']?>" frameborder="0" width="100%" height="550"></iframe>


                                </div>
                                <div class="tab-pane" id="tupoksi" role="tabpanel" aria-labelledby="tupoksi-tab">
                                    <br>

                                    <iframe src="<?= $json2['tupoksi'] == '' ? 'about:blank' : $json2['tupoksi']?>" frameborder="0" width="100%" height="550"></iframe>
                                </div>
                                <div class="tab-pane" id="sop" role="tabpanel" aria-labelledby="sop-tab">
                                    <br>

                                    <iframe src="<?= $json3['sop'] == '' ? 'about:blank' : $json3['sop']?>" frameborder="0" width="100%" height="550"></iframe>
                                </div>
                                <div class="tab-pane" id="sk" role="tabpanel" aria-labelledby="sk-tab">
                                    <br>

                                    <iframe src="<?= $json4['sk'] == '' ? 'about:blank' : $json4['sk']?>" frameborder="0" width="100%" height="550"></iframe>
                                </div>
                                <div class="tab-pane" id="struktur" role="tabpanel" aria-labelledby="struktur-tab">
                                    <br>

                                    <iframe src="<?= $json5['struktur_ppid'] == '' ? 'about:blank' : $json5['struktur_ppid']?>" frameborder="0" width="100%" height="550"></iframe>
                                </div>
                            </div>

                        </div>
                    </div>

                </div>
                <br>
                <div class="row">
                    <hr>
                    <a style="color: blue">
                        <i class="fas fa-info-circle me-1"></i>Data diperbarui secara otomatis dari server ppid.lumajangkab.go.id
                    </a>
                </div>  

            </div>    
        </div>
    </div>
  </div>    
</div>


<!-- DataTables JS -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.datatables.net/2.0.8/js/dataTables.min.js"></script>
<script src="https://cdn.datatables.net/2.0.8/js/dataTables.bootstrap5.min.js"></script>


<?php include 'includes/footer.php'; ?>

<script>
$(document).ready(function() {
    if ($('#datatable-dip').length > 0) {
        $('#datatable-dip').DataTable({
            language: {
                url: "//cdn.datatables.net/plug-ins/2.0.8/i18n/id.json"
            }
        });
    }
});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit