Brighton secured their place in the Championship play-offs with victory over Leeds in an incident-packed match which included three red cards.
Will Buckley's opener gave the visitors the lead and the pendulum swung further in Brighton's favour as Rodolph Austin was sent off for violent conduct.
But Inigo Calderon saw red for felling El-Hadji Diouf inside the box, with the striker scoring the resulting penalty.
Brighton are now undefeated in eight games. Their last defeat came on March 12 when they lost 2-1 at Barnsley
Diouf was then dismissed and Leo Ulloa headed the winner for the Seagulls.
Gus Poyet's side got off to a bright start when Andrea Orlandi struck the post before Tom Lees's weak pass back to Paddy Kenny allowed Buckley in to score the opener.
Austin then saw red for an aggressive challenge on Brighton striker Ashley Barnes to make matters worse for Brian McDermott's Leeds.
The hosts did respond well, despite their numerical disadvantage, and Ross McCormack had their best chances with a back-to-goal half-volley which skipped just wide and a rising shot over the top.
Leeds levelled after the break when Calderon pulled Diouf down and the striker put away the resulting penalty.
But an incident during Diouf's celebration, in which he appeared to make a gesture towards the away fans, meant the striker was dismissed and Brighton took full advantage when Ulloa headed in Orlandi's cross to secure the win.
Leeds manager Brian McDermott:
"What he [Diouf] did is not clever. He has got to learn because he is going to miss three games now. He is really upset but he has to be accountable for his actions.
These things are dotted around his career. He can be a match-winner and I've told him he has to let his football do the talking.
"If you run 50 yards and make a gesture, that is not a heat of the moment thing. I believe 100% he can learn from this - he has to."
Brighton manager Gus Poyet:
"I am very pleased with the result. The Championship is becoming more and more difficult so we are delighted to be in the play-offs.
"We've lost Bruno Saltor injured so we are looking for a right-back to play in the next game and there are plenty of volunteers.
"If the penalty award was correct then probably the referee had to send him [Inigo Calderon] off, so it is about analysing the build-up to the penalty."
Live Text Commentary
Full Time The referee blows for the end of the match.90:00 +3:57
Rodriguez Vicente takes a short corner.90:00 +3:07
Centre by Ross McCormack, save by Tomasz Kuszczak.90:00 +2:35
Effort on goal by Rodriguez Vicente from 18 yards. Blocked by Tom Lees.90:00 +1:56
The ball is delivered by Lee Peltier, clearance by Matthew Upson.90:00 +0:50
The ball is delivered by Rodriguez Vicente, Tom Lees makes a clearance.90:00 +0:22
Paul Green gives away a free kick for an unfair challenge on Rodriguez Vicente. Indirect free kick taken by Gary Dicker.89:56
Tom Lees takes a shot. Save made by Tomasz Kuszczak.89:08
Ross McCormack crosses the ball, Jason Pearce takes a shot. Save by Tomasz Kuszczak. Corner taken by Ross McCormack from the left by-line.88:07
Stephen Warnock takes a inswinging corner from the left by-line played to the near post, Gordon Greer makes a clearance.87:02
The assist for the goal came from Andrea Orlandi.87:02 Goal scored
Goal! - Jose Ulloa - Leeds 1 - 2 Brighton Jose Ulloa finds the net with a headed goal from close range. Leeds 1-2 Brighton.86:52
The ball is crossed by Andrea Orlandi,85:46
Foul by David Lopez on Stephen Warnock, free kick awarded. Ross McCormack takes the free kick.84:48
Free kick awarded for an unfair challenge on Paul Green by Rodriguez Vicente. Free kick taken by Patrick Kenny.84:08 Substitution
Substitution Michael Brown on for Michael Tonge.83:44
Effort on goal by Rodriguez Vicente from inside the box misses to the right of the target.82:12
Ross McCormack takes a inswinging corner to the near post.81:41
Jason Pearce takes the indirect free kick.81:41 Booking
Booking Caution for Gary Dicker.
Free kick awarded for a foul by Gary Dicker on Michael Tonge.80:53
The ball is swung over by David Lopez, Stephen Warnock makes a clearance.80:43
David Lopez crosses the ball, clearance made by Michael Tonge.76:57
A cross is delivered by David Lopez, Jason Pearce makes a clearance.76:43
Paul Green gives away a free kick for an unfair challenge on Ashley Barnes. Indirect free kick taken by Matthew Upson.75:02 Dismissal
Dismissal The referee sends off El-Hadji Diouf for foul and abusive language.73:52 Goal scored
Goal! - El-Hadji Diouf - Leeds 1 - 1 Brighton Penalty taken right-footed by El-Hadji Diouf and scored. Leeds 1-1 Brighton.72:48 Dismissal
Dismissal Inigo Calderon receives a red card.72:30
Unfair challenge on El-Hadji Diouf by Inigo Calderon results in a Penalty.72:07
Corner taken by Stephen Warnock played to the near post, clearance by Gordon Greer.72:00
The ball is crossed by Ross McCormack, clearance made by Dean Hammond.70:20
Unfair challenge on Jason Pearce by Ashley Barnes results in a free kick. Free kick taken by Patrick Kenny.69:33
Michael Tonge takes a inswinging corner from the left by-line to the near post, Tomasz Kuszczak makes a save.69:00
Lee Peltier produces a cross, clearance by Gordon Greer.68:11
The ball is crossed by Steve Morison, save by Tomasz Kuszczak.67:28 Substitution
Substitution Inigo Calderon on for Bruno Saltor.66:55
The ball is delivered by Lee Peltier, Matthew Upson makes a clearance.65:46
Gary Dicker gives away a free kick for an unfair challenge on El-Hadji Diouf. Free kick taken by Stephen Warnock.64:53 Substitution
Substitution (Brighton) makes a substitution, with Rodriguez Vicente coming on for Will Buckley.64:03
Foul by Dean Hammond on Michael Tonge, free kick awarded. Stephen Warnock restarts play with the free kick.63:09
Gary Dicker delivers the ball, David Lopez takes a shot. Save made by Patrick Kenny.63:01
Andrea Orlandi crosses the ball, Tom Lees makes a clearance.61:56 Substitution
Substitution Steve Morison on for Luke Varney.61:33
Will Buckley has an effort at goal from just inside the box that misses to the right of the goal.60:56
Inswinging corner taken left-footed by Stephen Warnock from the right by-line, Tomasz Kuszczak makes a save.59:26
Gary Dicker produces a cross.58:16
Stephen Warnock has a header from deep inside the six-yard box and clears the crossbar.52:23 Booking
Booking Luke Varney is cautioned by the ref for unsporting behaviour.52:21
Luke Varney is penalised for a handball. Free kick taken by Tomasz Kuszczak.50:38
Marcos Painter delivers the ball.48:46
Gordon Greer challenges El-Hadji Diouf unfairly and gives away a free kick. Free kick taken by Stephen Warnock.48:11
Jose Ulloa has an effort at goal from close range which goes wide right of the target.47:26
Andrea Orlandi crosses the ball, clearance made by Tom Lees.45:01
The referee blows his whistle to start the second half.45:01 Substitution
Substitution Marcos Painter goes off and Gary Dicker comes on.45:00 +2:03 Half time
Half Time The ref blows to end the first period.45:00 +0:39
Luke Varney gives away a free kick for an unfair challenge on Ashley Barnes. Indirect free kick taken by Gordon Greer.43:39
Shot from outside the box by Will Buckley misses to the left of the goal.43:10
The ball is sent over by Paul Green, Marcos Painter manages to make a clearance.41:53
Corner taken left-footed by Stephen Warnock from the right by-line, Ross McCormack produces a left-footed shot from deep inside the six-yard box which goes wide of the right-hand post.40:42
Bruno Saltor challenges Luke Varney unfairly and gives away a free kick. Ross McCormack crosses the ball from the free kick right-footed from left wing, clearance by Gordon Greer.39:05
El-Hadji Diouf has an effort from just inside the box that misses to the left of the goal.37:58
Shot from deep inside the area by Ross McCormack clears the crossbar.37:43
Marcos Painter sends in a cross, Paul Green gets a block in.35:57
Ross McCormack produces a cross, El-Hadji Diouf has a header from close range and clears the crossbar.35:17
Stephen Warnock produces a cross, clearance made by Marcos Painter.34:36
Bruno Saltor has an effort at goal from outside the box which goes wide right of the goal.34:25
Marcos Painter crosses the ball, Jason Pearce makes a clearance.33:19
The ball is delivered by Marcos Painter, Lee Peltier gets a block in.32:53
The ball is delivered by Stephen Warnock, Dean Hammond manages to make a clearance.30:54
Lee Peltier sends in a cross, Matthew Upson manages to make a clearance.27:41
The ball is delivered by Michael Tonge, Gordon Greer manages to make a clearance.27:28
The ball is crossed by El-Hadji Diouf, Bruno Saltor makes a clearance.25:41
Ross McCormack delivers the ball.25:16
Free kick awarded for a foul by Bruno Saltor on Ross McCormack. Stephen Warnock takes the free kick.24:17
Jose Ulloa fouled by Ross McCormack, the ref awards a free kick. Indirect free kick taken by David Lopez.24:01
Michael Tonge sends in a cross, save by Tomasz Kuszczak.23:43
Foul by Matthew Upson on Luke Varney, free kick awarded. Free kick taken by Stephen Warnock.22:56
Jason Pearce gives away a free kick for an unfair challenge on Marcos Painter. Matthew Upson takes the free kick.22:07
Ross McCormack fouled by Dean Hammond, the ref awards a free kick. Ross McCormack delivers the ball from the free kick right-footed from left wing, Gordon Greer manages to make a clearance.21:06
The ball is swung over by El-Hadji Diouf.18:46
The offside flag is raised against Lee Peltier. Free kick taken by Tomasz Kuszczak.17:17
Unfair challenge on Luke Varney by Gordon Greer results in a free kick. Stephen Warnock takes the indirect free kick.15:04
Andrea Orlandi produces a cross.14:57
The ball is sent over by Bruno Saltor.12:05 Dismissal
Dismissal The referee sends off Rodolph Austin for violent conduct.10:46
Lee Peltier crosses the ball.9:18 Goal scored
Goal! - Will Buckley - Leeds 0 - 1 Brighton A goal is scored by Will Buckley from close range to the bottom right corner of the goal. Leeds 0-1 Brighton.7:33
Gordon Greer concedes a free kick for a foul on Ross McCormack. Rodolph Austin produces a shot on goal direct from the free kick, Andrea Orlandi gets a block in. Short corner worked by Michael Tonge.7:06 Booking
Booking Booking for Marcos Painter.1:47
Free kick awarded for a foul by Dean Hammond on Ross McCormack. Ross McCormack restarts play with the free kick.1:21
Centre by Luke Varney, save made by Tomasz Kuszczak.0:30
Andrea Orlandi produces a right-footed shot from close range and hits the post.0:00
The referee gets the game started.
Live data and text provided by our data suppliers