Afghans to have Islamic republic