rendered paste body
$listarray = array(0 => array('OpenLeague 5154 Public Server', 'http://openleague.org/~Mr_Molez/ROTATIONreportfile'),
1 => array('OpenLeague Match Servers', '../logs/ROTATIONreportfile'),
2 => array('OpenLeague Replay Servers', '../logs/ROTATIONreplayreportfile')
$parseme = count($listarray);
for ($i=0; $i<$parseme; $i++) {
echo '<BR><TABLE align=center cellpadding=5 border=1><TR><TD><font size=+1><b>'.$listarray[$i][0].' Report file '
.'</b></font></td></tr></table><p>' ;
$first = true;
$location = $listarray[$i][1];
$txt = file ($location);
foreach ($txt as $line){
$line = trim($line);
if ($line{0} == '[' && $line{strlen($line)-1}==']'){
if (!$first)
echo '</ul><HR>';
$first = false;
echo '<font size=+1><B>'. substr ($line, 1, strlen($line)-2) .':</b></font><UL>';
} else if (strncmp ($line, '*)', 2)==0){
echo '<LI>' . substr ($line, 3);
} else {
echo ' '. $line .'<BR>';
}
}
echo '</ul>';
}