Esempio n. 1
0
$pdf->AddPage();
$pdf->SetFont('Helvetica', 'B', 13);
$pdf->Image("../pixmaps/logo_siempdf.png", 10, 11, 40);
if ($type == 1) {
    $pdf->Cell(0, 10, _("Wireless / Cloaked Networks having uncloaked APs            "), 1, 1, 'R', 0);
} elseif ($type == 2) {
    $pdf->Cell(0, 10, _("Wireless / Encrypted networks having unencrypted APs        "), 1, 1, 'R', 0);
} elseif ($type == 3) {
    $pdf->Cell(0, 10, _("Wireless / Networks using weak encryption                   "), 1, 1, 'R', 0);
}
$pdf->SetFont('Helvetica', '', 10);
$pdf->Cell(70, 6, _("Location") . ": {$location}", 1, 0, 'L');
$pdf->Cell(60, 6, _("User") . ": " . $_SESSION["_user"], 1, 0, 'L');
$pdf->Cell(60, 6, _("Date") . ": {$now}", 1, 1, 'R');
$pdf->SetWidths(array(38, 14, 18, 14, 12, 13, 25, 18, 18, 20));
$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'));
$pdf->hh = 5;
foreach ($networks as $data) {
    $pdf->Ln();
    $pdf->SetFont('Helvetica', '', 9);
    $pdf->Cell(190, 8, "  " . _("Network SSID"), 1, 0, 'L');
    $pdf->Ln();
    $pdf->SetFillColor(242, 242, 242);
    $pdf->Cell(190, 8, "  " . $data["ssid"], 1, 0, 'L', 1);
    $pdf->Ln();
    $pdf->Cell($pdf->widths[0], 8, _("MAC"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[1], 8, _("# Clients"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[2], 8, _("Type"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[3], 8, _("Channel"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[4], 8, _("Speed"), 1, 0, 'C');
    $pdf->Cell($pdf->widths[5], 8, _("Cloaked"), 1, 0, 'C');