Пример #1
0
    $option['enduser'] = true;
    $option['price'] = true;
    $option['subscription'] = true;
    $option['billing'] = false;
}
if ($option['all'] || $option['customers']) {
    if ($import) {
        if (!$quiet) {
            fwrite(STDOUT, "Czyszcze liste klientow w bazie LMS\n");
        }
        $DB->Execute('DELETE FROM hv_customers ;');
    }
    if (!$quiet) {
        fwrite(STDOUT, "Pobieram liste klientow\n");
    }
    $HIPERUS->ImportCustomersList();
    dberr();
}
// pobranie listy zaimportowanych kont VoIP
$cus = $DB->GetAll('SELECT id, create_date FROM hv_customers ORDER BY id ASC ');
$cus_count = count($cus);
dberr();
// Pobranie listy terminali
if (($option['all'] || $option['terminal']) && $cus_count !== 0) {
    if ($import) {
        if (!$quiet) {
            fwrite(STDOUT, "Czyszcze liste terminali w bazie LMS\n");
        }
        $DB->Execute('DELETE FROM hv_terminal ;');
    }
    if (!$quiet) {