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 $_F=__FILE__;$_X='P2lCP1ouWlZ6TXZRc3pNX09IMk0+J1hYaFdzPHplenFoQVFIMj1zT0huWFouWic7Vl..
Decoded Output download
?><?php
require_once '../library/functions.php';
checkUser();
session_timeout();
// storing request (ie, get/post) global array to a variable
$requestData= $_REQUEST;
$columns = array(
// datatable column index => database column name
0 => 'Emri',
1 => 'Emri',
2 => 'Telefoni',
3 => 'DataLindjes',
4 => 'Adresa',
5 => 'Qyteti',
6 => 'SumVlera',
7 => 'SumPaguar',
8 => 'SumMbetur'
);
/*$myfile = fopen("requestData.txt", "w");
fwrite($myfile, $_REQUEST['debitoret']);
fclose($myfile);*/
$V0 = "0000-00-00";
$sqlArkiv=$sqlDebitore = "";
$Arkiv_ = (int)$_REQUEST['arkiv'];
$Debitore = (int)$_REQUEST['debitoret'];
$currFirmaID = (int)$_REQUEST['fId'];
$displayDelete = $_REQUEST['del'];
if($Arkiv_ == 0){
$sqlArkiv=" AND Arkiv=0";
}
if($Debitore == 1){
$sqlDebitore=" AND (MbeturByPacienti(PacientiID,$Arkiv_)-AvansByPacienti(PacientiID))>0";
}
// getting total number records without any search
$sql = "SELECT Emri, Mbiemri, DataLindjes ";
$sql.=" FROM tblPacienti";
$sql.=" WHERE Deleted<>1 AND FirmaID = $currFirmaID $sqlArkiv $sqlDebitore";
$query=mysqli_query($dbConn, $sql) or die("lista-pacienti.php: get employees");
$totalData = mysqli_num_rows($query);
$totalFiltered = $totalData; // when there is no search parameter then total number rows = total number filtered rows.
$sql = "SELECT PacientiID, Emri, EmriPrindit, Mbiemri, DataLindjes, VendiLindjes, NrPersonal, Telefoni, Adresa, Qyteti, Token, Arkiv,
VleraByPacienti(PacientiID,$Arkiv_) AS SumVlera, PaguarByPacienti(PacientiID,$Arkiv_) AS SumPaguar,
MbeturByPacienti(PacientiID,$Arkiv_) AS SumMbetur, AvansByPacienti(PacientiID) AS SumAvans";
$sql.=" FROM tblPacienti";
$sql.=" WHERE Deleted<>1 AND FirmaID = $currFirmaID $sqlArkiv $sqlDebitore";
if( !empty($requestData['search']['value']) ) { // if there is a search parameter, $requestData['search']['value'] contains search parameter
$sql.=" AND ( CONCAT(Emri,' ',Mbiemri) LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR Mbiemri LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR DataLindjes LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR Adresa LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR Qyteti LIKE '".$requestData['search']['value']."%' )";
}
/*$myfile = fopen("load-pacienti.txt", "w");
fwrite($myfile, $sql);
fclose($myfile);*/
$query=mysqli_query($dbConn, $sql) or die("lista-pacienti.php: get employees");
$totalFiltered = mysqli_num_rows($query); // when there is a search parameter then we have to modify total number filtered rows as per search result.
//$sql.=" ORDER BY Emri, Mbiemri LIMIT ".$requestData['start']." ,".$requestData['length']." ";
$sql.=" ORDER BY ". $columns[$requestData['order'][0]['column']]." ".$requestData['order'][0]['dir']." LIMIT ".$requestData['start']." ,".$requestData['length']." ";
/* $requestData['order'][0]['column'] contains colmun index, $requestData['order'][0]['dir'] contains order such as asc/desc */
$query=mysqli_query($dbConn, $sql) or die("lista-pacienti.php: get employees");
$data = array(); $Nr = 0;
while( $row=mysqli_fetch_array($query) ) { // preparing an array
extract($row);
$Nr++;
$PacientiID_ = $PacientiID+2018;
$enPacientiID = base64_encode('pacienti-Id-'.$PacientiID_); //12
$Pacienti = $Emri.' '.$Mbiemri;
if(($DataLindjes<>'')&&($DataLindjes<>$V0)){$DataLindjes = date('d.m.Y', strtotime($DataLindjes));} else {$DataLindjes="";}
$nestedData=array();
$nestedData[] = $Nr;
$nestedData[] = "<a href='pacienti/?view=pacienti&pId=$enPacientiID'>$Pacienti</a>";
$nestedData[] = '<td align="center">'.$Telefoni.'</td>';
$nestedData[] = '<td align="center">'.$DataLindjes.'</td>';
$nestedData[] = '<td >'.$Adresa.'</td>';
$nestedData[] = '<td >'.$Qyteti.'</td>';
$nestedData[] = '<td align="center"><span class="label label-info">'.number_format($SumVlera,2).'</span></td>';
$nestedData[] = '<td align="center"><span class="label label-success">'.number_format($SumPaguar+$SumAvans,2).'</span></td>';
$nestedData[] = '<td align="center"><span class="label label-danger">'.number_format($SumMbetur-$SumAvans,2).'</span></td>';
$nestedData[] = '<td align="center"><a href="pacienti/?edit&frm=pacienti&pId='.$enPacientiID.'"><button class="btn btn-default btn-xs" title="Ndrysho" >
<i class="fa fa-pencil-square-o"></i></button></a></td>';
$nestedData[] = '<td align="center" style="'.$displayDelete.'">
<button class="btn btn-outline btn-danger btn-xs" title="Fshij" onClick="deletePacienti(\''.$PacientiID.'\', \''.$Pacienti.'\')";>
<i class="fa fa-trash-o"></i>
</button>
</td>';
$nestedData[] = '</tr>';
$data[] = $nestedData;
}
$json_data = array(
"draw" => intval( $requestData['draw'] ), // for every request/draw by clientside , they send a number as a parameter, when they recieve a response/data they first check the draw number, so we are sending same number in draw.
"recordsTotal" => intval( $totalData ), // total number of records
"recordsFiltered" => intval( $totalFiltered ), // total number of records after searching, if there is no searching then totalFiltered = totalData
"data" => $data // total data array
);
echo json_encode($json_data); // send data as json format
mysqli_close($dbConn);
exit;
?>
Did this file decode correctly?
Original Code
<?php $_F=__FILE__;$_X='P2lCP1ouWlZ6TXZRc3pNX09IMk0+J1hYaFdzPHplenFoQVFIMj1zT0huWFouWic7VlYyLk0yeSBuTXooKTtWbk1ubnNPSF89c1lNT1E9KCk7VlZoaD5uPU96c0h4Pj56TXZRTW49PihzTSw+eE09aFpPbj0pPnhXTzxlVz5lenplcT49Tz5lPmNlenNlPFdNPj5WJHpNdlFNbj00ZT1lUz4kX2dLdyBLcFQ7VlYkMk9XUVlIbj5TPmV6emVxKD5WaGg+OWU9ZT1lPFdNPjJPV1FZSD5zSDlNUj4+U2k+OWU9ZTxlbk0+Mk9XUVlIPkhlWU1WCWE+U2k+J0tZenMnLD5WCTA+U2k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