modified some PHP code

added a few things