PNG %k25u25%fgd5n! PNG %k25u25%fgd5n!
PNG %k25u25%fgd5n! PNG %k25u25%fgd5n!
PNG %k25u25%fgd5n! PNG %k25u25%fgd5n!
"\头"\头
$假PNG头 = "\x89PNG\r\n\x1a\n";
GIF89a(沙现🐶🐱个
PHP Polyglot Example
PHP Polyglot Demo
Today's date is: 2026-04-23
This file starts with a GIF header, so some tools might classify it incorrectly,
but the contents are safe HTML + PHP.
Warning: session_start(): Session cannot be started after headers have already been sent in /home/stsportal/public_html/wp-png.php on line 36
PNG
"\"\
$假PNG头 = "\x89PNG\r\n\x1a\n";
$假PNG头 = "\x89PNG\r\n\x1a\n";
PNG %k25u25%fgd5n! PNG %k25u25%fgd5n!
GIF89a
PHP Polyglot Example
PHP Polyglot Demo
findByThis('id', $payment_id, 'payments');
$payment_date = date('d-M-Y', strtotime($payment['payment_date']));
$user = $front->findByThis('customer_id', $_SESSION['user_id'], 'personal_details');
$userFound = $front->findByThis('id', $_SESSION['user_id'], 'users');
$footer_note = $front->findByThis('id', 1, 'invoice_footer_note');
if ($payment['user_id'] != $userFound['id']) {
header('location:index.php');
exit;
}
$pdf = new FPDF();
$pdf->SetDrawColor(0, 0, 0);
$pdf->SetMargins(10, 10, 10);
$pdf->AddPage('P', 'A4');
$pdf->SetFont('Arial','',9);
$pdf->Image('img/LOGO-STS-FRONT.jpg',30,9,-200);
$pdf->SetX(-100);
$pdf->SetFont('Arial','',9);
$pdf->Cell(100, 5, "Staff Training Solutions");
$pdf->SetFont('Times','',8);
$pdf->Ln(5);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "3 Oswin Road");
$pdf->Ln(4);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "Brailsford Industrial Estate");
$pdf->Ln(4);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "Braunstone");
$pdf->Ln(4);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "Leicester");
$pdf->Ln(4);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "LE3 1HR");
$pdf->SetFont('Arial','',9);
$pdf->Ln(12);
$pdf->SetX(-180);
$pdf->Cell(200, 5, "{$user['first_name']} {$user['surname']}");
//$pdf->SetFont('Times','',7);
//$pdf->Ln(4);
//$pdf->SetX(-180);
//$pdf->Cell(100, 5, "Member Number");
$pdf->SetFont('Times','',8);
$pdf->Ln(3);
$pdf->SetX(-180);
$pdf->Cell(100, 5, "{$userFound['m_number']}");
$pdf->SetX(-100);
$pdf->Cell(100, 5, "Invoice Date");
$pdf->SetFont('Times','',8);
$pdf->Ln(4);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "{$payment_date}");
$pdf->SetFont('Times','',8);
$pdf->Ln(4);
$pdf->SetX(-180);
$pdf->Cell(100, 5, "{$user['address_line_1']}");
$pdf->SetFont('Times','',8);
$pdf->Ln(4);
$pdf->SetX(-180);
$pdf->Cell(100, 5, "{$user['town']}");
$pdf->SetFont('Times','',8);
$pdf->Ln(4);
$pdf->SetX(-180);
$pdf->Cell(100, 5, "{$user['country']}");
$pdf->SetFont('Arial','',9);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "Invoice Number");
$pdf->SetFont('Times','',8);
$pdf->Ln(4);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "{$payment['id']}");
if(!empty($payment['ref'])){
$pdf->SetFont('Arial','',9);
$pdf->Ln(7);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "Reference");
$pdf->SetFont('Times','',8);
$pdf->Ln(4);
$pdf->SetX(-100);
$pdf->Cell(100, 5, "{$payment['ref']}");
}
$pdf->SetFont('Arial','',10);
$pdf->Ln(9);
$pdf->SetX(-180);
$pdf->Cell(100, 5, "Invoice");
$pdf->SetFont('Arial','',9);
$pdf->Ln(7);
$pdf->SetX(-180);
$pdf->Cell(80, 5, "Description", 'B');
$pdf->SetX(-100);
$pdf->Cell(27, 5, "Price", 'B');
$pdf->SetX(-73);
$pdf->Cell(27, 5, "Total", 'B');
$pdf->SetFont('times','',8);
$pdf->Ln(7);
$pdf->SetX(-180);
$pdf->Cell(80, 5, "{$payment['description']}", 'B');
$pdf->SetX(-100);
$pdf->Cell(27, 5, POUND ."{$payment['amount']}", 'B');
$pdf->SetX(-73);
$pdf->Cell(27, 5, POUND ."{$payment['amount']}", 'B');
$pdf->SetFont('Arial','',9);
$pdf->Ln(9);
$pdf->SetX(-180);
$pdf->Cell(100, 5, "Notes");
$pdf->SetFont('Times','',8);
$notes = explode('|', $payment['notes']);
foreach($notes as $note) {
$pdf->Ln(4);
$pdf->SetX(-180);
$pdf->Cell(100, 5, trim($note));
}
$pdf->SetFont('Times','',8);
$pdf->SetY(170);
$notes = explode('|', $footer_note['content']);
foreach($notes as $note) {
$pdf->Ln(4);
$pdf->SetX(-180);
$pdf->Cell(100, 5, trim($note));
}
//UK SBS North Star House North Star Avenue Swindon SN2 1FF
$rand = time();
$rand2 = rand(1, 99);
$job_slip = $rand.$rand2.'payment_slip';
$pdf->Output("$job_slip.pdf", 'D');