示例#1
0
                if (!Scan::is_active($conn, $ip)) {
                    Scan::active($conn, $ip);
                }
            } else {
                Scan::insert($conn, $ip, 1);
            }
        }
        $pattern = "/appears to be down/";
        if (preg_match_all($pattern, $line, $regs)) {
            echo "Host {$ip} appears to be down<br/>";
            if (Scan::in_scan($conn, $ip)) {
                if (Scan::is_active($conn, $ip)) {
                    Scan::disactive($conn, $ip);
                }
            } else {
                Scan::insert($conn, $ip, 0);
            }
        }
    }
    $db->close($conn);
    exit;
}
?>

    <table>
    <form method="post" action="<?php 
echo $_SERVER["SCRIPT_NAME"];
?>
">
      <tr>
        <td>