Mahmood and Dart were both given extended sentences and will serve two-thirds of their prison terms rather than half, and will spend five years on licence.
Dart refused to stand when he was sentenced, saying: "I don't wish to stand up, I believe ruling and judging is only for Allah."
The judge said that they were all "committed fundamentalists" who would have been prepared to kill.
He told Dart and Mahmood:
I'm satisfied to the required criminal standard that neither of you had ruled out an attack in the United Kingdom, and that you, Mahmood, were looking at arming yourself with a bomb.
More top news
A woman in Thailand killed herself by jumping into a pond of crocodiles at a popular tourist attraction, Thai police said.
A bizarre Taiwanese report on shows CGI versions of Alex Salmond, Alistair Darling and the Queen explaining the Scottish referendum.
Actor Gerard Depardieu claims he shot two lions on holiday in Africa and that he can drink up to 14 bottles of wine a day.