ossim_valid($sensors, OSS_ALPHA, OSS_PUNC, 'illegal: sensors'); ossim_valid($location, OSS_ALPHA, OSS_PUNC_EXT, 'illegal: location'); if (ossim_error()) { die(ossim_error()); } $db = new ossim_db(); $conn = $db->connect(); $plugin_sids = Wireless::get_plugin_sids($conn); $clients = Wireless::get_wireless_clients($conn, "", $sensors, ""); $db->close(); $now = date("Y-m-d H:i:s"); $pdf = new PDF_Table(); $pdf->AddPage(); $pdf->SetFont('Helvetica', 'B', 13); $pdf->Image("../pixmaps/logo_siempdf.png", 10, 11, 40); $pdf->Cell(0, 17, _("Wireless / Suspicious clients "), 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->Ln(); $pdf->SetWidths(array(28, 23, 22, 15, 23, 10, 15, 15, 30, 9)); $pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C')); $pdf->SetFont('Helvetica', '', 8); $pdf->Cell($pdf->widths[0], 8, _("Client Name"), 1, 0, 'C'); $pdf->Cell($pdf->widths[1], 8, _("MAC"), 1, 0, 'C'); $pdf->Cell($pdf->widths[2], 8, _("IP Addr"), 1, 0, 'C'); $pdf->Cell($pdf->widths[3], 8, _("Type"), 1, 0, 'C'); $pdf->Cell($pdf->widths[4], 8, _("Encryption"), 1, 0, 'C'); $pdf->Cell($pdf->widths[5], 8, _("WEP"), 1, 0, 'C'); $pdf->Cell($pdf->widths[6], 8, _("1st Seen"), 1, 0, 'C');
if ($yes && $no) { $networks[] = $ne; } } } else { $networks = $nets; } $db->close($conn); $now = date("Y-m-d H:i:s"); // $pdf = new PDF_Table(); $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);
ossim_valid($sensors, OSS_ALPHA, OSS_PUNC, 'illegal: sensors'); ossim_valid($location, OSS_ALPHA, OSS_PUNC_EXT, 'illegal: location'); if (ossim_error()) { die(ossim_error()); } $db = new ossim_db(); $conn = $db->connect(); $networks = Wireless::get_wireless_networks($conn, $order, $sensors); $db->close(); $now = date("Y-m-d H:i:s"); // $pdf = new PDF_Table(); $pdf->AddPage(); $pdf->SetFont('Helvetica', 'B', 13); $pdf->Image("../pixmaps/logo_siempdf.png", 10, 11, 40); $pdf->Cell(0, 17, _(" Wireless / Networks"), 1, 1, 'C', 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->Ln(); $pdf->Cell(37, 8, _("Network SSID"), 1, 0, 'C'); $pdf->Cell(15, 8, _("# of APs"), 1, 0, 'C'); $pdf->Cell(15, 8, _("# Clients"), 1, 0, 'C'); $pdf->Cell(18, 8, _("Type"), 1, 0, 'C'); $pdf->Cell(20, 8, _("Encryption"), 1, 0, 'C'); $pdf->Cell(15, 8, _("Cloaked"), 1, 0, 'C'); $pdf->Cell(20, 8, _("1st Seen"), 1, 0, 'C'); $pdf->Cell(20, 8, _("Last Seen"), 1, 0, 'C'); $pdf->Cell(30, 8, _("Description"), 1, 0, 'C'); $pdf->Ln();