replace old php code in staff with new php code