Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
eval(base64_decode('JGNvZGVsb2NrX2NvZGU9ImEhamJIVmtaU0FvSW1OdmJtWnBaeTlEYjI1dVpXTjBhVzl1TG..
Decoded Output download
include ("config/Connection.php");
mysql_query("set character_set_results='utf8'");
$Invoice = $_REQUEST['Invoice'];
$rs = mysql_query("select * from trans where Invoice='$Invoice'");
while ($newArray = mysql_fetch_array($rs)) {
$TBill = $newArray['Amount'];
$TD = $newArray['Discount'];
$Cash = $newArray['Cash'];
$Card = $newArray['Card'];
$Date = $newArray['Date'];
$Time = $newArray['Time'];
$Tbl= $newArray['Service'];
}
$rs=mysql_query("select * from sale where Invoice='$Invoice'");
while($newArray=mysql_fetch_array($rs)) {
$Sale_Type= $newArray['Sale_Type'];
}
$Date = date("d-m-Y", strtotime($Date));
$rs=mysql_query("select * from saler where Invoice='$Invoice'");
while($newArray=mysql_fetch_array($rs)) {
$worker= $newArray['Sale_Type'];
$AccountId= $newArray['AccountId'];
$Card= $newArray['Card'];
}
$rs=mysql_query("select * from worker_detail where id='$worker'");
while($newArray=mysql_fetch_array($rs)) {
$WName= $newArray['Name'];
}
$rs=mysql_query("select * from delivery_client where Phone='$Card'");
while($newArray=mysql_fetch_array($rs)) {
$Name= $newArray['Name'];
$Phone= $newArray['Phone'];
$Address= $newArray['Address'];
$Remarks= $newArray['Remarks'];
$Card= $newArray['Id'];
}
$rs=mysql_query("select * from login where AccountId='$AccountId'");
while($newArray=mysql_fetch_array($rs)) {
$UserName= $newArray['UserName'];
}
?>
<script>
SecondPrint();
function SecondPrint()
{
window.open("dubil.php?Invoice=<? echo $Invoice; ?>","_blank");
}
</script>
<body onLoad="javascript:window.print();closeme();">
<table width="294" height="144">
<tr>
<td align="center" colspan="2"><font size="5" face="Calibri, Arial Black"><b>DUPLICATE BILL FOR KITCHEN</b></font></td>
</tr>
<tr >
<td align="center" colspan="9" ><strong>
<?php if ($Sale_Type==2){ echo "Dine In"; } else { echo "Take Away"; }?>
</strong></td>
</tr>
<tr>
<td colspan="5"><strong><?php echo $WName; ?> / <?php echo $Tbl; ?> / <?php echo $UserName; ?></strong></td>
</tr>
<tr>
<td width="167"><strong><font size="6" face="Calibri, Arial">BILL# <?php echo $Invoice; ?></font></strong></td>
<td width="17" align="right"><strong><?php echo $Date; ?></strong></td>
<td align="right"> <strong><?php echo date("h:i A", time()); ?></strong></td>
</tr>
<? if ($Card!=NULL) { ?>
<tr>
<td colspan="7"><strong><? echo ' <b>'.$Name.'</b> '.$Phone; ?></strong></td>
</tr>
<tr>
<th colspan="8"><strong><? echo $Address; ?></strong></th>
</tr>
<tr>
<th colspan="100"><span class="style2"><? echo $Remarks; ?></span></th>
</tr>
<? }
Did this file decode correctly?
Original Code
eval(base64_decode('JGNvZGVsb2NrX2NvZGU9ImEhamJIVmtaU0FvSW1OdmJtWnBaeTlEYjI1dVpXTjBhVzl1TG5Cb2NDSXBPdzBLYlhsemNXeGZjWFZsY25rb0luTmxkQ0JqYUdGeVlXTjBaWEpmYzJWMFgzSmxjM1ZzZEhNOUozVjBaamduSWlrN0RRb2tTITJiMmxqWlNBOUlDUmZVa1ZSVlVWVFZGc25TITJiMmxqWlNkZE93MEtKSEp6SUQwZ2JYbHpjV3hmY1hWbGNua29Jbk5sYkdWamRDQXFJR1p5YjIwZ2RISmhibk1nZDJobGNtVWdTITJiMmxqWlQwbkpFbHVkbTlwWTJVbklpazdEUXAzYUdsc1pTQW9KRzVsZDBGeWNtRjVJRDBnYlhsemNXeGZabVYwWTJoZllYSnlZWGtvSkhKektTa2dldzBLSSpDUlVRbWxzYkNBOUlDUnVaWGRCY25KaGVWc25RVzF2ZCEwSjEwN0RRb2dJQEpGUkVJRDBnSkc1bGQwRnljbUY1V3lkRWFYTmpiM1Z1ZENkZE93MEtJKkNSRFlYTm9JRDBnSkc1bGQwRnljbUY1V3lkRFlYTm9KMTA3RFFvZ0lASkVOaGNtUWdQU0FrYm1WM1FYSnlZW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