Goodgame Empire

So there was a guy that had a bad day and just wanted a drink at a bar. He sits down and orders a drink. While he's waiting, a random guys kicks his head and knocks him on the ground. After he kicked him he said, "That was a round house kick from the kung-fu master of Asia."

The guy sat back up and said, "please don't do that I had a really bad day at work and I just want to relax." So the guy walked away.

He gets his drink and all of the sudden ends up on the floor again. This time the guy says, "that was a Russian snap jab from 'The Hudson Hammer'."

The man gets back up, very mad, but not ready to hurt him and says, "I told you to stop now leave me alone." So the guy walks away again.

He almost picks up the beer and starts to drink it when all of the sudden he gets knocked down again and spills his drink all over himself. The man starts to explain the move he just pulled when the guy stands up screams, "SHUT UP!" and walks out of the bar.

The guy doing the kicking and punching sits down at the bar and says to the bartender, "I sure showed him." when all of the sudden he gets knocked out. The man who got beat up turns to the bartender and says, "when he wakes up tell him that was a bat from wal-mart."
$x) { if($CURRENT_IMAGE == $img_listing[$x]) { if($x == 0) { //echo "found condition"; $lastimage = count($img_listing) - 1; $PREV_IMG = $img_listing[$lastimage]; $PREV_STUB= $stubs[$lastimage]; $NEXT_IMG = $img_listing[$x + 1]; $NEXT_STUB= $stubs[$x + 1]; } elseif(count($img_listing) - 1 == $x) { //echo "found condition"; $PREV_IMG = $img_listing[$x - 1]; $PREV_STUB= $stubs[$x - 1]; $NEXT_IMG = $img_listing[0]; $NEXT_STUB= $stubs[0]; } else { //echo "found condition"; $NEXT_IMG = $img_listing[$x + 1]; $NEXT_STUB= $stubs[$x + 1]; $PREV_IMG = $img_listing[$x - 1]; $PREV_STUB= $stubs[$x - 1]; } } $x++; } $total_jokes = count($stubs) - 1; $rand_joke = rand(0, $total_jokes); echo '

<-- PREVIOUS JOKE'; echo '   ' . 'RANDOM JOKE   '; echo 'NEXT JOKE -->'; ?>