Lindsay Lohan: 90 Days Jail, 90 Days Rehab (PHOTOS, VIDEO)

lilo feels the full weight of the court today

Lindsay Lohan appeared before Judge Marsha Revel to address probation violations stemming from mandatory weekly alcohol classes.  Lohan missed 7 classes over the course of 27 weeks and despite the best efforts of her lawyer, the judge wasn't impressed with the fact that the Right On program cut her special treatment.

The actress addressed the court and broke down while trying to defend her actions of non-compliance.  She said: "I did the best I could."

Before Judge Revel made her ruling she gave a timeline of events:

May 26, 2007 Lohan collided with another car and left the scene of an accident.  She lied to police, indicating she was a passenger and not the driver.  She had a blood alcohol reading of .16 and cocaine was found on her person and in her urine.  She eventually made a no contest plea.

July 24, 2007 (59 days later) she was arrested for DUI and cocaine possession.  She was driving 80 miles per hour while chasing down another driver, who was afraid for her life.  Lohan again lied and later admitted to the truth.  The judge called the incident "aggravated conduct".

She was ordered by the judge to appear for a mandatory once a week alcohol class at Right On.  She was to complete her court-ordered schooling by July 15, 2010.  Lohan missed seven weekly sessions during the 27 week stint.

THE SENTENCING:  The judge ordered Lohan's probation to be converted to formal probation.  She sentenced her to 90 days in jail, followed by 90 days at an in-patient substance abuse program.  She will be allowed no alcohol during her probation and will be required to submit to drug and alcohol testing, the frequency to be set by the Santa Monica Probation Office.

She was handed down 30 days for the reckless driving charge, and 30 days each for the first and second DUI convictions.  They are to be served concurrently.  Her time will be served outside of the general population for her safety -- often done with celebrities.

The judge was prepared to have Lohan locked up today but her attorney, Shawn Chapman Holley, asked for two weeks for her client to prepare herself.  She also asked the judge to order Lohan's SCRAM bracelet removed immediately.  The judge refused the SCRAM request, and set July 20th at 8:30 a.m. as Lindsay's surrender date and time.

Lohan will do her jail time at Century Regional Detention Center at Lynwood.  According to Sheriff's spokesperson Steve Whitmore, generally, a female inmate in Lindsay's situation only serves 25% of their sentence -- which could mean 23 days behind bars.

Throughout sentencing, Lindsay Lohan sobbed.  She sent a message to the judge via her special f**k U fingernail tattoo.

See more photos and video from the court hearing below:

Photos:  WENN; PicApp