コード例 #1
0
ファイル: post.php プロジェクト: rich-pixley/zoo-animals
 $gline = fgets($gf);
 fclose($gf);
 if (strpos($gline, "unstable")) {
     echo 'unstable';
 } else {
     if (strpos($gline, "testing")) {
         echo 'testing';
     } else {
         if (strpos($gline, "stable")) {
             echo 'stable';
         }
     }
 }
 echo "</td>\n";
 echo "<td rowspan=\"" . $builder_count . "\">" . babbrev(suckfile($myworkdir["local"] . "/svnloc")) . "</td>\n";
 echo "<td rowspan=\"" . $builder_count . "\">" . tabbrev(suckfile($myworkdir["local"] . "/targetlist")) . "</td>\n";
 echo "<td rowspan=\"" . $builder_count . "\">";
 $handle = popen("ls -d " . $myworkdir["local"] . "/attempts/* | wc -l", "r");
 echo stream_get_contents($handle) . "</td>\n";
 echo "<td rowspan=\"" . $builder_count . "\">";
 $handle = popen("grep failed " . $myworkdir["local"] . "/attempts/*/status | wc -l", "r");
 echo stream_get_contents($handle) . "</td>\n";
 foreach (scandir($builders, "0") as $channel) {
     if (${channel} != "." && ${channel} != ".." && ${channel} != ".svn") {
         echo "<td><a href=\"../php-utils/cat.php?file=" . ${builders} . "/" . ${channel} . "/log\">" . ${channel} . "</a></td>\n";
         $pidfile = "{$builders}/{$channel}/LOCK";
         if (file_exists($pidfile)) {
             $p = htmlspecialchars(trim(file_get_contents($pidfile)));
             echo "<td>{$p}</td>\n";
             $s = "{$builders}/{$channel}/status";
             echo "<td>" . (file_exists($s) ? htmlspecialchars(file_get_contents($s)) : "unknown") . "</td>\n";
コード例 #2
0
ファイル: pre.php プロジェクト: rich-pixley/zoo-animals
        fclose($gf);
        if (strpos($gline, "unstable")) {
            echo 'unstable';
        } else {
            if (strpos($gline, "testing")) {
                echo 'testing';
            } else {
                if (strpos($gline, "stable")) {
                    echo 'stable';
                }
            }
        }
        echo "</td>";
        echo "<td>" . babbrev(suckfile($myworkdir["local"] . "/svnloc")) . "</td>\n";
        echo "<td>" . suckfile($myworkdir["local"] . "/configargs") . "</td>\n";
        echo "<td>" . suckfile($myworkdir["local"] . "/checktargets") . "</td>\n";
    } else {
        echo "<td><a href=\"" . $myworkdir["http"] . "\">" . $machine . ".palm.com</a></td>\n";
        echo "<td colspan=\"7\" class=\"unavailable\">unavailable</td></tr>";
    }
    echo "</tr>";
}
?>
</tbody>
</table>
</div>

<?php 
echo footer();
?>