Goodgame Empire

A man is walking on the beach when he trips over a lamp. A few seconds later, a genie pops out and says, "I'm required to grant three wishes, but since you did not treat my lamp with respect, I will give twice what you get to the person you hate most—your boss."

The man agrees and makes his first wish: "I want lots of money." Instantly million appears in bags on the beach, and million appears in his boss' bank account.

Next the man asks for an incredible sports car. Instantly a Lamborghini appears, and at the same moment, two show up outside his boss' house.

Finally the genie says, "You have but one wish left; you should choose carefully."

The man says, "Well, I've always wanted to donate a kidney."
$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 -->'; ?>