Пример #1
0
// PDF
define('FPDF_FONTPATH', '../pdf/font/');
require '../pdf/fpdf.php';
//
$location = base64_decode(GET('location'));
$si = intval(GET('index'));
$sensors = isset($_SESSION['sensors'][$si]) ? $_SESSION['sensors'][$si] : "";
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);
Пример #2
0
</th>
		<th><?php 
echo _("Last Seen");
?>
</th>
		<th><?php 
echo _("Connected To");
?>
</th>
		<th>&nbsp;</th>
	</thead>
	
	<tbody>
		<?php 
$plugin_sids = Wireless::get_plugin_sids($ossim);
$clients = Wireless::get_wireless_clients($ossim, $order, $sensors, $aps);
$c = 0;
if (is_array($clients) && !empty($clients)) {
    foreach ($clients as $data) {
        $sids = array();
        foreach ($data['sids'] as $sid) {
            if ($sid != 0 && $sid != 3 && $sid != 19) {
                $color = "bgcolor='#FFCA9F'";
                $plg = $plugin_sids[$sid] != "" ? $plugin_sids[$sid] : $sid;
                $sids[] = $plg;
            }
        }
        $sidsstr = implode("<br>", $sids);
        $connected = "";
        $rest = "<b>APs</b><br>";
        if (count($data['connected']) > 3) {