Changes to all PHP files, deleted unused.

Signed-off-by: Sighvatur <sighvaturih@hotmail.com>