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 require_once ("connection.php"); $idproject = $_POST['show_project']; $select = "S..
Decoded Output download
<?php require_once ("connection.php");
$idproject = $_POST['show_project'];
$select = "SELECT * FROM tb_certificate_user WHERE project = '" . $idproject . "'";
$resultuser = $con->query($select);;
echo '
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div class="table-responsive">
<table id="listuser" class="table table-striped table-bordered" cellspacing="0">
<thead>
<tr class="text-center">
<th>ลำดับ</th>
<th>ชื่อ-สกุล</th>
<th>หมายเลขเกียรติบัตร</th>
<th>ไฟล์เกียรติบัตร PDF</th>
</tr>
</thead>
<tbody>
';
$no = 1;
while ($rowuserlist = $resultuser->fetch_assoc()) {;
echo ' <tr>
<td>
<center>
';
echo $no++;;
echo ' </center>
</td>
<td>
';
echo $rowuserlist["namecer"];;
echo ' </td>
<td>
<center>
';
echo $rowuserlist["ckcer"];;
echo ' </center>
</td>
<td>
<center>
<center>
<form action="printcer.php" method="post" class="mt-0 mb-0">
<input hidden name="idcer" value="';
echo $rowuserlist["idcer"];;
echo '">
<input hidden name="idproject" value="';
echo $rowuserlist["project"];;
echo '">
<button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-print"></i> ดาวน์โหลด</button>
</form>
</center>
</center>
</td>
</tr>
';
};
echo ' </tbody>
</table>
</div>
<script>
$(document).ready(function() {
$(\'#listuser\').DataTable({
"oLanguage": {
"sEmptyTable": "ไม่มีข้อมูลในตาราง",
"sInfo": "แสดง _START_ ถึง _END_ จาก _TOTAL_ แถว",
"sInfoEmpty": "แสดง 0 ถึง 0 จาก 0 แถว",
"sInfoFiltered": "(กรองข้อมูล _MAX_ ทุกแถว)",
"sInfoPostFix": "",
"sInfoThousands": ",",
"sLengthMenu": "แสดง _MENU_ แถว",
"sLoadingRecords": "กำลังโหลดข้อมูล...",
"sProcessing": "กำลังดำเนินการ...",
"sSearch": "ค้นหา: ",
"sZeroRecords": "ไม่พบข้อมูล",
"oPaginate": {
"sFirst": "หน้าแรก",
"sPrevious": "ก่อนหน้า",
"sNext": "ถัดไป",
"sLast": "หน้าสุดท้าย"
},
"oAria": {
"sSortAscending": ": เปิดใช้งานการเรียงข้อมูลจากน้อยไปมาก",
"sSortDescending": ": เปิดใช้งานการเรียงข้อมูลจากมากไปน้อย"
}
}
});
});
</script>
</body>
</html>';
?>
Did this file decode correctly?
Original Code
<?php require_once ("connection.php");
$idproject = $_POST['show_project'];
$select = "SELECT * FROM tb_certificate_user WHERE project = '" . $idproject . "'";
$resultuser = $con->query($select);;
echo '
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div class="table-responsive">
<table id="listuser" class="table table-striped table-bordered" cellspacing="0">
<thead>
<tr class="text-center">
<th>ลำดับ</th>
<th>ชื่อ-สกุล</th>
<th>หมายเลขเกียรติบัตร</th>
<th>ไฟล์เกียรติบัตร PDF</th>
</tr>
</thead>
<tbody>
';
$no = 1;
while ($rowuserlist = $resultuser->fetch_assoc()) {;
echo ' <tr>
<td>
<center>
';
echo $no++;;
echo ' </center>
</td>
<td>
';
echo $rowuserlist["namecer"];;
echo ' </td>
<td>
<center>
';
echo $rowuserlist["ckcer"];;
echo ' </center>
</td>
<td>
<center>
<center>
<form action="printcer.php" method="post" class="mt-0 mb-0">
<input hidden name="idcer" value="';
echo $rowuserlist["idcer"];;
echo '">
<input hidden name="idproject" value="';
echo $rowuserlist["project"];;
echo '">
<button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-print"></i> ดาวน์โหลด</button>
</form>
</center>
</center>
</td>
</tr>
';
};
echo ' </tbody>
</table>
</div>
<script>
$(document).ready(function() {
$(\'#listuser\').DataTable({
"oLanguage": {
"sEmptyTable": "ไม่มีข้อมูลในตาราง",
"sInfo": "แสดง _START_ ถึง _END_ จาก _TOTAL_ แถว",
"sInfoEmpty": "แสดง 0 ถึง 0 จาก 0 แถว",
"sInfoFiltered": "(กรองข้อมูล _MAX_ ทุกแถว)",
"sInfoPostFix": "",
"sInfoThousands": ",",
"sLengthMenu": "แสดง _MENU_ แถว",
"sLoadingRecords": "กำลังโหลดข้อมูล...",
"sProcessing": "กำลังดำเนินการ...",
"sSearch": "ค้นหา: ",
"sZeroRecords": "ไม่พบข้อมูล",
"oPaginate": {
"sFirst": "หน้าแรก",
"sPrevious": "ก่อนหน้า",
"sNext": "ถัดไป",
"sLast": "หน้าสุดท้าย"
},
"oAria": {
"sSortAscending": ": เปิดใช้งานการเรียงข้อมูลจากน้อยไปมาก",
"sSortDescending": ": เปิดใช้งานการเรียงข้อมูลจากมากไปน้อย"
}
}
});
});
</script>
</body>
</html>';
Function Calls
| None |
Stats
| MD5 | 0d52f3282f8786e7ca0f55912df5c71a |
| Eval Count | 0 |
| Decode Time | 61 ms |