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 ($_SERVER["REMOTE_ADDR"] == '::1') { $tanggal = date("d-m-Y"); $nomor = $a..

Decoded Output download

<?php 
if ($_SERVER["REMOTE_ADDR"] == '::1') { 
	$tanggal = date("d-m-Y"); 
	$nomor   = $antrian->row('no_antrian'); 
	$huruf   = $kodelayanan->kode_layanan; 
	$loket   = 'LOKET ' . $kodelayanan->loket; 
	$antrian = $huruf . $nomor; 
 
	$row_ending = 0; 
	$magin_left = 0; 
	$magin_leftx = 90; 
	$pjg_karakter = strlen($nomor); 
 
 
 
	//# konfigurasi printer 
	// $p = printer_open('POS58 Printer'); 
	$p = printer_open('80mm Series Printer'); 
	printer_set_option($p, PRINTER_MODE, "RAW"); //# mode disobek (gak ngegulung kertas) 
 
 
 
	//# then the width 
	printer_set_option($p, PRINTER_RESOLUTION_Y, 940); 
	printer_start_doc($p); 
	printer_start_page($p); 
 
	$font = printer_create_font("Arial", 38, 10, PRINTER_FW_NORMAL, false, false, false, 0); 
	printer_select_font($p, $font); 
	printer_draw_text($p, "DINAS PENANAMAN MODAL", $magin_leftx + 45, 1); 
	printer_draw_text($p, "PELAYANAN TERPADU SATU PINTU", $magin_leftx + $magin_left, 32); 
 
	$font = printer_create_font("Arial", 30, 12, PRINTER_FW_NORMAL, false, false, false, 0); 
	printer_select_font($p, $font); 
	printer_draw_text($p, "Kabupaten Padang Lawas", $magin_leftx + 45, 68); 
 
	//# Header Bon 
	$pen = printer_create_pen(PRINTER_PEN_SOLID, 1, "000000"); 
	printer_select_pen($p, $pen); 
	printer_draw_line($p, $magin_left, 105, 700, 105); 
	printer_draw_line($p, $magin_left, 109, 700, 109); 
	printer_draw_text($p, "Nomor Antrian", $magin_leftx + 115, 110); 
 
	//# Body Bon 
	$font = printer_create_font("Arial", 98, 37, PRINTER_FW_NORMAL, false, false, false, 0); 
	printer_select_font($p, $font); 
	if ($pjg_karakter > 2) { 
		printer_draw_text($p, $antrian, $magin_leftx + 90, 145); 
	} elseif ($pjg_karakter > 1) { 
		printer_draw_text($p, $antrian, $magin_leftx + 115, 145); 
	} else { 
		printer_draw_text($p, $antrian, $magin_leftx + 136, 145); 
	} 
 
	$font = printer_create_font("Arial", 38, 12, PRINTER_FW_NORMAL, false, false, false, 0); 
	printer_select_font($p, $font); 
	printer_select_pen($p, $pen); 
	printer_draw_text($p, $loket, $magin_leftx +  135, 240); 
 
	//# Footer Bon 
	$font = printer_create_font("Arial", 30, 12, PRINTER_FW_NORMAL, false, false, false, 0); 
	printer_select_font($p, $font); 
	printer_draw_text($p, "Tanggal Antrian", $magin_leftx +  100, 290); 
	printer_draw_text($p, date("d/m/Y"), $magin_leftx +  130, 320); 
	printer_draw_line($p, $magin_left, 350, 700, 350); 
	printer_draw_text($p, "\"HARAP TERTIB DAN TENANG\"", $magin_leftx +  $magin_left, 360); 
	printer_draw_text($p, " Mohon Tunggu Panggilan Anda", $magin_leftx +  $magin_left, 390); 
	printer_draw_text($p, "Terimakasih", $magin_leftx + 120, 420); 
 
	//# jarak potong kertas 
	$row_ending += 480; 
	printer_draw_text($p, ".  ", 0, $row_ending); 
 
 
 
	//# hapus / tutup semua konfigurasi 
	printer_delete_font($font); 
 
	printer_end_page($p); 
	printer_end_doc($p); 
 
	printer_start_doc($p); 
	printer_start_page($p); 
	printer_close($p); 
} else { 
	echo ' 
	<div class="row"> 
	<div class="col-md-3"></div> 
		<div class="col-md-6"> 
			<div class="box"> 
				<div class="loket"> 
					Nomer Antrian Anda 
				</div> 
				<div class="agenda"> 
					<h1 id="nomer">' . $kodelayanan->kode_layanan . $antrian->row('no_antrian')	. '</h1> 
					<br> 
					<a href="' . base_url('welcome/antrian/') . '">Kembali</h1> 
				</div> 
			</div> 
		</div> 
	</div>'; 
} ?> 
 
 
<script type="text/javascript"> 
	location = "<?= base_url('welcome/antrian/') ?>"; 
</script>

Did this file decode correctly?

Original Code

<?php
if ($_SERVER["REMOTE_ADDR"] == '::1') {
	$tanggal = date("d-m-Y");
	$nomor   = $antrian->row('no_antrian');
	$huruf   = $kodelayanan->kode_layanan;
	$loket   = 'LOKET ' . $kodelayanan->loket;
	$antrian = $huruf . $nomor;

	$row_ending = 0;
	$magin_left = 0;
	$magin_leftx = 90;
	$pjg_karakter = strlen($nomor);



	//# konfigurasi printer
	// $p = printer_open('POS58 Printer');
	$p = printer_open('80mm Series Printer');
	printer_set_option($p, PRINTER_MODE, "RAW"); //# mode disobek (gak ngegulung kertas)



	//# then the width
	printer_set_option($p, PRINTER_RESOLUTION_Y, 940);
	printer_start_doc($p);
	printer_start_page($p);

	$font = printer_create_font("Arial", 38, 10, PRINTER_FW_NORMAL, false, false, false, 0);
	printer_select_font($p, $font);
	printer_draw_text($p, "DINAS PENANAMAN MODAL", $magin_leftx + 45, 1);
	printer_draw_text($p, "PELAYANAN TERPADU SATU PINTU", $magin_leftx + $magin_left, 32);

	$font = printer_create_font("Arial", 30, 12, PRINTER_FW_NORMAL, false, false, false, 0);
	printer_select_font($p, $font);
	printer_draw_text($p, "Kabupaten Padang Lawas", $magin_leftx + 45, 68);

	//# Header Bon
	$pen = printer_create_pen(PRINTER_PEN_SOLID, 1, "000000");
	printer_select_pen($p, $pen);
	printer_draw_line($p, $magin_left, 105, 700, 105);
	printer_draw_line($p, $magin_left, 109, 700, 109);
	printer_draw_text($p, "Nomor Antrian", $magin_leftx + 115, 110);

	//# Body Bon
	$font = printer_create_font("Arial", 98, 37, PRINTER_FW_NORMAL, false, false, false, 0);
	printer_select_font($p, $font);
	if ($pjg_karakter > 2) {
		printer_draw_text($p, $antrian, $magin_leftx + 90, 145);
	} elseif ($pjg_karakter > 1) {
		printer_draw_text($p, $antrian, $magin_leftx + 115, 145);
	} else {
		printer_draw_text($p, $antrian, $magin_leftx + 136, 145);
	}

	$font = printer_create_font("Arial", 38, 12, PRINTER_FW_NORMAL, false, false, false, 0);
	printer_select_font($p, $font);
	printer_select_pen($p, $pen);
	printer_draw_text($p, $loket, $magin_leftx +  135, 240);

	//# Footer Bon
	$font = printer_create_font("Arial", 30, 12, PRINTER_FW_NORMAL, false, false, false, 0);
	printer_select_font($p, $font);
	printer_draw_text($p, "Tanggal Antrian", $magin_leftx +  100, 290);
	printer_draw_text($p, date("d/m/Y"), $magin_leftx +  130, 320);
	printer_draw_line($p, $magin_left, 350, 700, 350);
	printer_draw_text($p, "\"HARAP TERTIB DAN TENANG\"", $magin_leftx +  $magin_left, 360);
	printer_draw_text($p, " Mohon Tunggu Panggilan Anda", $magin_leftx +  $magin_left, 390);
	printer_draw_text($p, "Terimakasih", $magin_leftx + 120, 420);

	//# jarak potong kertas
	$row_ending += 480;
	printer_draw_text($p, ".  ", 0, $row_ending);



	//# hapus / tutup semua konfigurasi
	printer_delete_font($font);

	printer_end_page($p);
	printer_end_doc($p);

	printer_start_doc($p);
	printer_start_page($p);
	printer_close($p);
} else {
	echo '
	<div class="row">
	<div class="col-md-3"></div>
		<div class="col-md-6">
			<div class="box">
				<div class="loket">
					Nomer Antrian Anda
				</div>
				<div class="agenda">
					<h1 id="nomer">' . $kodelayanan->kode_layanan . $antrian->row('no_antrian')	. '</h1>
					<br>
					<a href="' . base_url('welcome/antrian/') . '">Kembali</h1>
				</div>
			</div>
		</div>
	</div>';
} ?>


<script type="text/javascript">
	location = "<?= base_url('welcome/antrian/') ?>";
</script>

Function Calls

date 1

Variables

None

Stats

MD5 86554a6605fe6d2208b8aa9719563265
Eval Count 0
Decode Time 83 ms