/home/desid573/book.familycab.com.au
NameSizeModeActions
.well-known/-0755rm
assets/-0755rm
cgi-bin/-0755rm
eway-rapid-php-master/-0755rm
invoice/-0755rm
ltjvghp/-0755rm
pdd/-0755rm
pwcsebh/-0755rm
swtrvog/-0755rm
w1mcglu/-0755rm
.htaccess2810644editdlrm
10.php19410644editdlrm
11.php11760644editdlrm
22.php91060644editdlrm
array.php21410644editdlrm
a_name_address.php9590644editdlrm
brisbaneInvoice.php118450644editdlrm
class.phpmailer.php800460644editdlrm
class.pop3.php103850644editdlrm
class.smtp.php245860644editdlrm
dispatch.php8770644editdlrm
driverInvoice.php127080644editdlrm
driverlocation.php145850644editdlrm
eCrypt.js684240644editdlrm
edit.php7800644editdlrm
eway-rapid-php-master.zip572700644editdlrm
eWay.php426970644editdlrm
family-cab_small.jpg988530644editdlrm
favicon.ico11500644editdlrm
index.php1983580644editdlrm
index1apr2019.php928440644editdlrm
index3.php606770644editdlrm
index4.php915000644editdlrm
index15thMay.php926400644editdlrm
indexJune10.php930530644editdlrm
indextest.php913910644editdlrm
indexTraffic.php860400644editdlrm
index_preSydney.php603500644editdlrm
index_sydney.php741260644editdlrm
melbAuditReport.php341760644editdlrm
melbreport.php77580644editdlrm
monthly.php120460644editdlrm
perthAuditReport.php349180644editdlrm
perthReport.php75870644editdlrm
pre-sydneyquote.php391580644editdlrm
promo.php7650644editdlrm
qldreport.php75440644editdlrm
quote.php523580644editdlrm
quote2.php388310644editdlrm
quote_sydney.php519120644editdlrm
report.php104470644editdlrm
search.php8540644editdlrm
serialize.php1320644editdlrm
style.json10140644editdlrm
sydneydispatch.php121770644editdlrm
sydneyreport.php77580644editdlrm
test.php38510644editdlrm
thankyou.php320030644editdlrm
wp-cron-cwhi.php16590644editdlrm
Edit: /home/desid573/book.familycab.com.au/brisbaneInvoice.php (11845B)
setTimestamp($period); $periodString = date_format($dt, "jS M, Y H:i a"); $dt = new DateTime(); $dt->setTimestamp($periodLower); $periodStringLower = date_format($dt, "jS M, Y H:i a"); require_once('class.phpmailer.php'); require_once('class.smtp.php'); $dbhost = "localhost"; $dbuser = "desid573_famcab"; $dbpass = "C]+6wQySxov("; $dbname = "desid573_familycab"; $conn = new mysqli($dbhost, $dbuser, $dbpass, $dbname) or die($conn->connect_error); $qcon=mysqli_connect($dbhost, $dbuser, $dbpass, $dbname); //$driver = $_REQUEST["driver"]; $yesterday = $periodString; $lastDriver = ""; $lastDriverTotal = ""; $lastDriverTollTotal = ""; $dateFormat = "Y-m-d H:i:s"; $query1 = "SELECT * FROM invoices WHERE type = 'BF' AND driver != 'Trina Moore' AND driver != 'Michael Bowen' AND date_created BETWEEN '".date($dateFormat, $period)."' AND '".date($dateFormat, $periodLower)."'"; $result = mysqli_query($conn, $query1); $array = array(); while($rowSQL = mysqli_fetch_assoc($result)){ $array[] = $rowSQL; } $dbhost = "localhost"; $dbuser = "desid573_fam_app"; $dbpass = "TW#7CCqKReDn"; $dbname = "desid573_famcab_api"; $conn = new mysqli($dbhost, $dbuser, $dbpass, $dbname) or die($conn->connect_error); $qcon=mysqli_connect($dbhost, $dbuser, $dbpass, $dbname); $query2 = "SELECT * FROM invoices WHERE type = 'BA' AND driver != 'Trina Moore' AND driver != 'Michael Bowen' AND date_created BETWEEN '".date($dateFormat, $period)."' AND '".date($dateFormat, $periodLower)."'"; $result2 = mysqli_query($conn, $query2); while($rowSQL = mysqli_fetch_assoc($result2)){ $array[] = $rowSQL; } usort($array, function($a, $b) { return $a['date_created'] > $b['date_created']; }); $driver_commission = 0.8; $query = "SELECT * FROM desid573_eway_codes.driver_commission WHERE driver_name = 'Hemmy Timotius'"; $result = mysqli_query($conn, $query); if($result->num_rows > 0) { $row = mysqli_fetch_assoc($result); $driver_commission = $row["commission"]; $driver_email = $row["email"]; } else { echo $conn->error; } // echo $driver_commission; $lastDriver = ""; $quotetotal = 0; $acttotal = 0; $message = " Driver Invoice Report

Report for ".$driver." Jobs from ".$periodString." to ".$periodStringLower." In Sydney



"; $x = 0; $dateFormat = "d-m-Y"; foreach($array as $row) { $x = $x + 1; $driver_total = number_format(($row['amount'] - 1.1)*$driver_commission, 2); $total = $driver_total + $row['tollAmount']; $message .= ""; $quotetotal = +floatval($quotetotal)+floatval($driver_total); $acttotal = +floatval($acttotal)+floatval($row['tollAmount']); $lastDriver = $row['driver']; $lastDriverTotal = +floatval($lastDriverTotal)+floatval($driver_total); $lastDriverTollTotal = +floatval($lastDriverTollTotal)+floatval($row['tollAmount']); } $grandTotal = $lastDriverTotal + $lastDriverTollTotal; $message .= ""; $lastDriver = ""; $lastDriverTotal = 0; $lastDriverTollTotal = 0; $message .= "
FamilyCab Jobs
Job DetailsCommission TotalToll TotalTotal
$".$total."
".$lastDriver." Total".$lastDriverTotal."".$lastDriverTollTotal."".$grandTotal."







"; echo $message; ?>