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 if(!defined('BASEPATH')) exit('No direct script access allowed'); ?> <?php functio..

Decoded Output download

<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); ?> 
<?php 
function bacaHTML($url){ 
     // inisialisasi CURL 
     $data = curl_init(); 
     // setting CURL 
     curl_setopt($data, CURLOPT_RETURNTRANSFER, 1); 
     curl_setopt($data, CURLOPT_URL, $url); 
     // menjalankan CURL untuk membaca isi file 
     $hasil = curl_exec($data); 
     curl_close($data); 
     return $hasil; 
} 
//mengambil API dari kawalcorona.com 
$kodeHTML =  bacaHTML('https://api.kawalcorona.com/indonesia/'); 
$pecah = explode('"', $kodeHTML); 
$tgl = explode('T', $pecah[19]); 
$jam = explode('+', $tgl[1]); 
$waktu = $tgl[0]." ".$jam[0]; 
?> 
<div class="single_bottom_rightbar"> 
    <h2><i class="fa fa-bar-chart-o"></i> <?php echo "Covid-19 di ".$pecah[3]."<br>"; ?></h2> 
    <div style="margin-bottom:10px;"> 
        <div class="row"> 
            <div class="col-lg-4"> 
                <button type="button" class="btn bg-danger btn-block"> 
                        <img width="25%" style="float:left; margin:8px 8px 4px 8px;" src="https://kawalcorona.com/uploads/sad-u6e.png"> 
                        <b>Total Positif</b> 
                        <h2><?= number_format($pecah[7]);?> <small>Orang</small></h2> 
                </button> 
            </div><!-- COL END --> 
            <div class="col-lg-4"> 
                <button type="button" class="btn bg-success btn-block"> 
                        <img width="25%" style="float:left; margin:8px 8px 4px 8px;" src="https://kawalcorona.com/uploads/happy-ipM.png"/> 
                        <b>Sembuh <?= number_format($pecah[11]/$pecah[7]*100,2);?>%</b> 
                        <h2><?= number_format($pecah[11]);?> <small>Orang</small></h2> 
                    </div> 
                </button><!-- COL END --> 
            <div class="col-lg-4"> 
                <button type="button" class="btn bg-info btn-block"> 
                        <img width="25%" style="float:left; margin:8px 8px 4px 8px;" src="https://kawalcorona.com/uploads/emoji-LWx.png"/> 
                        <b>Meninggal <?= number_format($pecah[15]/$pecah[7]*100,2);?>%</b> 
                        <h2><?= number_format($pecah[15]);?> <small>Orang</small></h2> 
                </button> 
        	</div> 
            <div class="col-lg-6" style="margin-top:5px;"> 
                <div class="progress-group" style="margin-bottom:5px;"> 
                    <button type="button" class="btn btn-success btn-block">Update <?= $waktu;?> GMT</button> 
                </div> 
            </div> 
            <div class="col-lg-6" style="margin-top:5px;"> 
                <div class="progress-group"> 
                <a href="https://kawalcorona.com/" rel="noopener noreferrer" target="_blank"> <button type="button" class="btn btn-danger btn-block">Sumber : kawalcorona.com</button></a> 
                </div> 
            </div> 
        </div> 
    </div> 
</div>

Did this file decode correctly?

Original Code

<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); ?>
<?php
function bacaHTML($url){
     // inisialisasi CURL
     $data = curl_init();
     // setting CURL
     curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($data, CURLOPT_URL, $url);
     // menjalankan CURL untuk membaca isi file
     $hasil = curl_exec($data);
     curl_close($data);
     return $hasil;
}
//mengambil API dari kawalcorona.com
$kodeHTML =  bacaHTML('https://api.kawalcorona.com/indonesia/');
$pecah = explode('"', $kodeHTML);
$tgl = explode('T', $pecah[19]);
$jam = explode('+', $tgl[1]);
$waktu = $tgl[0]." ".$jam[0];
?>
<div class="single_bottom_rightbar">
    <h2><i class="fa fa-bar-chart-o"></i> <?php echo "Covid-19 di ".$pecah[3]."<br>"; ?></h2>
    <div style="margin-bottom:10px;">
        <div class="row">
            <div class="col-lg-4">
                <button type="button" class="btn bg-danger btn-block">
                        <img width="25%" style="float:left; margin:8px 8px 4px 8px;" src="https://kawalcorona.com/uploads/sad-u6e.png">
                        <b>Total Positif</b>
                        <h2><?= number_format($pecah[7]);?> <small>Orang</small></h2>
                </button>
            </div><!-- COL END -->
            <div class="col-lg-4">
                <button type="button" class="btn bg-success btn-block">
                        <img width="25%" style="float:left; margin:8px 8px 4px 8px;" src="https://kawalcorona.com/uploads/happy-ipM.png"/>
                        <b>Sembuh <?= number_format($pecah[11]/$pecah[7]*100,2);?>%</b>
                        <h2><?= number_format($pecah[11]);?> <small>Orang</small></h2>
                    </div>
                </button><!-- COL END -->
            <div class="col-lg-4">
                <button type="button" class="btn bg-info btn-block">
                        <img width="25%" style="float:left; margin:8px 8px 4px 8px;" src="https://kawalcorona.com/uploads/emoji-LWx.png"/>
                        <b>Meninggal <?= number_format($pecah[15]/$pecah[7]*100,2);?>%</b>
                        <h2><?= number_format($pecah[15]);?> <small>Orang</small></h2>
                </button>
        	</div>
            <div class="col-lg-6" style="margin-top:5px;">
                <div class="progress-group" style="margin-bottom:5px;">
                    <button type="button" class="btn btn-success btn-block">Update <?= $waktu;?> GMT</button>
                </div>
            </div>
            <div class="col-lg-6" style="margin-top:5px;">
                <div class="progress-group">
                <a href="https://kawalcorona.com/" rel="noopener noreferrer" target="_blank"> <button type="button" class="btn btn-danger btn-block">Sumber : kawalcorona.com</button></a>
                </div>
            </div>
        </div>
    </div>
</div>

Function Calls

defined 1

Variables

None

Stats

MD5 9f55249e26bfb775b23e06b3f3d6c10f
Eval Count 0
Decode Time 82 ms