$fd = popen($cmd, "r");
$toc = array();
ob_start();
+ $err_count = 0;
while (($s = fgets($fd, 102400)) != false) {
if (strlen($s) > 800) {
$s = chunk_split($s, 800, "\n ");
$s = htmlspecialchars($s);
// highlight errors
if (preg_match("/errors?:/i", $s)) {
- $s = "<span class=error>$s</span>";
+ $err_count++;
+ $s = "<span class=error id=error-$err_count>$s</span>";
+ $toc[] = "error $err_count";
} elseif (substr($s, 0, 2) == "+ ") {
// shell verbose
$s = "<span class=verbose>$s</span>";
"alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
"<small>(c) 2002 ".
"<a href=\"mailto:feedback@pld-linux.org\">PLD Team</a><br />\n".
- '$Revision: 1.17 $'.
+ '$Revision: 1.18 $'.
"</small></div>\n";
# smile ;)
<!-- ech... niech strace... -->
<a href="mailto:feedback@pld-linux.org"><?=_("to us")?></a>. <?=_("Positive opinions are also")?>
<a href="mailto:feedback@pld-linux.org"><?=_("welcome")?></a> ;)</p>
-<p>Version: $Id: index.php,v 1.17 2012/03/21 01:29:44 glen Exp $</p>
+<p>Version: $Id: index.php,v 1.18 2012/03/21 11:40:49 glen Exp $</p>
</td><td width="20%"> </td></tr>
</table>
<?php