converted index and mbrs files into php