Ejemplo n.º 1
0
function virtip_build()
{
    $nic = new system_nic();
    $nic->BuildVirtIps();
    if (count($GLOBALS["SCRIPTS"]) > 0) {
        while (list($index, $line) = each($GLOBALS["SCRIPTS"])) {
            $line = trim($line);
            if ($line == null) {
                continue;
            }
            $md = md5($line);
            if (substr($line, 0, 1) == "#") {
                $sh[] = ScriptInfo($line);
                continue;
            }
            if (isset($AL[$md])) {
                continue;
            }
            $AL[$md] = true;
            echo "Starting......: " . date("H:i:s") . " `{$line}`\n";
            $sh[] = "echo \"Starting......: " . date("H:i:s") . " {$line}\"";
            events("{$line}", __FUNCTION__, __LINE__);
            system($line);
        }
        usleep(500);
    }
    BuildNetWorksDebian();
}