"; foreach my $cmd (split(/\n/, $commands)) { my @args = LJ::Con::parse_line($cmd); next unless @args; my $first = 1; $ret .= "
$arg | "; $first = 0; } else { $ret .= "$arg | "; } } $ret .= "
Failed!"; } if (@output) { $ret .= "
"; foreach my $line (@output) { my $color = "#000000"; if ($line->[0] eq "error") { $color = "#FF0000"; } if ($line->[0] eq "info") { $color = "#008800"; } $ret .= "".LJ::eall($line->[1])."\n"; } $ret .= ""; } } $ret .= "\n"; return $ret; } else { $ret .= "[ console | reference ]
"; $ret .= "
\n"; return $ret; } _code?>