Esempio n. 1
0
        $start = completeIP($ipaddr, 1);
        $end = completeIP($ipaddr, 2);
        if (testIP($start) or testIP($end)) {
            myError($w, $p, my_("Invalid IP address!"));
        }
    } else {
        $start = DEFAULTROUTE;
        $end = ALLNETS;
    }
}
$startnum = inet_aton($start);
$endnum = inet_aton($end);
$custdescrip = $ds->GetCustomerDescrip($cust);
if ($areaindex and !$rangeindex) {
    insert($w, heading(3, sprintf(my_("Search for IP subnets between multiple ranges for customer '%s'"), $custdescrip)));
    $result = $ds->GetBaseFromArea($areaindex, $descrip, $cust);
} else {
    insert($w, heading(3, sprintf(my_("Search for IP subnets between %s and %s %s for customer '%s'"), $start, $end, $site, $custdescrip)));
    $result = $ds->GetBase($startnum, $endnum, $descrip, $cust);
}
if ($ipaddr) {
    insert($w, textb(my_("IP address filter: ")));
    insert($w, textbr($ipaddr));
}
if ($descrip) {
    insert($w, textb(my_("Description filter: ")));
    insert($w, textbr($descrip));
}
insert($w, $f = form(array("name" => "swiptosend", "method" => "post", "action" => "emailswip.php")));
$cnt = 0;
while ($row = $result->FetchRow()) {