An Indonesian man is jailed for eight years over his role in the bombing of two luxury hotels and a plot to kill the president.