Age | Commit message (Collapse) | Author |
|
The format for each log can be configured with the configuration
option defined by $config['logs']['format']. %D is for
the time, %R is for the requester IP address, %H is for the host on
which the command has been executed and %C is for the command.
Warning! The configuration option to choose the logs file has been
moved from $config['misc']['logs'] to $config['logs']['file'].
|
|
The dedicated function 'format_output(command, output)' can be
redefined by router and can be used to format the output according to
what is inside. In this way, the output can be formatted differently
according to the router type and the command.
|
|
|
|
Fix filters that could lead to filtered HTML output.
Do not remove empty lines anymore, except for the last line.
Do not try to loop over each line of the output if no filter are
defined.
|
|
|
|
The defaults can be overriden in the config.php file but some of
them are fine as defaults. This will help in having a config.php
file as short as we can.
Also move utils.php to the includes directory.
|
|
|
|
Show the executed command for each output.
|
|
|
|
|
|
|
|
Need to be tested.
|
|
|
|
More accurate commands for Juniper router.
|
|
|
|
Exception are forwarded up to be able to inform the user about it.
|
|
|
|
Should be more modular now to add other routers types.
|