Security improved

Fix XSS Attacks from headers.
Refunction arrays to PHP 5.3