Esempio n. 1
0
            $pdf->SetFillColor(242, 242, 242);
        }
        if ($type == 1 && $arr['cloaked'] == "No") {
            $pdf->SetFillColor(239, 224, 224);
        } elseif ($type == 2 && $arr['encryption'] == "None") {
            $pdf->SetFillColor(239, 224, 224);
        } elseif ($type == 3 && $arr['encryption'] == "WEP") {
            $pdf->SetFillColor(239, 224, 224);
        }
        $dat = array();
        $dat[] = $mac . "\n" . $arr["vendor"];
        $dat[] = $arr['clients'];
        $dat[] = $arr['nettype'];
        $dat[] = $arr['channel'];
        $dat[] = $arr['maxrate'] . ($arr['maxrate'] != 0 ? " Mbps" : "");
        $dat[] = $arr['cloaked'];
        $dat[] = str_replace(",", " ", $arr['encryption']);
        $dat[] = $arr['firsttime'];
        $dat[] = $arr['lasttime'];
        $dat[] = $arr['sensor'];
        $pdf->Row($dat);
    }
}
//output the pdf, now we're done$pdf-
header('Content-Type: application/pdf');
header("Cache-Control: public, must-revalidate");
header("Pragma: hack");
$output_name = "Wireless_APs_" . $type . "_" . $now . ".pdf";
//header("Content-disposition:  attachment; filename=$output_name");
$pdf->Output($output_name, "I");