A Baltimore man who helped run an online message board where members shared millions of child pornography images insisted Wednesday that he only took part so he could bust the ring.

But prosecutors in federal court in Indianapolis don't believe Roger L. Loughry had any intentions of turning in members of the Cache website. He was sentenced to federal prison Wednesday along with another ring member. Loughry received a 30-year sentence for his role.

Assistant U.S. Attorney Steven DeBrota said there was no evidence Loughry made efforts to disrupt the site's operations. The 57-year-old was a co-administrator of the site and one of the international online ring's five top-ranking members.

Defense attorney Joe Cleary said he believed Loughry, a candidate for Baltimore mayor in 1999, was mentally ill. But DeBrota said Loughry "knows what he's doing" and is "in control of his faculties."

Judge William T. Lawrence said a psychiatric evaluation found Loughry competent to stand trial.

Loughry told the judge he intends to file an appeal in his case. He asked for a new lawyer.

He could have faced up to 450 years in prison under federal sentencing guidelines. DeBrota had asked for Loughry to be sentenced to 50 years, but said the 30-year sentence was adequate.

"He'll be very old when he gets out," DeBrota said.

Another ring member, Charles Trull, 43, of Carterville, Ill., was sentenced to 19 years in prison Wednesday. Trull was a low-level member of the website, but his sentence was enhanced because he took seminude photos of a teenage girl beginning when she was 13 and shared them with other members of the Cache.

DeBrota said that in one of the photos, the online nicknames of several Cache members were written on the girl's body.

Trull told the judge his "shame knows no bounds," but that he hadn't thought of his acts as child pornography.

"I had no clue how wrong it was," he said.

Defense attorney Ross Thomas said Trull and other Cache members thought they understood the limits of the law and tried to push the envelope.

"They were idiots. They were fools," he said.

Judge Lawrence said Trull helped to spread "a social disease."

Both Loughry and Trull were sentenced on charges of conspiracy to advertise and distribute child pornography. Loughry was found guilty after a jury trial in April, and Trull was convicted through a plea agreement.

The judge placed them both on lifetime probation, ordered them to register as sex offenders and restricted their computer access for life.

The convictions stemmed from a two-year international investigation called Operation Nest Egg. The group's alleged ringleader, Delwyn Savigar, is serving a 14-year prison term in England for sexually assaulting or trying to abuse three underage girls.

The Justice Department said 26 people have been charged in the conspiracy, and 20 have been convicted. Authorities are still trying to identify four suspects known only by their screen names.

DeBrota said the case is believed to be the largest child pornography conspiracy ever prosecuted.

The password-protected Cache website had 1,000 members at its peak and numbered more than 500 when it was shut down in 2008. Members were granted access to the hierarchical group's website by invitation only and had to be vetted by senior members. Only the most trusted members controlled the huge stash of child pornography, and members advised one another in forums on how best to cover their tracks.