57 |
$result = ereg_replace("#([[:digit:]]{1,6})", "#<a href=\"http://bugs.debian.org/\\1\" class=\"bts\" title=\"View bug #\\1 in the BTS\">\\1</a>", $result); |
$result = ereg_replace("#([[:digit:]]{1,6})", "#<a href=\"http://bugs.debian.org/\\1\" class=\"bts\" title=\"View bug #\\1 in the BTS\">\\1</a>", $result); |
58 |
|
|
59 |
foreach (explode("\n", $result) as $line) { |
foreach (explode("\n", $result) as $line) { |
60 |
if (ereg("\(.*\) (unstable|stable|testing|experimental); urgency=", $line)) { |
if (ereg("\((.*)\) (unstable|stable|testing|experimental); urgency=", $line, $matches)) { |
61 |
$line = "<span class=\"header\">" . $line . "</span>"; |
$line = "<a name=\"" . $matches[1] . "\"><span class=\"header\">" . $line . "</span></a>"; |
62 |
} |
} |
63 |
if (ereg("^ --",$line)) { |
if (ereg("^ --",$line)) { |
64 |
$line = ereg_replace("-- (.*) <(.*)>", "-- \\1 <<a href=\"http://qa.debian.org/developer.php?login=\\2\" class=\"ddpo\" title=\"View the Debian Developer Package Overview for \\1\">\\2</a>>", $line); |
$line = ereg_replace("-- (.*) <(.*)>", "-- \\1 <<a href=\"http://qa.debian.org/developer.php?login=\\2\" class=\"ddpo\" title=\"View the Debian Developer Package Overview for \\1\">\\2</a>>", $line); |