Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
include_once("inc/cDbcon.php"); //include_once("inc/functions.php"); include_once("inc/s..
Decoded Output download
<? include_once("inc/cDbcon.php");
//include_once("inc/functions.php");
include_once("inc/security.php");
$nav = "bill";
$subnav = "billstafflist";
$strAction = "";
if (isset($_GET["transportstaff_no"])) {
$transportstaff_no = $_GET["transportstaff_no"];
} else {
header("location: transportstaff.php");
}
$list = $conn->query("SELECT tbltransport.bill_no, tbltransport.address, tbltransport.sender_name, tbltransport.customer_name, tbltransport.customer_phone, tbltransport.transport_status, tbltransport.pprice_status, tbltransport.tprice, tbltransport.tprice_status, tbltransport.sprice, tbltransport.sprice_status, tbltransportstaff.user_id, tbltransportstaff.date_created FROM tbltransport INNER JOIN tbltransportstaff ON (tbltransportstaff.bill_no = tbltransportstaff.bill_no) WHERE tbltransportstaff.transportstaff_no = '$transportstaff_no'");
$entrycount = $list->num_rows;
$bill_no = [];
$address = [];
$sender_name = [];
$customer_name = [];
$customer_phone = [];
$transport_status = [];
$pprice_status = [];
$tprice = [];
$tprice_status = [];
$sprice = [];
$sprice_status = [];
$user_id = [];
$date_created = [];
while ($row = $list->fetch_assoc()) {
$bill_no[] = $row["bill_no"];
$address[] = $row["address"];
$sender_name[] = $row["sender_name"];
$customer_name[] = $row["customer_name"];
$customer_phone[] = $row["customer_phone"];
$transport_status[] = $row["transport_status"];
$pprice_status[] = $row["pprice_status"];
$tprice[] = $row["tprice"];
$tprice_status[] = $row["tprice_status"];
$sprice[] = $row["sprice"];
$sprice_status[] = $row["sprice_status"];
$user_id[] = $row["user_id"];
$date_created[] = $row["date_created"];
}
$userlist = $conn->query("SELECT user_id, full_name FROM tbluser WHERE role = 3");
$userid = [];
$full_name = [];
while ($userlis_row = $userlist->fetch_assoc()) {
$userid[] = $userlis_row["user_id"];
$full_name[] = $userlis_row["full_name"];
}
$key = array_search($user_id[0], $userid);
$totalproductpricek = 0;
$totalproductpriceb = 0;
$totalproductpriceu = 0;
$totaltprice = 0;
$totalsprice = 0; ?>
Did this file decode correctly?
Original Code
include_once("inc/cDbcon.php");
//include_once("inc/functions.php");
include_once("inc/security.php");
$nav = "bill";
$subnav = "billstafflist";
$strAction = "";
if (isset($_GET["transportstaff_no"])) {
$transportstaff_no = $_GET["transportstaff_no"];
} else {
header("location: transportstaff.php");
}
$list = $conn->query("SELECT tbltransport.bill_no, tbltransport.address, tbltransport.sender_name, tbltransport.customer_name, tbltransport.customer_phone, tbltransport.transport_status, tbltransport.pprice_status, tbltransport.tprice, tbltransport.tprice_status, tbltransport.sprice, tbltransport.sprice_status, tbltransportstaff.user_id, tbltransportstaff.date_created FROM tbltransport INNER JOIN tbltransportstaff ON (tbltransportstaff.bill_no = tbltransportstaff.bill_no) WHERE tbltransportstaff.transportstaff_no = '$transportstaff_no'");
$entrycount = $list->num_rows;
$bill_no = [];
$address = [];
$sender_name = [];
$customer_name = [];
$customer_phone = [];
$transport_status = [];
$pprice_status = [];
$tprice = [];
$tprice_status = [];
$sprice = [];
$sprice_status = [];
$user_id = [];
$date_created = [];
while ($row = $list->fetch_assoc()) {
$bill_no[] = $row["bill_no"];
$address[] = $row["address"];
$sender_name[] = $row["sender_name"];
$customer_name[] = $row["customer_name"];
$customer_phone[] = $row["customer_phone"];
$transport_status[] = $row["transport_status"];
$pprice_status[] = $row["pprice_status"];
$tprice[] = $row["tprice"];
$tprice_status[] = $row["tprice_status"];
$sprice[] = $row["sprice"];
$sprice_status[] = $row["sprice_status"];
$user_id[] = $row["user_id"];
$date_created[] = $row["date_created"];
}
$userlist = $conn->query("SELECT user_id, full_name FROM tbluser WHERE role = 3");
$userid = [];
$full_name = [];
while ($userlis_row = $userlist->fetch_assoc()) {
$userid[] = $userlis_row["user_id"];
$full_name[] = $userlis_row["full_name"];
}
$key = array_search($user_id[0], $userid);
$totalproductpricek = 0;
$totalproductpriceb = 0;
$totalproductpriceu = 0;
$totaltprice = 0;
$totalsprice = 0;
Function Calls
None |
Stats
MD5 | 807ed594b1e51101e5b703a9454ef7a9 |
Eval Count | 0 |
Decode Time | 95 ms |