Skip to content

Commit

Permalink
Improve logs viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
aheritier committed Aug 1, 2011
1 parent 848d79e commit 3949bda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions var/www/logs.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function mysort($a,$b) {
if(!empty($res[3]) && is_array($res[3])) {
usort($res[3],"mysort");
foreach($res[3] as $error) {
echo "<p><b>".$error[0]."</b> ".$error[1]." ".$error[3]."</p>";
echo "<p><b>".$error[0]."</b> ".$error[1]." ".$error[2]."</p>";
}
} else {
echo "none<br />";
Expand All @@ -149,7 +149,7 @@ function mysort($a,$b) {
if(!empty($res[2]) && is_array($res[2])) {
usort($res[2],"mysort");
foreach($res[2] as $error) {
echo "<p><b>".$error[0]."</b> ".$error[1]." ".$error[3]."</p>";
echo "<p><b>".$error[0]."</b> ".$error[1]." ".$error[2]."</p>";
}
} else {
echo "none<br />";
Expand All @@ -160,7 +160,7 @@ function mysort($a,$b) {
if(!empty($res[1]) && is_array($res[1])) {
usort($res[1],"mysort");
foreach($res[1] as $error) {
echo "<p><b>".$error[0]."</b> ".$error[1]." ".$error[3]."</p>";
echo "<p><b>".$error[0]."</b> ".$error[1]." ".$error[2]."</p>";
}
} else {
echo "none<br />";
Expand Down Expand Up @@ -189,7 +189,7 @@ function mysort($a,$b) {
$lines = explode("<br />",$output);

for($i=0;$i<count($lines);$i++) {
echo "<a name='".($i+1)."'></a><font color='black'>***</font>&nbsp;";
echo "<a name='".($i+1)."'></a>&nbsp;";
?>
<font color="black">
<?=$i+1?>
Expand Down

0 comments on commit 3949bda

Please sign in to comment.