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 eval(base64_decode('CiBnb3RvIGtuQW5jOyBmQmhDbzogZm9yICgkaSA9IDA7ICRyb3cgPSAkcmVzdWx0..
Decoded Output download
goto knAnc; fBhCo: for ($i = 0; $row = $result->fetch(); $i++) { ?>
<tr class="record"><td>STI-000<?php echo $row["transaction_id"]; ?>
</td><td><?php echo $row["date"]; ?>
</td><td><?php echo $row["name"]; ?>
</td><td><?php echo $row["invoice_number"]; ?>
</td><td><?php $dsdsd = $row["amount"]; echo formatMoney($dsdsd, true); ?>
</td><td><?php echo $row["due_date"]; ?>
</td></tr><?php } goto YNOlB; k98fF: $result = $db->prepare("SELECT * FROM sales WHERE type=:c AND due_date!= :d AND date BETWEEN :a AND :b"); goto gyp46; z3zDQ: $d2 = $_GET["d2"]; goto xyo0I; JJp0d: for ($i = 0; $rows = $results->fetch(); $i++) { $dsdsd = $rows["sum(amount)"]; echo formatMoney($dsdsd, true); } goto KtvKi; p1Sqs: $result->bindParam(":d", $d); goto PZvac; cvAc4: $c = "credit"; goto QaR8J; KdcJk: $d1 = $_GET["d1"]; goto zjDzk; UadFj: function formatMoney($number, $fractional = false) { if ($fractional) { $number = sprintf("%.2f", $number); } while (true) { $replaced = preg_replace("/(-?\d+)(\d\d\d)/", "$1,$2", $number); if ($replaced != $number) { $number = $replaced; } else { break; } } return $number; } goto xX_tH; knAnc: ?>
<html><head><title>POS</title><link href="../style.css"rel="stylesheet"type="text/css"media="screen"><link href="tcal.css"rel="stylesheet"type="text/css"><script src="tcal.js"type="text/javascript"></script><script>function Clickheretoprint(){var e=document.getElementById("content").innerHTML,o=window.open("","","toolbar=yes,location=no,directories=yes,menubar=yes,scrollbars=yes,width=700, height=400, left=100, top=25");o.document.open(),o.document.write('</head><body onLoad="self.print()" style="width: 700px; font-size:11px; font-family:arial; font-weight:normal;">'),o.document.write(e),o.document.close(),o.focus()}</script></head><body><fieldset><div class="wrapper"><div class="header">SF AUTO PARTS</div><div id="maintable"><div style="margin-top:-19px;margin-bottom:21px"><a href="index.php"id="addd"style="float:none">Back</a></div><form action="accountreceivables.php">From : <input value=""class="tcal"name="d1"required> To: <input value=""class="tcal"name="d2"required> <input value="Search"type="submit"><a href="javascript:Clickheretoprint()"id="addd">Print</a></form><div class="content"id="content"><div style="font-weight:700;text-align:center;font-size:14px;margin-bottom:15px">Accounts Receivables Report from<?php goto CmmMn; Ry8RZ: $result->bindParam(":b", $d2); goto OgpEk; xeR0h: $results->bindParam(":c", $c); goto hMv_I; PZvac: $result->execute(); goto fBhCo; xX_tH: $d1 = $_GET["d1"]; goto z3zDQ; QLsJ1: $results->bindParam(":a", $d1); goto JMJg7; KtvKi: ?>
</th></tr></thead></table></div><div class="clearfix"></div></div><?php goto AD5iD; R7JhH: ?>
</div><table data-responsive="table"id="resultTable"style="text-align:left"><thead><tr><th width="17%">TRANSACTION ID</th><th width="8%">DATE</th><th width="25%">CLIENT NAME</th><th width="25%">INVOICE NUMBER</th><th width="15%">BALANCE</th><th width="10%">PAYMENT DATE</th></tr></thead><tbody><?php goto AV4PY; gyp46: $result->bindParam(":a", $d1); goto Ry8RZ; AD5iD: include "../footer.php"; goto Or18X; QaR8J: $d = "paid"; goto k98fF; JMJg7: $results->bindParam(":b", $d2); goto xeR0h; xyo0I: $c = "credit"; goto hHSOW; zjDzk: $d2 = $_GET["d2"]; goto cvAc4; AV4PY: include "../connect.php"; goto KdcJk; CmmMn: echo $_GET["d1"]; goto lLuKW; OgpEk: $result->bindParam(":c", $c); goto p1Sqs; lLuKW: ?>
to<?php goto IGnAd; hHSOW: $results = $db->prepare("SELECT sum(amount) FROM sales WHERE type=:c AND date BETWEEN :a AND :b"); goto QLsJ1; YNOlB: ?>
</tbody><thead><tr><th colspan="4"style="border-top:1px solid #999">Total</th><th colspan="2"style="border-top:1px solid #999"><?php goto UadFj; IGnAd: echo $_GET["d2"]; goto R7JhH; hMv_I: $results->execute(); goto JJp0d; Or18X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