Removing closing PHP tags, implied array initialisations and special character escaping on inputs. See thread on forum with more details

Signed-off-by: Euan Torano <euantorano@gmail.com>