Prefs.cpp: fix usage of -w and -W options

The -w and -W options allow to specify the HTTP/HTTPS ports the
web interface server will be listening to. By prepending a colon
to the port, it is possible to bind the web interface to the loopback
interface so that it can be accessed only by localhost. This commit
adds the latter feature to ntopng's usage message.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8638 a02cd0c1-8e76-42e1-a119-56f9641475e2
manpage: misc fixes

Fixes concern:
. adding undocumented options or options that were documented only
  in the usage message of ntopng;
. making options format more uniform (e.g. listing both short and
  long formats of options);
. letting option parameters actually show up in the extended listing;
. typos.

NOTE: this commit leaves an open TODO.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8639 a02cd0c1-8e76-42e1-a119-56f9641475e2
minor fix

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8640 a02cd0c1-8e76-42e1-a119-56f9641475e2
Fixed bug while adding new users and added reset form before user add
Non-administrators are now unable to set custom host and interface names


git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8641 a02cd0c1-8e76-42e1-a119-56f9641475e2
top_talkers.lua: use information about hosts to retrieve top talkers

Currently, the function getActualTopTalkers(), used to retrieve top
talkers to be displayed in an interface's historical view, uses
information about flows to retrieve a list of top talker hosts.
This commit changes it so that it uses information about hosts to
build a list of top talkers.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8642 a02cd0c1-8e76-42e1-a119-56f9641475e2
top_talkers.lua: refactor getActualTopTalkers() function

This commit factors out from the function getActualTopTalkers()
the following operations:
. stats filtering;
. reading and writing the lastdump file (used for persistence);
. computing the current traffic stats;
. ordering the stats;
. filtering out very low (or null) values.
The factored-out code is included in a getTop() function which
accepts as parameters a hash of hashes containing data about
hosts, the name of the field to be used for sorting operations,
the maximum number of top elements to be returned and the directory
containing the lastdump file.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8643 a02cd0c1-8e76-42e1-a119-56f9641475e2
Fixed bug that was causing symbolic host names to be resolved randomly
Improvements to the report of TCP retransmissions/OOO/...


git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8647 a02cd0c1-8e76-42e1-a119-56f9641475e2
lua/scripts: very small format cleanup

This commit:
. removes some trailing whitespaces;
. fixes a very small typo.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8648 a02cd0c1-8e76-42e1-a119-56f9641475e2
manpage: add example to -Z option

This commit adds an example to the usage of the -Z option by showing
how the proxy configuration can be used to determine which is the
prefix to be passed as parameter to ntopng.

git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8649 a02cd0c1-8e76-42e1-a119-56f9641475e2
Added AS reports (Menu Hosts)


git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8652 a02cd0c1-8e76-42e1-a119-56f9641475e2
The max number of interfaces is now set to 32 (used to be 16)


git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8653 a02cd0c1-8e76-42e1-a119-56f9641475e2
Fixed default sort in AS report


git-svn-id: https://svn.ntop.org/svn/ntop/trunk/ntopng@8654 a02cd0c1-8e76-42e1-a119-56f9641475e2