From dd882ba9d4ced47e0b5c5abd3a340a4ac2d95731 Mon Sep 17 00:00:00 2001
From: Eric House UNDER CONSTRUCTION -- certain assumptions will go away before the next version ships
(If you are viewing this on an Android device, you've + found a bug! Please email me (and be + sure to leave the user agent string in the email body.) +
+ +EOF; +} + +function printAndroid() { +print <<You'll have come here after clicking a link in an invite + email. But you should not be seeing this page.
+ +If you got this page on your device, it means either +
In the first +case, download +and install the latest Crosswords. Then go back to the invite +email (or text) and tap the link again.
+ +In the second, hit your back button, click the link in your invite +email (or text) again, and this time choose Crosswords.
+ +EOF; +} + + +/********************************************************************** + * Main() + **********************************************************************/ +$agent = $_SERVER['HTTP_USER_AGENT']; +$onAndroid = false; +for ( $ii = 0; $ii < count($g_androidStrings) && !$onAndroid; ++$ii ) { + $needle = $g_androidStrings[$ii]; + $onAndroid = false !== stripos( $agent, $needle ); +} +$onFire = false !== stripos( $agent, 'silk' ); + +printHead(); +if ( /*true || */ $onFire || $onAndroid ) { + printAndroid(); +} else { + printNonAndroid(); +} +printTail(); + + +?>