Indonesia president warns of terror attacks