Update phphtdocs to work on the latest versions of php
Make HTML output valid and prevent sql injection in php code.

Debian's patch.
By Andreas Henriksson <andreas@fatal.se>
On Sat, 20 Jul 2013 18:17:14 +0200
Update gitignore and remove patch's leftovers
Add proper script header and use for loop, since echo -e is bashism.

Debian's patch.
By Andreas Henriksson <andreas@fatal.se>
On Sat, 20 Jul 2013 18:17:14 +0200
Include filename in syntax error logging

Say which file the syntax error is in, to make logged error message clear.
Debian's patch.
By Andreas Henriksson <andreas@fatal.se>
On Sat, 20 Jul 2013 18:17:14 +0200
Add missing "MAIL" table header to generated static html.

Debian's patch.
By Andreas Henriksson <andreas@fatal.se>
On Sat, 20 Jul 2013 18:17:14 +0200
Add missing comma to fix syntax in created CDF files.

Debian's patch.

I've been using bandwidthd for a while, but since upgrading to lucid I
noticed my parsing started acting up, so I investigated. Eventually
discovered that bandwidthd's CDF writing has been broken since a
certain commit last year:

http://bandwidthd.cvs.sourceforge.net/viewvc/bandwidthd/bandwidthd/bandwidthd.c?r1=1.52&r2=1.53

You can see there's two fprintf statements there, but after that
commit there is no comma between the last value of the first fprintf,
and the first value of the second fprintf. It's even easier to spot if
you look at an actual line in a CDF file since this, where you get a
field like "01329001" which is a concatenation of "0" and "1329001".
The fix for this is of course trivial, you just need to add a comma to
the end of the first fprintf on line 827:

By Harald Hvaal <harald.hvaal@gmail.com>
On Sat, 20 Jul 2013 18:17:14 +0200
Fix recover CDF option

Debian's patch.

Upstream (sourceforge) Tracker id 2018613 (See Bug link)
New upstream bug id 39.

Bug: http://sourceforge.net/p/bandwidthd/bugs/39/
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=660810

By Logan Gunthorpe <logang@deltatee.com>
On Sat, 20 Jul 2013 18:17:14 +0200
Fix subnet reporting in syslog message

Debian's patch.

With the following entries in etc/bandwidthd.conf, syslog shows:

Feb 24 10:35:13 debian netmon: Monitoring subnet 255.0.0.0 with netmask 255.0.0.0
Feb 24 10:35:13 debian netmon: Monitoring subnet 255.255.0.0 with netmask 255.255.0.0
Feb 24 10:35:13 debian netmon: Monitoring subnet 255.240.0.0 with netmask 255.240.0.0

It should show:

Feb 24 10:46:53 debian netmon: Monitoring subnet 10.0.0.0 with netmask 255.0.0.0
Feb 24 10:46:53 debian netmon: Monitoring subnet 192.168.0.0 with netmask 255.255.0.0
Feb 24 10:46:53 debian netmon: Monitoring subnet 172.16.0.0 with netmask 255.240.0.0

Cause:
Bandwidthd.c calls inet_ntoa twice in a parameter list. inet_ntoa has static character buffer: second call overwrites first.

By John Murphy <2.6.35.10@hotmail.com>
On Sat, 20 Jul 2013 17:55:06 +0200
Bloody colons...