Hackfut Security File Manager
Current Path:
/home/u126195517/domains/rdnirjaldhulai.com/public_html
home
/
u126195517
/
domains
/
rdnirjaldhulai.com
/
public_html
/
๐
..
๐
aarambh.php
(2.46 KB)
๐
about.php
(4.71 KB)
๐
adi.php
(2.45 KB)
๐
adi_terms.php
(5.85 KB)
๐
agrima.php
(2.3 KB)
๐
app-ads.txt
(58 B)
๐
applications
๐
booking.php
(2.46 KB)
๐
booking_terms.php
(4.16 KB)
๐
composer.phar
(2.97 MB)
๐
config.php
(633 B)
๐
contact.php
(4.02 KB)
๐
contact_process.php
(3.05 KB)
๐
delete_account.php
(3.41 KB)
๐
error_log
(0 B)
๐
footer.php
(3.68 KB)
๐
google028f325756238b38.html
(53 B)
๐
google7c0482add8b65d24.html
(53 B)
๐
googledbda1fce9a3128a0.html
(53 B)
๐
header.php
(3.26 KB)
๐
images
๐
index.php
(9.03 KB)
๐
onetwothree3.php
(177.99 KB)
๐
prarambh.php
(2.51 KB)
๐
preshayati.php
(2.31 KB)
๐
privacy.php
(6.36 KB)
๐
product_edition_template.php
(4.13 KB)
๐
products.php
(3.21 KB)
๐
robots.txt
(73 B)
๐
rohati.php
(2.3 KB)
๐
samapurna.php
(2.31 KB)
๐
termsconditions.html
(325.84 KB)
๐
termsconditions.php
(7.69 KB)
๐
test_push.php
(1.49 KB)
๐
testing3.php
(7.88 KB)
๐
user_new.php
(20.86 KB)
๐
v3.php
(20.86 KB)
๐
web_assets
๐
web_vendor
Editing: testing3.php
<?php ini_set('memory_limit', '2G'); // Enable error reporting for debugging error_reporting(E_ALL); ini_set('display_errors', 1); // Include TCPDF require_once('tcpdf/tcpdf.php'); require_once './prarambhappapi/controlers/configs/rdndappuserconfig.php'; require_once './prarambhappapi/controlers/configs/prarambhappconfig.php'; $bilno = 7; $userid = 1; try { $stmt = $RDSAPPUSER->prepare('SELECT * FROM rdnd_user_detail WHERE user_id = :lognm'); $stmt->execute(array(':lognm' => $userid)); $parinam = $stmt->fetch(PDO::FETCH_ASSOC); if ($parinam) { $shoplogo = $parinam['user_shop_logo']; $shopnam = $parinam['user_shopNm']; $area = $parinam['user_area']; $city = $parinam['user_city']; $pin = $parinam['user_pin_code']; $state = $parinam['user_state']; $mbno1 = $parinam['user_mbNo1']; $mbno2 = $parinam['user_mbNo2']; $aracod = $parinam['user_area_code']; $lndline = $parinam['user_lanline_no']; // Construct contact details $contacts = array_filter([$mbno1, $mbno2]); $contact = !empty($contacts) ? "Mob. No. : " . implode(", ", $contacts) : ""; if (!empty($lndline)) { $contact .= (!empty($contact) ? ", " : "") . "Landline No. : {$aracod} - {$lndline}"; } // Construct address details $addresses = array_filter([ $parinam['user_shpNo'], $parinam['user_aptNam'], $parinam['user_buildNo'], $parinam['user_nearby'], $parinam['user_stretNam'], $parinam['user_landmrk'] ]); $addres = implode(", ", $addresses); // Remove unwanted slashes $addres = str_replace("/", ",", $addres); $gstnum = $parinam['user_gst_no']; $gststate = $parinam['user_gst_status']; } } catch (Exception $ex) { echo "Error fetching user details: " . $ex->getMessage(); } // Fetch bill details try { $stmt1 = $RDSAPP->prepare('SELECT * FROM wash_bills WHERE bill_no = :bno AND user_id = :uid'); $stmt1->execute(array(':bno' => $bilno, ':uid' => $userid)); $parinam1 = $stmt1->fetch(PDO::FETCH_ASSOC); if (!empty($parinam1['bill_ser_no'])) { $b_date = date('d/m/Y', strtotime(str_replace('-', '/', $parinam1["date"]))); $d_date = date('d/m/Y', strtotime(str_replace('-', '/', $parinam1["deliv_date"]))); $ccode = $parinam1["c_code"]; $bilstat = $parinam1['work_status']; $sgstrate = $parinam1['s_gst_rate']; $cgstrate = $parinam1['c_gst_rate']; $gstrate = $sgstrate + $cgstrate; // Corrected $sgstamt = $parinam1['s_gst_amt']; $cgstamt = $parinam1['c_gst_amt']; $gstamt = $sgstamt + $cgstamt; // Corrected $grndamt = $parinam1['grand_amt']; } } catch (Exception $ex) { echo "Error fetching bill details: " . $ex->getMessage(); } // Fetch client details try { $stmt2 = $RDSAPPUSER->prepare('SELECT * FROM client_detail WHERE c_code = :ccd'); $stmt2->execute(array(':ccd' => $ccode)); $parinam2 = $stmt2->fetch(PDO::FETCH_ASSOC); if (!empty($parinam2['c_name'])) { $clientnam = $parinam2["c_name"]; $clientmob = $parinam2["c_mobileno1"]; $cltgstnum = $parinam2["c_gst_no"]; // Construct client address details $caddresses = array_filter([ $parinam2['c_houseNo'], $parinam2['c_aptNam'], $parinam2['c_buildNo'], $parinam2['c_nearby'], $parinam2['c_stretNam'], $parinam2['c_landmrk'], $parinam2['c_area'], $parinam2['c_city'] ]); $caddres = implode(", ", $caddresses); } } catch (Exception $ex) { echo "Error fetching client details: " . $ex->getMessage(); } // Function to generate the bill PDF function Header() { // Create a new PDF document (Custom Width: 76mm, Auto Height) $pdf = new TCPDF('P', 'mm', array(76, 200), true, 'UTF-8', false); // Disable Header & Footer for Thermal Printing $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); // Set margins (reduce for thermal printing) $pdf->SetMargins(3, 3, 3); $pdf->SetAutoPageBreak(TRUE, 5); // Add a page $pdf->AddPage(); // Extract bill details extract($billDetails); // Set font (compact for thermal printing) $pdf->SetFont('courier', 'B', 10); // ๐ช Shop Details $pdf->Cell(0, 4, $shopName, 0, 1, 'C'); $pdf->SetFont('courier', '', 8); $pdf->MultiCell(0, 4, "$shopNo, $address, $area", 0, 'C'); $pdf->MultiCell(0, 4, "$city - $pin", 0, 'C'); $pdf->MultiCell(0, 4, "Contact: $contact", 0, 'C'); $pdf->MultiCell(0, 4, "GSTIN: $usergstnum", 0, 'C'); $pdf->Ln(2); $pdf->Cell(0, 0, str_repeat("-", 32), 0, 1, 'C'); // Divider // ๐งพ Bill Details $pdf->SetFont('courier', 'B', 10); $pdf->Cell(0, 6, $billType, 0, 1, 'C'); $pdf->Cell(0, 0, str_repeat("-", 32), 0, 1, 'C'); // Divider $pdf->SetFont('courier', '', 9); $pdf->Ln(2); $pdf->MultiCell(0, 4, "Bill No: $billNo | Date: $billDate", 0, 'L'); $pdf->MultiCell(0, 4, "Delivery: $deliveryDate", 0, 'L'); $pdf->MultiCell(0, 4, "Client: $clientName | $clientMob", 0, 'L'); } function headerTable() { // ๐ Items Table (Compact) $pdf->Ln(2); $pdf->SetFont('courier', 'B', 9); $pdf->Cell(25, 5, 'Item', 0); $pdf->Cell(10, 5, 'Qty', 0, 0, 'C'); $pdf->Cell(15, 5, 'Rate', 0, 0, 'C'); $pdf->Cell(20, 5, 'Total', 0, 1, 'R'); $pdf->Cell(0, 0, str_repeat("-", 32), 0, 1, 'C'); // Divider } function viewTable($RDSAPP) { $this->SetFont('Times','',12); $stmt3 = $RDSAPP->prepare('SELECT * FROM wash_bills_dt WHERE bill_no = :bno AND user_id = :uid'); $stmt3->execute(array(':bno' => $this->newbno, ':uid' => $this->newuid)); $parinam3 = $stmt3->fetchAll(); if (count(array($parinam3)) > 0) { $serno=1; $total = 0; foreach ($parinam3 as $res) { $sernam = $res["cloth_name"]; $qty = $res["qty"]; $rate = $res["rate"]; $total_amt = $res["amount"]; $total += $total_amt; pdf->Cell(25, 5, $item['name'], 0); $pdf->Cell(10, 5, $item['qty'], 0, 0, 'C'); $pdf->Cell(15, 5, $item['rate'], 0, 0, 'C'); $pdf->Cell(20, 5, $item['total'], 0, 1, 'R'); $this->Ln(); } } } function grandAmount() { // ๐ฐ Grand Total $pdf->Ln(2); $pdf->Cell(0, 0, str_repeat("-", 32), 0, 1, 'C'); // Divider $pdf->SetFont('courier', 'B', 10); $pdf->MultiCell(0, 6, "Grand Total: Rs. $grandAmount", 0, 'C'); $pdf->Cell(0, 0, str_repeat("-", 32), 0, 1, 'C'); // Divider // Thank You Note $pdf->Ln(2); $pdf->SetFont('courier', 'B', 9); $pdf->Cell(0, 5, "Thank You! Visit Again", 0, 1, 'C'); $pdf->Ln(2); } // Terms & Conditoins function Terms() { $pdf->SetFont('courier', '', 8); $conditions = [ "* Conditions Apply *", "1) No delivery without receipt.", "2) Lost/torn items - Half cost paid.", "3) Unclaimed items discarded after 1 month.", "4) No color/print guarantee.", "5) Stains removal not guaranteed." ]; foreach ($conditions as $condition) { $pdf->MultiCell(0, 4, $condition, 0, 'L'); } } // Generate the PDF generateBillPDF($billDetails); $pdf=new PDF(); $pdf->AddPage(); $pdf->SetFont('Arial','',12); //foter page $pdf->AliasNbPages(); //$pdf->SetFont('Arial','B',16); $pdf->headerTable(); $pdf->setData($bilno,$userid); $pdf->viewTable($RDSAPP); $pdf->grandAmount(); $pdf->Terms(); $filename = "$shopnam/$bilno.pdf"; $pdf->Output('I',$filename); ?>
Upload File
Create Folder