Update md_event.php

profile integration (some part)