Ryan Leaf, a former NFL quarterback, was sentenced Thursday to 15 months of lockdown after pleading guilty to charges of burglary and drug possession stemming from early 2012.

Leaf will reportedly spend the first half of his sentence in a secure drug treatment facility and then go on to a pre-release living center.

According to the Associated Press, the split is part of Montana Judge Kenneth Neill's ruling following Leaf's guilty plea for breaking into a house and illegally possessing painkillers.

Leaf's attorney told AP that as long as his client successfully completes the drug treatment, he will go on to spend the remaining six months in the pre-release center.

Leaf told the judge during the sentencing that he was humiliated and embarrassed for himself and his family and added that jail ''has been a sanctuary'' since his April arrest.

''I have enjoyed my time in there more than my previous 15 years,'' Leaf said.

The first-round draft pick was indicted on burglary and controlled substance charges in Texas in 2009.

He was undergoing drug rehab in British Columbia at the time of the indictment and was arrested by customs agents as he returned to the United States.

In April 2010, Leaf pleaded guilty to seven counts of obtaining a controlled substance by fraud and one count of delivery of a simulated controlled substance, all felonies.

Leaf was subsequently sentenced to 10 years of probation and fined $20,000.

Two years later, this March, the former quarterback, who debuted in 1998 for the San Diego Chargers, was arrested on burglary, theft and drug charges in his hometown of Great Falls, Mont. Four days later, Leaf was arrested again on burglary, theft, and two counts of criminal possession of dangerous drugs.

Leaf took a plea bargain in which he admitted one count of felony burglary and one count of criminal possession of a dangerous drug.