php file for mission gen