Remove trailing PHP closing tags

This commit removes all trailing PHP closing tags ("?>") and extra new
lines; it also add some missing semicolons.
Remove W3C and SourceForge logos from footer

This commit removes the W3C and SourceForge logos from page footer,
making page load faster because of the removed connection to two
external server (http://www.w3.org/Icons/valid-html401 and
http://sflogo.sourceforge.net/sflogo.php?group_id=87163&type=10).
Removing SourceForge logo removes also user tracking by SourceForge.
Declare array before using them

If MTA stats are empty some errors appear in rep_total_mail_by_date.php
Fix CVE-2008-5991

Fixes a Local File Inclusion security bug, marked as CVE-2008-5991
Merge branch 'CVE-2008-5991'
Merge branch 'declare-array-before-use'
Merge remote-tracking branch 'origin/remove_ending_PHP_tags'
Merge remote-tracking branch 'origin/remove-w3c-and-sourceforge-logos'