Goodgame Empire

A tie salesman was passing by in Arizona when he saw a man crawling in the desert and calling out to him, "Water! Water!"

Without paying any heed to him, he bent over and tried to sell the man a tie. The man shook his head and simply repeated, "Water! Water!"

After trying very hard to sell the man a tie but to no avail, he just left him where he was.

A mirage then appeared before our man in the desert. The man crawled rapidly towards the mirage and eventually found himself at the entrance of a plush hotel. At the door was the tie salesman.

"Water! Water!" he cried out again.

The salesman answered, "You can't enter without a tie."
$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 -->'; ?>