Ejemplo n.º 1
0
function save_scan_parameters()
{
    $uid = $_GET["uid"];
    $computer = new computers($uid . '$');
    $ini = new Bs_IniHandler();
    $tpl = new templates();
    while (list($num, $ligne) = each($_GET)) {
        $ini->_params["scanner.options"][$num] = $ligne;
    }
    $datas = $ini->toString();
    $computer->KasperkyAVScanningDatas = $datas;
    if ($computer->SaveScannerOptions()) {
        $tpl = new templates();
        echo $tpl->_ENGINE_parse_body('{success}');
    } else {
        echo $tpl->_ENGINE_parse_body('{failed}');
    }
}