phpwaf from phpids and improve some tips